Need 3D model formats info..

Started by darknet, April 20, 2007, 01:47:44

Previous topic - Next topic

darknet

I need help that I pretty new at this. I don't know what type of format to work on. Can any one help me out? Read some forums but it not easy to know which one. i don't even know how the code work for loading objects..

Matzon

You should use a scenegraph that handles all of this for you. please take a look at:
http://www.jmonkeyengine.com/
http://xith.org/

bobjob

if you understand the basics of opengl and want to load a file type extention, i personally would recommend the ".obj" look it up in google, its a script layout really easy to work with. Has all the important information regarding 3d objects, such as: Vertex Point, Texture co-ordinate, Normal.

darknet

Well i wanted to code the my own way and test out if the code work for the object format file ext. any more about java codes object would help more ^-^.

Rainer

is there some sample code to load .obj files?
sounds interesting :)


Rainer

thanks, now i succeded to render the asteroid spaceship into my scene.
but something is strange, if i render the model, my scene becomes very dark.
the model itself is rendered with the correct lighting.
what could be the reason?

kappa

its the lighting, switch it off after you have rendered the model, GL11.glDisable(GL11.GL_Lighting) thing.

Rainer

if i just switch of lighting after the model, i have no lighting at all in the actual scene?
i tried switching on/of lighting at different locations, but with no success.

Rainer

mhh, possibly i got some problems with normals, if i remove normals from the model my scene looks like before. (and the model appears just bright, without any shadowing).