Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Loading Blender3D

This topic is 5529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
all you need is that file format specification.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
there are loads of prewrittens scripts that you allow to expert blender objects to various formats.

I personally have used the obj export script. Visit www.elysiun.com and go to the scripts forums and ask there for the location of the obj export script.

After that, I''m sure you could find any number of tuts on loading obj model data into OpenGL.

Share this post

Link to post
Share on other sites
Open the script window in Blender and type this Python shit:

import Blender
from Blender import Scene, Object, Mesh
import sys
file = open("model.mdl", "w")
for obj in Object.get():
if obj.getType() == "Mesh":
m = obj.getData()
for dummie in m.vertices:
i = i + 1
file.write("NumberOfVertices %i" % i )
for vert in m.vertices:
file.write("%f %f %f"%(vert[0],vert[1],vert[2]))


Then you have all the vertices saved into a file or sumthin.. That''s a start at least. Take a look at the web to find more exporterscripts and how to write them (www.google.com)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!