14
\$\begingroup\$

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.

\$\endgroup\$

4 Answers 4

9
\$\begingroup\$

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.

\$\endgroup\$
0
4
\$\begingroup\$

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.

\$\endgroup\$
3
  • 6
    \$\begingroup\$ Isn't that the opposite of "easiest way"? :-) \$\endgroup\$ Commented May 9, 2011 at 22:10
  • 2
    \$\begingroup\$ +1 I find it funny how to the highest rated answer (by Oskar) says essentially the same thing, but you get downvoted. :) \$\endgroup\$ Commented Dec 11, 2012 at 5:34
  • \$\begingroup\$ 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. \$\endgroup\$ Commented Jan 17, 2014 at 3:48
3
\$\begingroup\$

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

\$\endgroup\$
0
\$\begingroup\$

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.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.