Follow

Setting the axis of your 3D scene prior to upload

In circumstance where a number of 3D assets are going to be used in a single Aura (for example, an interactive game), creating a .cfg file ensures that any 3D Overlay is correctly scaled and rotated upon upload to the Studio.


The .cfg file is a simple text document that can be created in notepad, and contains 8 lines of code:

[DefaultPosition]
Scale=0.015625
MatrixLn1=0
MatrixLn2=0
MatrixLn3=0
MatrixLn4=-1.5707961398992492
MatrixLn5=0
MatrixLn6=0


By default the scale value is 1 - depending on your software's scale settings this might be too high.

It is important to note that in the 3ds Max environment the Z axis is up – in the Aurasma 3D environment Y is the up axis direction. Maya has a Y up axis - so will display upright in HP Reveal, each program differs so check which axis is up in the program you use.

Typically there are three ways to correct a dae with a different up-axis: rotate your scene 90 degrees before export, create a .cfg file or rotate the Overlay manually in the HP Reveal Studio’s 3D view.


The code example above shows that the scene has been rotated backwards by exactly 90 degrees, this therefore restores it to the correct orientation when viewed in HP Reveal.

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk