Menu

Scene Helpers anyone?

M
2019-03-06
2019-03-06
  • M

    M - 2019-03-06

    Hello all,

    Does anyone use the code in \Source\Samples\SceneHelpersU3DCameraNavigation.cpp ?
    I am trying to get the RotateView() function to set the initial view of my 3D object, but I never see any change. I embed the U3D in a PDF file, but when I open it up in there is no change in the view.

    Also, beware that the comment at the top of this function is incorrect:

    @param F32 fInY Rotation (in radians) about Y axis.

    The values should be in degrees. I can tell because the code does a conversion to radians
    radians = ToRadians(fInX * 0.5f);

     
  • Patrik Mueller

    Patrik Mueller - 2019-03-06

    PDF has its own definition for the views. I'm not sure, but it seems PDF ignores the CameraNavigation.

     
  • M

    M - 2019-03-06

    Thanks Patrick,
    Yes, that is the conclusion I am coming to. Unfortunately I only have a very rudimentary PDF library with almost no support for 3DPDF :-( I'll try to get the same results by setting the model rotation matrix

     

Log in to post a comment.