Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Using LWJGL what is the easiest way to load a 3D model to be drawn on screen?

I know LWJGL doesn't have built in loading support so I am looking for a small library that would help to load specifically .blend files.

share|improve this question

4 Answers 4

The best way in my opinion is to write your own parser for .obj exported with Blender or your preferred 3D modeling software. It will really only take you a maximum of one hour and you won't have to worry about distribution/licence issues. Here is a video about this question: http://youtu.be/izKAvSV3qk0.

share|improve this answer
    
I assume you're the same Oskar? Well done with the videos, and welcome to GameDev SE. –  Byte56 Mar 29 '12 at 15:44

You may find JAGaToo to be useful. It has loaders for MD2/3/5, OBJ, and some other model formats.

share|improve this answer

The easiest way is to build you own loader that can for example load .OBJ files or maybe your own format thats custom made for your game. Blender files however I'm not sure.

share|improve this answer
6  
Isn't that the opposite of "easiest way"? :-) –  Notabene May 9 '11 at 22:10
2  
+1 I find it funny how to the highest rated answer (by Oskar) says essentially the same thing, but you get downvoted. :) –  Miguel Dec 11 '12 at 5:34
    
Ease may be subjective here, but it certainly is the smartest way to do it. .obj files have a simple structure, and writing a loader/parser for the format is simple compared to other formats. It may be considered to be easier as a long-term gain when you consider that you will be in direct control of the source that loads your models, in case something strange happens; not at the mercy of a black box or some unfamiliar code. –  Nathan Jan 17 at 3:48

Have a look at jMonkeyEngine - it has model loading capabilities for many different model files and is based on LWJGL so you may be able to adapt it to your needs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.