Menu

'Context' Command

Help
tambok
2020-06-14
2020-06-17
  • tambok

    tambok - 2020-06-14

    Hi,
    I want to know if in GLScene could we write command that same function like this below.
    example:

    Context.SetCameraViewAngle(0.1);
    or
    Context.SetCameraViewAngle(45);
    Dummy.Scale.Point:= TPoint3D.Create(1, 1, 1);

    These are from Firemonkey. I want to convert Perspective to Orthogonal or vise versa.

    Thanks
    Tbk

     
  • Jerome.D (BeanzMaster)

    Hi, you can set orthonal projection directly in TGLCamera

     
  • tambok

    tambok - 2020-06-17

    Hi, Jerome.
    Yes, i can set change directly, but what i mean the Modelview ist not same anymore.

    ex.:
    if that we set it to perspective and we play using zoom. So if we move to orthogonal, the size of the model's display will remain the same. But that doesn't happen if we return to perspective after using zoom.

    I don't know how to convert from focallength (orthogonal) calculations to perspective.

    regards
    tbk

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.