Menu

Using real Coordinates possibel and how?

Help
Torud
2016-08-26
2016-08-29
  • Torud

    Torud - 2016-08-26

    Hello,

    I would like to know if I am able to create Spheres, Cubes and all the other objects and use for its position real Pixel-coordinates like in real OpenGL.

    I am always using a 1920 * 1080. So is there a property which I have to setup, or how to deal with this?

    Thanks for your ideas or solutions.

    Cheers Tom

     
  • Jerome.D (BeanzMaster)

    Hi,

    real Pixel-coordinates like in real OpenGL.
    hu !!! GLScene is in real opengl ! it s your project must display 3d like 2d use Ortho persective as camera or you must calculate yourself the position of the objects depending of the camera's settings (fov, position, the "frustrum")

     
  • Jerome.D (BeanzMaster)

    You want do something like this ?

     
  • Torud

    Torud - 2016-08-28

    Hi Jerome,

    unfortunatly I received some errors by trying to open the project.

    TGLSFMOD is missed
    FMODPlayer
    HudExtensionsRender

    C:\Users\Keytoq\Downloads\GLInfo\GLInfo\umainform.pas(52,61): error E2003: E2003 Undeklarierter Bezeichner: 'TRenderContextInfo'
    C:\Users\Keytoq\Downloads\GLInfo\GLInfo\umainform.pas(138,35): error E2003: E2003 Undeklarierter Bezeichner: 'GLSL_VERSION'
    C:\Users\Keytoq\Downloads\GLInfo\GLInfo\umainform.pas(193,67): error E2005: E2005 'TRenderContextInfo' ist kein gültiger Typenbezeichner
    C:\Users\Keytoq\Downloads\GLInfo\GLInfo\umainform.pas(225,58): error E2250: E2250 Es gibt keine überladene Version von 'TextOut', die man mit diesen Argumenten aufrufen kann
    C:\Users\Keytoq\Downloads\GLInfo\GLInfo\GLInfos.dpr(5,2): error F2063: F2063 Verwendete Unit 'umainform.pas' kann nicht compiliert werden

    Do I miss something?

    Hm and even if it wont work, could you give me please an advise how to calculate the positions?
    Something like a formula?

    Cheers Tom

     
  • Eric Hardinge

    Eric Hardinge - 2016-08-29

    This one might work.

     
  • Jerome.D (BeanzMaster)

    Hi,
    Thanks Eric.

    could you give me please an advise how to calculate the positions?
    Something like a formula?

    not really, but i don't understand why you want set the position like 2d in a 3d world because you're always using a 1920 * 1080. so if if i want to execute your soft on my pc it won't work correctly. You just must adjust your camera. see the attached demo and go on the author web site for more informations.

     

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.