Lazarus

Programming => General => Topic started by: pixelink on July 15, 2019, 09:23:36 am

Title: Lazarus - Displaying 3D in Viewer
Post by: pixelink on July 15, 2019, 09:23:36 am
Hi,


I am needing any info that can point me to displaying 3D in my app.

Formats desired...

3DS
OBJ
BLEND
DXF
FBX

Can it be done?

Any info appreciated.
Title: Re: Lazarus - Displaying 3D in Viewer
Post by: wp on July 15, 2019, 12:04:14 pm
Maybe GLScene? You can install it using the Online-Package-Manager.
Title: Re: Lazarus - Displaying 3D in Viewer
Post by: pixelink on July 15, 2019, 12:29:24 pm
Maybe GLScene? You can install it using the Online-Package-Manager.

Thanks... will give it a try
Title: Re: Lazarus - Displaying 3D in Viewer
Post by: mr-highball on July 15, 2019, 02:06:29 pm
you could use castle engine,
https://castle-engine.io/
Title: Re: Lazarus - Displaying 3D in Viewer
Post by: Handoko on July 15, 2019, 03:51:26 pm
Maybe GLScene? You can install it using the Online-Package-Manager.

Thanks... will give it a try

Last time I tried GLScene, it was too buggy to run on Linux.
Title: Re: Lazarus - Displaying 3D in Viewer
Post by: pixelink on July 15, 2019, 05:45:33 pm
you could use castle engine,
https://castle-engine.io/

I saw that, but that would be a lot of overhead and functions I don't need.
Just want a simply viewer that loads a model and allows me to rotate it in in 3d space... nothing more.

If wanted to create an app that need more of those feature, this package would be top of my list

Thanks for suggesting it.



Title: Re: Lazarus - Displaying 3D in Viewer
Post by: SymbolicFrank on July 15, 2019, 05:48:47 pm
You can probably do all you want with castle engine (including the 2D stuff), and it's very modular.
Title: Re: Lazarus - Displaying 3D in Viewer
Post by: wp on July 15, 2019, 05:57:12 pm
you could use castle engine,
https://castle-engine.io/
I saw that, but that would be a lot of overhead and functions I don't need.
Just want a simply viewer that loads a model and allows me to rotate it in in 3d space... nothing more.
Follow one of the many tutorial on OpenGL in the web, and learn OpenGL - that's more rewarding than applying a ready-made, heavily loaded library. You can use OpenGL in your program by means of the TOpenGLControl. And I looked at the OBJ file format in wikipedia - it's a plain text file and almost directly matches the OpenGL commands to be called (I don't know about the others, though).
Title: Re: Lazarus - Displaying 3D in Viewer
Post by: pixelink on July 15, 2019, 07:13:49 pm
you could use castle engine,
https://castle-engine.io/
I saw that, but that would be a lot of overhead and functions I don't need.
Just want a simply viewer that loads a model and allows me to rotate it in in 3d space... nothing more.
Follow one of the many tutorial on OpenGL in the web, and learn OpenGL - that's more rewarding than applying a ready-made, heavily loaded library. You can use OpenGL in your program by means of the TOpenGLControl. And I looked at the OBJ file format in wikipedia - it's a plain text file and almost directly matches the OpenGL commands to be called (I don't know about the others, though).

Yeah, I thought about that.... that may be the best root.
But, maybe another day when i am up to it.
TinyPortal © 2005-2018