|
[3D] Importing .ASE objects inside OpenGL |
LordHolNapul
Member #3,619
June 2003
|
Hi, With this program there is the possibility to EXPORT projects and geometry in various formats, such as ".ase" files.
How can I move this information inside my 3D space created in a OpenGL application? lot of thanks to everyone. |
Steve Terry
Member #1,989
March 2002
|
You need to write a parser to go through the .ase file and build the vertex list, which is used to make the faces of the cube, and it looks like the file already has computed normals for the face vertex for proper lighting. Learn some OpenGL first, then see how it's all put together in a 3D file format. If you want an easier format use .obj, get that going then you can play with .ase files. They look a bit more complicated but not impossible. The format is pretty much similar to .3ds only in ASCII format. Think about it, to make a cube you need 8 points, and 12 faces (this is due to the fact that the faces aren't square but triangles). ___________________________________ |
LordHolNapul
Member #3,619
June 2003
|
I thank you for the Suggest. I've tried to write a parser utility, but the coordinates inside the previous file are not in the right order to generate my cube using Openg Gl vertex... and I cannot understand the faces criteria declared into the file yet. How could be used... ? boh. And What do you prefer to use if I can to know ? ciao |
SiegeLord
Member #7,827
October 2006
|
Quote: what's your best 3D editor and how do you import objects in your Space ? I personally like to use Lightwave files, since they separate the scenes and meshes into two separate files, unlike many other programs. Since I only want to load the mesh, I see no point fiddling through random scene information during parsing. LW file was constructed out of chunks (RIFF, afaik), which I personally find easier to parse than other file types. I would suggest parsing the binary form of the file however, it always takes less space, and it is somewhat faster. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
LordHolNapul
Member #3,619
June 2003
|
ok, I will proceed to 3DS file parsing then. Ciao |
Steve Terry
Member #1,989
March 2002
|
3ds may not be the best format to attempt, it's in binary not ASCII and it's not very open to the file format internals. I wrote my own 3ds renderer but it's not complete since it was a bit confusing what some things meant. ___________________________________ |
LordHolNapul
Member #3,619
June 2003
|
Thank you Steve. http://www.wotsit.org/search.asp?s=3d Ah, if you dare, review my game here on Allegro. The link is below. ciao from Italy |
|