How can one load an OBJ file?

Started by elias4444, January 27, 2005, 00:13:05

Previous topic - Next topic

elias4444

Can you run: www.tommytwisters.com/spaceops/spaceops.jnlp ?

This is a beta of my current project and uses very similar screen initialization code.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

elias4444

Ok... I've been looking through the code again (been a while). That error specifically comes up when it can't generate a texture ID. Have you tried other lwjgl demos that use textures? Do you know how much memory your card has?

=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

elias4444

I also just found this link that mentions several people having similar issues with certain Nvidia card and motherboard combinations: http://forums.nvidia.com/index.php?showtopic=22336.

Out of curiosity, what kind of motherboard/chipset/processor do you have?

=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

tronador

Motherboard Intel Pentium D101G, Processor Intel Pentium 4 HT

The spaceops beta works 100% ok, load all textures ok

elias4444

Ok, I've updated the texturetester to my latest screen code, so feel free to try it again and let me know how it goes. I've also updated the source code at www.tommytwisters.com/texturetester.jar with the changes.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

tronador

Trying to run i get this message:
Exception in thread "main" java.lang.NoClassDefFoundError: javolution/util/FastMap

tronador

I'm getting information the error and i think that this is the problem:

GL11.glGenTextures and GL11.glGenLists produces a Exception

Trying to run another loader (MD2 Loader by Kevin Glass) i get this exception:

java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glNewList(GL11.java:2196)

i read in a mailing list that is because it can't allocate memory on video card to create new display list  :-\ :-\ :-\



Is possible test it in software mode or solve my problem???

Solved: The trouble was that i try to load a model before initialize GL


elias4444

QuoteTrying to run i get this message:
Exception in thread "main" java.lang.NoClassDefFoundError: javolution/util/FastMap

Ugh... I downloaded a newer javolution library and it got mixed into the last build. I've updated it now. It should work.

=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

nicolasbol

That's an old thread but It may interest someone, I wrote a JAVA OBJ loader with MTL and texture support, rendition is LWJGL based.

http://fabiensanglard.net/Mykaruga/index.php