* * *

Author Topic: [ANN] GLScene for Lazarus 1.6.2 and up  (Read 948 times)

BeanzMaster

  • New member
  • *
  • Posts: 9
[ANN] GLScene for Lazarus 1.6.2 and up
« on: May 06, 2017, 07:59:09 pm »
Hi to all, i updated GLScene Component Package. It's now compatible with Lazarus 1.6.2 and up and FPC 3.0.0 and up

You can download the lastest release of GLSceneLCL for Lazarus

From the page http://sourceforge.net/projects/glscene/files/ as archive file. Select Branch->GLSceneLCL
or
From current SVN version of GLScene from the URL of repository https://svn.code.sf.net/p/glscene/code/branch/GLSceneLCL

Follow instruction in GLSceneLCL\Installation folder for installation

NOTE :
Just one thing don't compile  packages : GLScene_Bass, GLScene_FMod, GLScene_ODE, GLScene_NGD, GLScene_CgShader at this time.
You can try, but  not sure there work at 100%

If you have any questions or for reporting bugs. You can  go on our dedicated forum  https://sourceforge.net/p/glscene/discussion/lazarus/

Cheers
« Last Edit: May 06, 2017, 08:03:02 pm by BeanzMaster »

Handoko

  • Hero Member
  • *****
  • Posts: 1192
  • My goal: build my own game engine using Lazarus
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #1 on: May 08, 2017, 03:27:00 pm »
Thank you for the update and info.

Does it support Linux? I found no Linux thing in GLScene sourceforge project folder:
Home / GLScene / GLScene v1.5

And the svn link does not work.

BeanzMaster

  • New member
  • *
  • Posts: 9
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #2 on: May 14, 2017, 08:07:59 pm »
Hi

I've no tested under Linux but normally GLSceneLCL must work.

For SVN try https://svn.code.sf.net/p/glscene/code/branches/GLSceneLCL

Handoko

  • Hero Member
  • *****
  • Posts: 1192
  • My goal: build my own game engine using Lazarus
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #3 on: May 21, 2017, 03:27:39 pm »
Tested the svn but failed. I use Ubuntu 16.10 64-bit.

I noticed the path and file name are not correct. See img1, it used lower case "resources", but the actually name is "Resources". Linux is case sensitive.

Okay, I can fix that issue. Now, I read and follow the installation instruction. I compiled the GLScene_Runtime without problem, the next thing is  GLScene_OpenAL. But it failed saying it cannot find "GlFileX", see img2.

BeanzMaster

  • New member
  • *
  • Posts: 9
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #4 on: May 21, 2017, 04:02:03 pm »
Hi to all

 i've updated GLSCENE

- Updated for Lazarus 1.80 RC1
- Remove many compilator Warning and replaced some deprecated procedures
- Little Cosmetics refunds
- Removed many Delphi Prepocessor and  reference for better multiplatforms compatibility
- Removed GR32 support (not working under Lazarus and FPC)
- Updated Samples demos (ShadowVolume, Subdivide, SkyBox, Procedural)
- Added More demos in Examples /SceneObjects/FreeForm,  /Editors

https://svn.code.sf.net/p/glscene/code/branches/GLSceneLCL


Thanks Handoko, I'll take look this day  8-)

Handoko

  • Hero Member
  • *****
  • Posts: 1192
  • My goal: build my own game engine using Lazarus
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #5 on: June 21, 2017, 05:42:55 pm »
After deep investigation, I managed to install GLScene in my Lazarus 1.6.4 64-bit Ubuntu 16.10 machine. Here I want to report what I found, hope it can be useful for others.

This bug hunting was performed on svn 7052, downloaded from:
https://svn.code.sf.net/p/glscene/code/branches/GLSceneLCL/

1. Error 232

What error 232 is, I don't know. After I installed GLScene, I tried to open some examples that come from the GLScene. None of them worked. Some of them require Windows unit, the remain showed error 232. Please see the attached image.

Not much info can be found on the web. Googling the Internet, I found only thread related 232 error:
http://wiki.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232

2. GlFileX.pas ---> GLFileX.pas

Linux file system is case sensitive. Please change the name to the correct one.

Location:
GLScene\Packages\GLScene_RunTime.lpk
Please remove the GlFileX.pas and add the correct one GLFileX.pas.

3. {$I ../../resources/GLSceneObjects.lrs}

Location:
GLScene\Source\Basis\GLObjectManager.pas   line #496

What is wrong:
{$I ../../resources/GLSceneObjects.lrs}
It points to a wrong location, also case sensitivity issue.

It should be:
{$I ../Resources/GLSceneObjects.lrs}

4. {$I ../../resources/GLScene.lrs}

Location:
GLScene\Source\DesignTime\GLSceneRegister.pas   line #1495

What is wrong:
{$I ../../resources/GLScene.lrs}
Again. It points to a wrong location and case sensitivity issue.

It should be:
{$I ../Resources/GLScene.lrs}

5. GlFileX ---> GLFileX

Location:
GLScene\Source\DesignTime\GLSceneRegister.pas   line #163
Please change the unit name GlFileX to the correct one GLFileX.

6. GlFileX ---> GLFileX

Location:
GLScene\Source\FileFormats\GLFileX.pas   line #31
Again, please change the unit name GlFileX to the correct one GLFileX.

7. FGuiSkinEditor ---> FGUISkinEditor

Location:
GLScene\Source\DesignTime\FGUISkinEditor.pas   line #7
Please change the unit name FGuiSkinEditor to the correct one FGUISkinEditor.

8. Remove Windows

Location:
GLScene\Source\DesignTime\FGUISkinEditor.pas   line #15
Please remove the Windows unit, it is useless and makes it fails to compile on Linux.
« Last Edit: June 21, 2017, 06:04:10 pm by Handoko »

Thaddy

  • Hero Member
  • *****
  • Posts: 3663
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #6 on: June 21, 2017, 05:49:35 pm »
After deep investigation, I managed to install GLScene in my Lazarus 1.6.4 64-bit Ubuntu 16.10 machine. Here I want to report what I found, hope it can be useful for others.

1. Error 232
User manual,maybe? Appendix D?
232 Threads not supported

Means you have to set IsMultitheaded to true and - apart from windows - use cthreads.
And indeed it IS a threads related issue. GLScene relies heavily on threads.
« Last Edit: June 21, 2017, 05:51:27 pm by Thaddy »
Why do the Danish always try to fuck up any programming language?

Handoko

  • Hero Member
  • *****
  • Posts: 1192
  • My goal: build my own game engine using Lazarus
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #7 on: June 21, 2017, 05:57:16 pm »
I don't know. The message only said "Project PickObject raised exception class 'RunError(232)'. It didn't mentioned anything about threads. See can see the image on the previous post.

Thanks Thaddy for the information about error 232. I quote your text again, hope the developer can see it:
232 Threads not supported

Means you have to set IsMultitheaded to true and - apart from windows - use cthreads.
And indeed it IS a threads related issue. GLScene relies heavily on threads.

GLScene, along with BGRABitmap and Castle Game Engine are awesome projects related with graphics. Hope GLScene can fix those issues soon and make it able to use on Linux.
« Last Edit: June 21, 2017, 06:09:53 pm by Handoko »

Handoko

  • Hero Member
  • *****
  • Posts: 1192
  • My goal: build my own game engine using Lazarus
Re: [ANN] GLScene for Lazarus 1.6.2 and up
« Reply #8 on: June 21, 2017, 07:46:46 pm »
It works now. Just as Thaddy said, that really was thread issue.

I found, they hardcoded the directory separator in the examples. But no problem, I can fix it. Now I can have fun with GLScene. :D

But the examples didn't look correctly. Still have minor bugs I guess.
« Last Edit: June 21, 2017, 07:48:32 pm by Handoko »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus