Recent

Author Topic: lazarus + GLscene + Newton Dynamics  (Read 1025 times)

bbd666

  • New member
  • *
  • Posts: 7
lazarus + GLscene + Newton Dynamics
« on: August 01, 2022, 02:26:15 pm »
Hello friends
Can someone give me the step by step procedure to run the demo NewtonMaterial given as sample with the package GLSceneLCL ?
Currently I am facing the following issue :
when I compile the project I get the msgdlG : "the package GLS_NGD is required but cannot find the file'.
When I open Packages/loaded packages I get :
GLscene_Designtime version 1.0 statically installed, auto-static installation
GLScene_NGD version 0.0 auto-static installation
GLscene_Runtime version 1.0 NOTHING in state field.
Thks in advance
« Last Edit: August 01, 2022, 03:00:50 pm by bbd666 »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10291
  • FPC developer.
Re: lazarus + GLscene + Newton Dynamics
« Reply #1 on: August 01, 2022, 03:30:22 pm »
The Project Inspector of your demo has a  "required packages" part.

You could try (after backup) to remove the GLS_NGD requirement and replace it with a GLScene_NGD requirement.

(Note that the crucial part of having a requirement is about adding unit paths, so you can't just remove all requirements)

bbd666

  • New member
  • *
  • Posts: 7
Re: lazarus + GLscene + Newton Dynamics
« Reply #2 on: August 01, 2022, 03:56:43 pm »
thk you very much.
This was able to remove the error msg.
Now I get 'identifier not found : TNGDSurfaceitem' which is used in the main unit.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10291
  • FPC developer.
Re: lazarus + GLscene + Newton Dynamics
« Reply #3 on: August 01, 2022, 04:00:11 pm »
Then it gets glscene (versioning?) specific, and I'm afraid I don't know much about that :-)

Handoko

  • Hero Member
  • *****
  • Posts: 4712
  • My goal: build my own game engine using Lazarus
Re: lazarus + GLscene + Newton Dynamics
« Reply #4 on: August 01, 2022, 04:03:39 pm »
@bbd666

How did you instal GLScene? Have you tried to install it using Online Package Manager?

Lazarus main menu > Package > Online Package Manager

bbd666

  • New member
  • *
  • Posts: 7
Re: lazarus + GLscene + Newton Dynamics
« Reply #5 on: August 01, 2022, 04:05:44 pm »
ok thks.
for others who can help me, I added the path of GLSceneLCL/source files in the project options/other file units(-Fu).
Now I get GLState.pas Error : compilation raised exception internally
I suspect a problem with the OpenGL version

bbd666

  • New member
  • *
  • Posts: 7
Re: lazarus + GLscene + Newton Dynamics
« Reply #6 on: August 01, 2022, 04:09:20 pm »
2 Handoko :
Yes
I selected both runtime and designtime packages.
Then I opened GLScene_NGD.lpk and compiled it after changing the requirements according to Marcov and I aded the path in the demo project.
« Last Edit: August 01, 2022, 04:20:56 pm by bbd666 »

Handoko

  • Hero Member
  • *****
  • Posts: 4712
  • My goal: build my own game engine using Lazarus
Re: lazarus + GLscene + Newton Dynamics
« Reply #7 on: August 01, 2022, 04:23:57 pm »
Maybe you should consider Castle Game Engine.

I was so excited when I knew I could use GLScene on Lazarus, but after some tests I was disappointed.

As far as I know GLScene is developed and tested on Delphi. It is matured and runs good on Delphi/Windows. But there is only 1 person who tries to port it to Lazarus, the progress is slow and buggy.

Learn more:
https://forum.lazarus.freepascal.org/index.php/topic,52088.msg383311.html#msg383311

bbd666

  • New member
  • *
  • Posts: 7
Re: lazarus + GLscene + Newton Dynamics
« Reply #8 on: August 02, 2022, 07:59:27 am »
Yes I know.
I am used with Delphi and Glscene for more than 20 y now. The pb it doesn't work with 64bits OS and Newton Dynamics.
I know K00m very well, I suppose you refered to him. With this help I will manage to make it work.
« Last Edit: August 02, 2022, 08:04:33 am by bbd666 »

bbd666

  • New member
  • *
  • Posts: 7
Re: lazarus + GLscene + Newton Dynamics
« Reply #9 on: August 02, 2022, 02:22:20 pm »
ok I managed to set a demo.
The Newton demos given in GLSceneLCL/Samples/Lazarus/physics do not work.
There are many things to rename in unit1.pas (e.g. some identifiers starting with TNGD instead of TGLNGD) to comply with the header file newtonimport.pas and this file doesn't comply with the Newton.dll supplied in the package (newtonconstraintcreatehinge, setsolvermodel missing in the dll). I got all the infos from k00m's suite OxNewton to build basic demos of GLScene+ Newton Dynamics v3.14 in Lazarus.

Handoko

  • Hero Member
  • *****
  • Posts: 4712
  • My goal: build my own game engine using Lazarus
Re: lazarus + GLscene + Newton Dynamics
« Reply #10 on: August 02, 2022, 02:34:28 pm »
BenzMaster isn't very active in this forum, you should post the bug/solution directly in SourceForge, so he can update the code.

Read here:
https://forum.lazarus.freepascal.org/index.php/topic,52088.msg383308.html#msg383308
« Last Edit: August 02, 2022, 02:38:52 pm by Handoko »

bbd666

  • New member
  • *
  • Posts: 7
Re: lazarus + GLscene + Newton Dynamics
« Reply #11 on: August 02, 2022, 02:57:21 pm »
ok thks. I added a post in the SF discussion

 

TinyPortal © 2005-2018