PDA

View Full Version : looking for a simple sphere .obj file



michael2212
01-25-2012, 11:45 AM
hello, im trying to build a simple 3d model of our solar system useing JOGL.
i allready wrote a parser that can read .obj files and create arrays of vertexes and normal for me and i can allready draw the 3d object to the screen.

now all i need is the object, and getting it has turned out to be harder i thought, (tryied to google it from every direction),

so can anyone here help with that ?
what i need is a really basic and simple sphere, no texture or anything fency..

thanks

McLeary
01-25-2012, 12:23 PM
If you are able to read vertices and normals why are you having trouble on reading the list of indices?

Ilian Dinev
01-25-2012, 02:09 PM
There; radius 1.0f ; with texcoords and normals:
http://dl.dropbox.com/u/1969613/openglForum/sphere.7z

You can directly replace the texture with maps like:
http://celestia.h-schmidt.net/earth-vt/

V-man
01-25-2012, 02:39 PM
I suggest that you download Blender.
Model a sphere with it and export to OBJ format.

MaxH
01-25-2012, 03:42 PM
Why don't you just use the gluSphere routine?

michael2212
01-26-2012, 12:54 AM
There; radius 1.0f ; with texcoords and normals:
http://dl.dropbox.com/u/1969613/openglForum/sphere.7z

You can directly replace the texture with maps like:
http://celestia.h-schmidt.net/earth-vt/

great !, :) thats exactly what i was looking for,
many thanks to you and everybody else how tryied to help.

i will definitelly check out blender and the gluSphere solution as well,

in the meantime i created a model of an icosahedron to use when the planets are far from the camera (calulated manually all its 20 faces, it took a while ...)