• Advertisement

Archived

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

Blender

This topic is 6001 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

How do I convert models made in program Blender so I could use them in my program in openGL ? Thank you !

Share this post


Link to post
Share on other sites
Advertisement
I ''researched'' this a little while ago. You basically either use the dxf or vrml formats that it can export, or you write your own exporter using the Python scrypting language.



How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.

Share this post


Link to post
Share on other sites
I thank you very much for trying to help me but I don''t thing I quite understand you. When I do sth in blender, the program just saves my models in format .blend , so I would be very thankful if you could write me the easiest way to do that, to use models made in blender in my openGL code

Thank you !

Share this post


Link to post
Share on other sites
I am sorry to bother you again but I do not know how to do that and I didn''t find anything useful on that page so I am asking you if you could send me the converter that you made for yourself.
Thank you !

Share this post


Link to post
Share on other sites
Ever format is different. I made that format specifically for the mini-engine I was experimenting with (the format was pretty primitive, but it worked for experimenting). The format you design should be what you need for whatever your project requires. Assuming you know the C or C++ file i/o libraries, you should easily be able to use one of the existing mainstream formats or convert it to your own. We can''t write everything for you, since every project has different requirements.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post


Link to post
Share on other sites
I think he is more or less looking for the .blend format specs so he can load it

Try asking the blender community or NAN see if they will give it up for you!

Share this post


Link to post
Share on other sites
that''s why I said to export it to dxf or write a plugin so it''s easier to load the model. the .blend format is very f---ed up.



How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.

Share this post


Link to post
Share on other sites
You can check out my python script i use for blender
(basicly a complete re-write of w3d2.py) It uses tris, materials, matrix, uvtexture, and simple animation.
However, with blender''s iffy interface i cannot extract the script for the forum :o

should i email it?(the .blend file)

-bobert


How many bits could a blitter blit if blitter could blit bits?

Share this post


Link to post
Share on other sites
Well, mail it to me...let me see !

And what do I have to do to make it work ?

Thanks !

Share this post


Link to post
Share on other sites
alright, i sent it! anyone else want it?

-BobertGL

PS: i think that everyone needs to know the basics of python, its a great way to expand on blenders capibilities...
PSS: erm, how expirienced are you SIHOG? because i sorta made the discription letter complex and asumed you knew about things like matrixes and uv texturing...sorry



How many bits could a blitter blit if blitter could blit bits?

Share this post


Link to post
Share on other sites
D''OH!
i forgot to say that you need to convert your mesh(s) to triangles with alt-t or ctrl-tbefore exporting.
face data is all indexed triangles!

Share this post


Link to post
Share on other sites

  • Advertisement