Recent

Author Topic: Lazarus & Glscene  (Read 18192 times)

WarLock

  • Guest
Lazarus & Glscene
« on: December 14, 2004, 03:59:37 pm »
First of all let me said that the Lazarus made some big progress over the last month. Last time i download Lazarus for Win32 you simply can make something with it. I wanna inform you all that some guys at the GlScene are trying to install Glscene in Lazarus.

You can see more info in the GlScene new group ( forums.talkto.net)
in the Glscene.General group

For information GlScene are a set of compement able to produce 3d scene
and the news group are very active.

You can get more info at ( www.glscene.org )

WarLock

Giuseppe Ridinò

  • Full Member
  • ***
  • Posts: 130
Lazarus & Glscene
« Reply #1 on: December 14, 2004, 04:16:00 pm »
That's sounds veerryy good!  :P
Curiosity: are those guys also members of lazarus community?

WarLock

  • Guest
Lazarus & Glscene
« Reply #2 on: December 14, 2004, 04:25:48 pm »
I dont know if this guys are on the Lazarus communtiy but i'm sur that all the Glscene community can boost the production of Lazarus.

This is the Roadmap that Eric Grange post for making Glscene compatible with Lazarus

- getting DXP sample-level test cases to compile reliably,
   with various FreePascal compiler options (optimizations ON).
- adding ability to get raw bitmap data from an LCL TGraphic,
   or rewrite an LCL TGraphic substitute to get texture support.
- get it to run at design-time (does Lazarus support custom
   design-time experts and such?)
- get the GLScene demos to compile and run.

But If you more detail on this you enter in the New group of Glscene

WarLock

Giuseppe Ridinò

  • Full Member
  • ***
  • Posts: 130
Lazarus & Glscene
« Reply #3 on: December 14, 2004, 04:28:02 pm »
An important thing to be taken into account is that lazarus is a cross-platform enviroment. oohh,... I don't know very well GLScene, is it cross-platform too? (I guess yes, since it is OpenGL based, or eventually it could be)
If this is the case, this topic should be moved in a non-Win32 specific section.  :idea:

Lightning

  • Sr. Member
  • ****
  • Posts: 422
Lazarus & Glscene
« Reply #4 on: December 14, 2004, 06:21:51 pm »
Verry good news for Lazarus and the GLScene project since Lazarus doesn't have a similar library yet :)
OpenGL is CrossPlatform and a verry good standard (i might say better that D3D).
I'm sure the guys @ DelphiGamer (PGD) would be verry happy to hear this :)
GLScene is CrossPlatform (usable in Delphi/Kylix) and now it will support all platforms FPC supports :lol:
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

WarLock

  • Guest
Lazarus & Glscene
« Reply #5 on: December 15, 2004, 06:45:29 am »
Stuart Gooding have release a test package for installing GlScene in Lazarus. Stuart Gooding write:

As promised in previous threads here is the GLScene package for Lazarus:

http://users.tpg.com.au/blakest2/stu/glscene_lazarus.zip

It weighs in at just under 300Kb zipped.

To install the package use the 'Components > Open package (.lpk)' menu
item and open the GLSceneLazarus.lpk file in the Lazarus folder. When
you compile it should drop all .ppu and .o files in the lib folder. Then
press install. Lazarus will recompile itself and restart. That should be it.

You'll need to point a new project to the lib folder that the package
compiles all of it's units to (or change the packages unit output to
somewhere in the unit path).

I've $IFDEF'ed the pas and package file in the test program so you can
load the dpr with delphi and lazarus. There's also a copy of the
unit1.lfm (unit1.lfm.original) because when Lazarus saves the form it
seems to screw up the file, though the lrs file seems OK which is
generated from the lfm (bizarre!).

There is an issue on closing the program when the SceneBuffer tries to
remove itself from the associated Camara's Scene. In
TGLScene.RemoveBuffer it crashes, I haven't figured out what's going
here because the debugger crashes when I try to delve into it.

Stu.

Anonymous

  • Guest
Lazarus & Glscene
« Reply #6 on: December 15, 2004, 11:44:22 am »
Lazarus says cant find OPENGL32.dll:wglSwapMultipleBuffers

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Linux?
« Reply #7 on: December 15, 2004, 03:25:23 pm »
I've tried the package in linux but I get a "Identifier not found XID"
Is this package win32 only yet?

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 184
    • http://www.lazarus.freepascal.org
Lazarus & Glscene
« Reply #8 on: December 15, 2004, 04:20:52 pm »
Some notes:
In general it is better to add the package to the requirements of the project (Project Inspector -> Add -> Requirement), instead of changing the unit path, or even worse: It's a bad idea to change the output directory of a package to the same place as a project.
By using package dependencies and distinct output directories you get:
- platform independent paths (you can copy your project to other computers and/or other platforms)
- automatic rebuilding
- you avoid mixed settings, that can result in hard to debug bugs, especially for newbies
- changes to the package will automatically be used by the project

Anonymous

  • Guest
Lazarus & Glscene
« Reply #9 on: December 15, 2004, 08:12:35 pm »
At the moment the lazarus version is only windows, there is ONE reason for this, we have seperate viewer components, some visual and others not. We do not have one crossplatform viewer, so each viewer will have to be ported manuelly.

In generel 90% of the glscene developers are targeting the windows platform, the major reason for this sudden "landslide" towards Lazarus is that we want to be able to build 64bit apps with GLScene without resorting to .NET! (And borland says they have no plans to go 64bit native)

Still I would expect the last 10% percent to make GLScene availible for Linux as soon as the dust settles. AFAIK We have NO Mac users, but perhaps that will change soon... :p

I noticed alot of warning near the JPEG units, saying it is broken, most glscene projects and demos use one or more JPEGs any advice on how to handle that?

I got bitmap textures to work yesterday, but the implementation is per pixel, which is quite alot slower than we are used to. If some of you Lazarus guys can think of a faster way to convert a (lazarus)TGraphics to a raw 32bit per pixel data block, it would be appreciated.

- Joen.

PS: the issue with wglSwapMultipleBuffers, is prolly that you have an old opengl version, try updating your drivers to latest. If you are running some other OS than windows that would also explain it, we reckognize Kylix but this extension(all wgl extension is purely windows) might sneak into linux or mac.

Anonymous

  • Guest
Lazarus & Glscene
« Reply #10 on: December 15, 2004, 08:21:42 pm »
Ohh Mattias

About that package versioning thing, please point us to a tutorial, so we can get our packages right. ;o)

Last time we checked it Lazarus(about a year ago) it was too bugged and unstable to imagine working with, perhaps we where unlucky with the snapshot, now we are working off the installer published 10. december and while it have stability problems, its clear that Lazarus is on its way to becoming a great IDE.

My major issues so far is: (all with the windows build)
* project compiler flags changing themselves sometimes.
* the debugger (I know its WIP, so I wont go into specifics. )
* the browse dialog freezes lazarus 50% of the time!

- Joen.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Lazarus & Glscene
« Reply #11 on: December 15, 2004, 08:51:16 pm »
Quote from: "Anonymous"
My major issues so far is: (all with the windows build)
* project compiler flags changing themselves sometimes.

Can try to reproduce it and make a bug report?
Quote
* the debugger (I know its WIP, so I wont go into specifics. )
:wink:
Quote
* the browse dialog freezes lazarus 50% of the time!

You mean like in bug 499? I am working on it, the work around is to use the path dialog only once per lazarus session.
If you mean somthing different: please submit a bug report.

Gabuzomeu

  • Guest
Lazarus & Glscene
« Reply #12 on: January 13, 2005, 08:17:22 pm »
hello

Could you please have a look to my post:
http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=724&highlight=glscene

I've got linking errors.. and dont know what I should do now ?!

Thanks

Anonymous

  • Guest
Lazarus & Glscene
« Reply #13 on: March 25, 2005, 11:04:51 pm »
Tried FPC 1.9.8 with latest Lazarus CVS and get tons of warnings and errors, errors begin here:
C:\Dokumente und Einstellungen\Administrator\Desktop\glscene\Source\Base\OpenGL1x.pas(3480,27) Error: Incompatible types: got "Pointer" expected "<procedure variable type of procedure(LongWord, LongWord, LongWord, LongInt, LongWord, Pointer);StdCall>"
If you want to, I can upload the complete log file somewhere, but it would be too much to post here ;)

Could someone help me? Uh btw its Win2k...

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
Lazarus & Glscene
« Reply #14 on: March 29, 2005, 11:14:31 am »
FPC 1.9.8 is a lot strickter in syntax. This means that you cannot set or pass a pointer where a adress of a procedure is expected.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018