Recent

Author Topic: is any library can load a 3d format file to opengl api?  (Read 2350 times)

greenzyzyzy

  • Full Member
  • ***
  • Posts: 249
is any library can load a 3d format file to opengl api?
« on: May 16, 2023, 05:25:51 pm »
is any library can load a 3d format file to opengl api?
use with glBegin,glEnd,glNewlist,glEndlist

Seenkao

  • Hero Member
  • *****
  • Posts: 549
    • New ZenGL.
Re: is any library can load a 3d format file to opengl api?
« Reply #1 on: May 16, 2023, 07:48:01 pm »
  Лично я не понял что вы хотите!
  Какой именно формат вы хотите загрузить? Есть достаточно немало приложений, которые были сделаны в конце прошлого века и в начале нынешнего века, которые работают с 3D. Вам надо лишь найти код того времени, который работал с 3D в OpenGL.
  Так же, вы можете посмотреть книги того времени, возможно в них вы найдёте ответ на свой вопрос.

Google translate:
  Personally, I did not understand what you want!
   What format do you want to download? There are quite a few applications that were made at the end of the last century and at the beginning of this century that work with 3D. You just need to find the code of the time that worked with 3D in OpenGL.
   Also, you can look at the books of that time, perhaps in them you will find the answer to your question.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

wp

  • Hero Member
  • *****
  • Posts: 11912
Re: is any library can load a 3d format file to opengl api?
« Reply #2 on: May 16, 2023, 11:59:11 pm »
3d file formats are supported by GLScene (install from OPM). But my recent tests with GLScene showed that the Lazarus version of this library is not working very well.

I wrote a viewer for the STL format by myself - see attachment. The reader for the STL format is in unit svSTLFile. Note that this code is not finished, mouse handling, camera and light parameters should be improved.

greenzyzyzy

  • Full Member
  • ***
  • Posts: 249
Re: is any library can load a 3d format file to opengl api?
« Reply #3 on: May 17, 2023, 03:42:14 am »
thanks for replies.but how about BGRABitmap?

greenzyzyzy

  • Full Member
  • ***
  • Posts: 249
Re: is any library can load a 3d format file to opengl api?
« Reply #4 on: May 17, 2023, 03:54:22 am »
3d file formats are supported by GLScene (install from OPM). But my recent tests with GLScene showed that the Lazarus version of this library is not working very well.

I wrote a viewer for the STL format by myself - see attachment. The reader for the STL format is in unit svSTLFile. Note that this code is not finished, mouse handling, camera and light parameters should be improved.

Does GLScene can load a 3d format file for OPENGL api?just like 3ds gltf or other animate mode
i want to use it in OPENGL api.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: is any library can load a 3d format file to opengl api?
« Reply #5 on: May 17, 2023, 08:37:46 am »
Does GLScene can load a 3d format file for OPENGL api?just like 3ds gltf or other animate mode
i want to use it in OPENGL api.
OpenGL does NOT understand any 3D format, it only understands pure RGB(A) arrays and texture mapping. How the 3D is structured is totally your responsibility. I had a 3DS loader back then, might still be in my archive somewhere.

greenzyzyzy

  • Full Member
  • ***
  • Posts: 249
Re: is any library can load a 3d format file to opengl api?
« Reply #6 on: May 19, 2023, 12:45:49 pm »
Does GLScene can load a 3d format file for OPENGL api?just like 3ds gltf or other animate mode
i want to use it in OPENGL api.
OpenGL does NOT understand any 3D format, it only understands pure RGB(A) arrays and texture mapping. How the 3D is structured is totally your responsibility. I had a 3DS loader back then, might still be in my archive somewhere.

ok,thank you.

 

TinyPortal © 2005-2018