renderer program to lwjgl

I am fairly new to lwjgl and 3d renderers so go easy on me :slight_smile:

I am using Blender3D to do my modeling. I really like lwjgl and think the two go hand in hand since they are both opengl at their roots. So, what is the process for using or importing a model into lwjgl? Or in opengl in general? Do I need to convert the model to a format that opengl understands and it will take over from there? Can I just tell lwjgl to “play” an animation done in blender?

Sorry there are a lot of questions here, but I am really confused at this point… thanks so much!

-nn

[quote]So, what is the process for using or importing a model into lwjgl? Or in opengl in general?
[/quote]
It is infact, into OpenGL in general.

You need to write (or aquire) a “Loader”. There are quite a few out there. I am not aware of what format Blender exports to, so can’t help you locate one. Do search the board for loaders, since there have been some posts about someone doing them, and wanting to publish them.

Hi, ;D
You could use the MRI Loader avaible
at : http://www.multi.fi/~mbc/v3ds/Decode3dsApplet.html

[quote]Hi, ;D
You could use the MRI Loader avaible
at : http://www.multi.fi/~mbc/v3ds/Decode3dsApplet.html
[/quote]
thanks! (and thanks to matzon too)

does this applet code work for blender files or do you have to convert the .blend to a 3d studio format first?

-nn

Good Morning, ;D

I dont know Bender! I could be possible that you have
to convert it, but i you have to do such thing,
it would be better to use some other Loader/importer

  • Jens

Blender is, unfortunately, a nightmare to get anything out of!

The file format is basically a C-side memory dump, and is to all intents and purposes unparsable by any client applications. It changes drastically between versions and is totally undocumented. Last I saw you could either output to VRML, or learn Python and write a converter into whatever format you want.

An XML file format has been suggested, but last I saw it had been shot down by a comment similar to “that would slow down loading/saving, d00d!!!”. Sad really, if they used XML it’d really allow Blender to do more, but no. :frowning: