Hello Guest

getting 3d mesh to display

  • 1 Replies
  • 3526 Views
getting 3d mesh to display
« on: March 24, 2011, 20:25:22 »
So i used the blender 3d aniamtion to LWJGL tutorial to get some mesh data from blender.
link to tutorial
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9hhZie2D-fEYjRlMTg5YjAtODUwYy00YTE5LWE5NDgtN2EzYWMzZGY3NzE4&hl=en&pli=1

Could someone please point me in the direction of a tutorial that gets at how i can get the resulting code to render?
heres a sample of the code

Blender 2.56 (sub 0) -www.blender.org, source file: 'Dragon.blend'
property v means vertex {x, y, z}
property n means normals {x, y, z}
property u means uv coords {u, v}
property d obsolete for now
property c means vertex colors
 
property ? means animation key frame
property $ means fps
property # means number of vertices per frame


? 1 : Animation keyFrame
$ 60 : fps
v 0.500000 1.000000 1.200000
n 0.000000 1.000000 0.000000
u 1.000000 1.000000
c 1.000000 1.000000 1.000000

v 0.750000 1.000000 1.000000
n 0.000000 1.000000 0.000000
u 0.000000 0.000000
c 1.000000 1.000000 1.000000

*

Offline bobjob

  • ****
  • 394
  • LWJGL: WOW SO GOOD
Re: getting 3d mesh to display
« Reply #1 on: March 25, 2011, 02:47:08 »
Personally I'd use blender to export as Wavefront ".obj" its widely supported and there is heeps of examples of how to load it into openGL.