In Form1, I create objects (tglspheres, tgllines) and save the scene to file with SaveToFile procedure. In this form I can save and load scene from file and it works.
In Form2, I want to show this scene and for that I load it with LoadFromFile procedure. In this case the scene is not good.
I copied GL controls from Form1 into Form2, so I have same cameras, objects and obj. names at design time in both forms.
If I delete all controls from design, I still have same issue.
I also tried a class containing a GLSceneViewer; I put that class in both forms and still ahev issue.
My questions are: do I need some requirements before using LoadFromFile ? How can I load my scene in another GLSceneViewer ?
Thanks
Delphi Berlin Upd1 + GLScene 1.4.1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
In Form1, I create objects (tglspheres, tgllines) and save the scene to file with SaveToFile procedure. In this form I can save and load scene from file and it works.
In Form2, I want to show this scene and for that I load it with LoadFromFile procedure. In this case the scene is not good.
I copied GL controls from Form1 into Form2, so I have same cameras, objects and obj. names at design time in both forms.
If I delete all controls from design, I still have same issue.
I also tried a class containing a GLSceneViewer; I put that class in both forms and still ahev issue.
My questions are: do I need some requirements before using LoadFromFile ? How can I load my scene in another GLSceneViewer ?
Thanks
Delphi Berlin Upd1 + GLScene 1.4.1