is any library can load a 3d format file to opengl api? lazarus / 70-OpenGL ---------------------------------------------------------------------- greenzyzyzy · 2023-05-16 15:25 is any library can load a 3d format file to opengl api? use with glBegin,glEnd,glNewlist,glEndlist ---------------------------------------------------------------------- Seenkao · 2023-05-16 17:48 Лично я не понял что вы хотите!   Какой именно формат вы хотите загрузить? Есть достаточно немало приложений, которые были сделаны в конце прошлого века и в начале нынешнего века, которые работают с 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. ---------------------------------------------------------------------- wp · 2023-05-16 21:59 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 · 2023-05-17 01:42 thanks for replies.but how about BGRABitmap? ---------------------------------------------------------------------- greenzyzyzy · 2023-05-17 01:54 Quote from: wp on May 16, 2023, 11:59:11 pm3d 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 · 2023-05-17 06:37 Quote from: greenzyzyzy on May 17, 2023, 03:54:22 amDoes 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 · 2023-05-19 10:45 Quote from: Leledumbo on May 17, 2023, 08:37:46 amQuote from: greenzyzyzy on May 17, 2023, 03:54:22 amDoes 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. ---------------------------------------------------------------------- TRon · 2024-08-23 00:29 Quote from: d2010 on August 22, 2024, 08:10:48 pmI need STL files? Where I can download some files *.stl? ddg stl file examples Which directs us for example to: https://grabcad.com/library/software/stl https://www.thingiverse.com ---------------------------------------------------------------------- DomingoGP · 2024-08-23 12:28 Quote from: d2010 on August 22, 2024, 08:10:48 pmI need STL files? Where I can download some files *.stl? In this page you can found some good classical art models. https://www.myminifactory.com/scantheworld/full- collection?sort=popularity ---------------------------------------------------------------------- d2010 · 2024-10-06 05:39 Quote from: TRon on August 23, 2024, 02:29:03 amThank you for your Links, are very goods. I put here a nw verions of STL-viewer. -a) I add Time-of Loading. -b)Rotate in 3D is very good -c)I display the grid of UcsPlaneX Can you put more models for 3dAxes? e.g. you replace red-lines to more other types-of-lines. ---------------------------------------------------------------------- Dzandaa · 2024-10-06 09:39 Hi, Does the color of the faces match the orientation of the normal's? If so, there are errors in the orientation of some faces. B-> ---------------------------------------------------------------------- Dzandaa · 2024-10-06 10:06 Hi, Sorry for the previous question, I looked at the code and found that the color of the faces is just an increment. Nothing to do with normals. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   for i:=High(FData) downto 0 do    with FData[i] do begin         case gc and 3 of07:    glColor3f(Red(c)/255, Green(c)/255, Blue(c)/255);01:    glColor3f(Red(c)/255, 000000000000, 00000000000);02:    glColor3f(0000000000, Green(c)/255, 00000000000);03:    glColor3f(0000000000, Green(c)/255, Blue(c)/255);           End;    glBegin(trip[i and 1]);        glNormal3f(Normal[0], Normal[1], Normal[2]);        glVertex3f(Vertex1[0], Vertex1[1], Vertex1[2]);      glVertex3f(Vertex2[0], Vertex2[1], Vertex2[2]);        glVertex3f(Vertex3[0], Vertex3[1], Vertex3[2]);      glEnd;      inc(gc);  end;