Recent

Author Topic: Lazarus - Displaying 3D in Viewer  (Read 2452 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Lazarus - Displaying 3D in Viewer
« 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.
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Lazarus - Displaying 3D in Viewer
« Reply #1 on: July 15, 2019, 12:04:14 pm »
Maybe GLScene? You can install it using the Online-Package-Manager.

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: Lazarus - Displaying 3D in Viewer
« Reply #2 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
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

mr-highball

  • Full Member
  • ***
  • Posts: 233
    • Highball Github
Re: Lazarus - Displaying 3D in Viewer
« Reply #3 on: July 15, 2019, 02:06:29 pm »
you could use castle engine,
https://castle-engine.io/

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Lazarus - Displaying 3D in Viewer
« Reply #4 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.

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: Lazarus - Displaying 3D in Viewer
« Reply #5 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.



Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: Lazarus - Displaying 3D in Viewer
« Reply #6 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.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Lazarus - Displaying 3D in Viewer
« Reply #7 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).

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: Lazarus - Displaying 3D in Viewer
« Reply #8 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.
« Last Edit: July 16, 2019, 12:49:51 am by pixelink »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

 

TinyPortal © 2005-2018