Page 1 of 1

Blender to OpenGL code

Posted: Wed May 12, 2004 9:56 pm
by gsusfreek
Hey. I've been learning how to program with OpenGL in C++. I was wanting a way load blender files into the program. Though my solution to this problem wasn't a very efficient one, it works for the time being. My solution was to write an exporter in Python that exports direclty to OpenGL code in a ".txt" file. This way, you can just copy and paste into the program. At the moment, it only works for quads (wouldn't take much to change that), but it does support both textured and non-textured meshes. I don't know much Python, so I basically copied the parts of the code I needed out of the "DirectX exporter" that comes with Blender and then editing that code.

I had a couple of questions:
1) Would anybody on the face of Earth (or Arda for that matter :lol: :roll:) care if I put up this code for grabs?

2) Would putting the code up for grabs be legal (since the code is mostly from the other exporter that comes with Blender)?

3) If anybody does care (for some strange, unknown reason), is there a place to put it up on Blender's site somewhere somehow, or should I upload somewhere else and link there?

Thanx! Buy.

Posted: Wed May 12, 2004 11:07 pm
by SirDude
Sure people would use it.

There was already an OGL exporter but it looks like
the site is down.

http://www.blender3d.org/cms/Import___Export.5.0.html
has a list of current import/export scripts.

When in doubt about licensing issues its best to talk to the author of the original script and see if its ok to use it.

If you create a website for it I'll add a link to the above page and you'll be all set. If you need web space I can probably provide it for your script however it will make it a little more complicated because you'll have to contact me when you have updates.

Let me know what you want to do.

email (mein at cs.umn.edu)

Posted: Thu May 13, 2004 3:49 am
by gsusfreek
Oh. Well if one already exists, I don't see a lot of need to publish mine. Thanx for the link to the existing exporter, though. :!: That's great!!!

Posted: Sat May 15, 2004 12:47 am
by gsusfreek
Umm... it appears that the site with the OGL exporter is no longer active. Would somebody be willin' to email it to me? If so, I'll post the address to send it to. Thanx!

Posted: Sun May 16, 2004 2:17 am
by gsusfreek
Never mind. I have implemented a different solution for getting my models into my programs. Thanx.