Hello Guest

How can one load an OBJ file?

  • 68 Replies
  • 124542 Views
Re: How can one load an OBJ file?
« Reply #60 on: September 28, 2007, 13:47:28 »
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

Re: How can one load an OBJ file?
« Reply #61 on: September 28, 2007, 14:29:18 »
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

Re: How can one load an OBJ file?
« Reply #62 on: September 28, 2007, 14:36:46 »
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

Re: How can one load an OBJ file?
« Reply #63 on: September 29, 2007, 00:48:41 »
Motherboard Intel Pentium D101G, Processor Intel Pentium 4 HT

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

Re: How can one load an OBJ file?
« Reply #64 on: September 30, 2007, 17:27:36 »
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

Re: How can one load an OBJ file?
« Reply #65 on: October 06, 2007, 21:48:33 »
Trying to run i get this message:
Exception in thread "main" java.lang.NoClassDefFoundError: javolution/util/FastMap

Re: How can one load an OBJ file?
« Reply #66 on: October 06, 2007, 22:24:25 »
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

« Last Edit: October 06, 2007, 23:43:19 by tronador »

Re: How can one load an OBJ file?
« Reply #67 on: October 07, 2007, 02:07:38 »
Quote
Trying 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

Re: How can one load an OBJ file?
« Reply #68 on: August 11, 2008, 03:33:39 »
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