Camera height with OBJ scene

  • Hi. Total newbie playing with an OBJ I created using my iPhone and Scaniverse. I used the Depthmap Textured 3-D Model example and have my model loading okay. But, in VR my head is at floor level! Hahahah. Kind of like my reality, I suppose. *tongue*

    Is there a setting that can elevate the "camera" position when the scene loads?

    Thank you.

  • Hi,

    when using the depthmap_navigation.xml and your 3d-model is correctly scaled (a unit of 1 means 1cm in krpano by default), then you could enable its groundcollision and usevrfloorlevel settings:

    Code
    <include url="%VIEWER%/plugins&/depthmap_navigation.xml" />
    
    <depthmap_navigation
        groundcollision="true"
        collisionlevel="true"
        />

    Then the vertical position would be automatically adjusted based on your current VR headset-floor height and the actual 'floor-height' in the 3D-model.

    Additionally you could try either to move the startup/camera view-point by adjusting the view.tx/ty/tz values, or to move the 3D-model itself using the depthmap.origin setting.

    Best regards,
    Klaus

  • Thank you Klaus. With these settings, an OBJ from Scaniverse works flawlessly:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!