Menu

Errors with TGLHudText and multiple cameras

Help
LefjuCabro
2016-11-08
2016-11-18
  • LefjuCabro

    LefjuCabro - 2016-11-08

    Hello,

    Let me describe you my scene:
    * 4 GLSceneViewer a containing 1 GLDummyCube and 2 GLSphere.
    * 4 GLCamera: each camera is assigned to a GLSceneViewer and has GLDummyCube as target.
    * When the mouse is over a GLSphere then radius increase.
    * When the mouse is not over a GLSphere then radius get a normal radius.

    This configuration works very well unless I create TGLHudtext: some glviewer and controls are not refresh. These problems disappear when I destroy TGLHudtext.
    If I hide 2 GLSceneViewer, it still works correctly.

    Is there anything wrong with my scene ? Is there any GLScene limit (I don't mind...) ?

    Attached, here is an example of my issue.

    Thanks

    Delphi Berlin Upd1 and GLScene 1.4.1.

     

    Last edit: LefjuCabro 2016-11-08
  • Jerome.D (BeanzMaster)

    Read this thread perhaps it can help you https://sourceforge.net/p/glscene/discussion/93606/thread/44c2c3b7/

    sorry but i haven't got delphi anymore and GLScene not working on Lazarus 1.6 / 64bit

     

    Last edit: Jerome.D (BeanzMaster) 2016-11-09
  • LefjuCabro

    LefjuCabro - 2016-11-15

    Hello,

    Regarding your link above, I downloaded your project GLsceneEditorAdvancedTest2: that's mostly do what I need: a scene with 4 points of view (= 4 cameras).

    Your project works fine but when I added a Text (TGLHudText or TGLFlatText) the application has trouble. I added an event when I click on the green sphere; the radius raises up: it doesn't raises up in all views.

    There is something wrong with Text because without Text it is good.

    Attached you have your initial project, my modified project and the modified exe.

    Regards

     
  • Jerome.D (BeanzMaster)

    Ok i understand what you want to do, but first i suggest you to begining with only 1 viewer for your test. GLsceneEditorAdvancedTest2.7z is heavy bugged. you can use world2screen function for determining the position of HudText.

     
  • LefjuCabro

    LefjuCabro - 2016-11-18

    Here is a new project: I have a 3D-view and 3 optional 2D-views (X, Y, Z). This scene has 2 spheres, 2 TGLFlatTexts and 2 TGLHudTexts. I can choose which seeing labels (TGLFlatText, TGLHudText or None).

    Without displaying any labels everything is alright in my app but when I display more than 1 2D-view with labels (TGLFlatText or TGLHudText) there is an issue.

    Regards

     

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.