This may be a noobie question, but I can’t seem to find an answer (either here or by figuring it out myself).
I want to import a mesh in OptiX (which I do thanks to the samples), but I want my camera to be at a fixed point in world space (i.e. the world’s origin at (0.0f, 0.0f, 0.0f)) and the mesh to appear in front of the camera.
In the MeshViewer sample the opposite happens, i.e. the object is imported at the world’s origin and the camera position is relative to the object’s bbox extent, if I understood it right.
As far as I tried to make this happen, it seems that the mesh always get’s imported at the world’s origin.
I tried to translate the vertex positions during importing (host-side), but it didn’t seem to work.
Do I have to translate the geometry group’s Transform node immediately at context launch, so that the object gets translated in front of the camera?
Is there an elegant way of doing this?
Thank you all in advance.