Last updated
Last updated
Used Blender version 4 to place cameras in scenes.
Place world viewport in the desired position to place a camera.
Press ctrl + alt + numpad 0
to place a new camera.
Check the world coordinates of the camera in Object Properties of the placed camera.
Move camera to the desired point to look at, and check wich coordinates are changed,
By doing this, the lookAt
can be infered from the difference of both positions (before and after).
How to convert Axis from Blender (default) to MobileRT:
Check .
E.g. of camera for San Miguel scene:
Select Edit Mode in Layout menu.
Create a plan composed by 2 triangles.
Do not select other object to avoid merge 2 primitives into 1.
Provide X, Y and Z coordinates.
Provide size to scale it and cover the desired scene.
Place it above the scene and make it face the scene.
Enable Face Orientation in Viewport Overlay menu to know where primitives are facing.
Blue is front side and red is back side.
Export the scene into a new Wavefront OBJ file.
E.g. of world light position for San Miguel scene:
And the material:
X
-X (Loader automatically converts to -X)
Y
-Z
Z
Y