Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Xith3D Forums / Re: Help the Noob Load an obj =) on: 2003-12-05 02:30:51
Hey!  I think I figured out the problem. When I copy your obj into one of my own it works fine, but it doesn't work on mine.   What program was your obj generated with?  Wings seems to output with a different structure, it the same basic syntax.  Maybe I can just load my obj into whatever program you used and then export a new Obj.
2  Java Game APIs & Engines / Xith3D Forums / Re: Help the Noob Load an obj =) on: 2003-12-03 22:51:38
Sorry to be a nuisance, but I really don't think I've emphasised just how inexperienced I really am.  I got the OBJ loader to work on the galleon example, but I've yet to be able to load one of my own.  I've tried a few things, but I'll not go into that and just ask..  How do I get my obj onto the classpath?
 thanks yet again,
   -Morlem
3  Java Game APIs & Engines / Xith3D Forums / Re: Help the Noob Load an obj =) on: 2003-12-03 11:26:19
Ahhhhh!! thanks!  I think I would've been ok If I knew enough to realize it was loading from the classpath.  I just assumed it loaded from a file, b/c I've never loaded a file from the classpath before. Live and learn!  Grin
Thanks again,
 for the loader and helping me figure out how to use it!
   -Morlem
4  Java Game APIs & Engines / Xith3D Forums / Re: Help the Noob Load an obj =) on: 2003-12-03 03:43:57
Hey! thanks.  that was really helpful.  But just to further prove that I really don't know what Im doing, here is another problem I can't figure out.

I'm tring to compile and execute the OBJTest.java which is the example that was provided with the code, but everytime I get this message:
1  
Loading: othermodels/tiletest/tile1.obj

then:
1  
2  
java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:61)... etc...

Which I'm thinking is approptiate b.c there is no tile1.obj, or that folder .  deleted the class file a couple times to make sure it was actiually compiling...

I couldn't figure that out so I tried making a completely new folder and everything with the files there too, and now I've run into a new problem.  I either get the NullPointerException or a String out of bound exception and i think I know why, but I don't know what to do about it.
Here's some code from the OBJLoader
1  
2  
3  
    public BranchGroup load(String objFile,NodeFactory factory,Vector3f vec) throws IOException {
        System.out.println("Loading: "+objFile);
        String basePath = objFile.substring(0,objFile.lastIndexOf("/"));

given that it sets the basepath to everything preceding a / does that mean it would only work on a Unix type file system since Windows uses \ instead of / ??  I'm getting the String out of Bounds exception b.c I took out the /'s so it never found one OR I'm getting the null pointer exception b.c I am including \'s to show where my directory is and it's never finding the file b.c this is Windows.  That's my current theory anyway.  Could I just extract that line from the jar, change the line, recompile and stick it back in??  Thanks again for tolerating my inexperience!
5  Java Game APIs & Engines / Xith3D Forums / Help the Noob Load an obj =) on: 2003-12-01 00:16:12
Hi!
I'm making a simple scene to navigate for a class and was wondering if anyone could help me load an obj I exported from Wings3d of Trogdor from Strongbad's emails.  Any quick hints on how to color or texture him would be appreciated too, but that's not really integral for what I wanna do.  I read the tut on loading ase files, but being a poor college student I can't afford the likes of 3dsmax.  Tongue

thanks!
 -Morlem

-edit-  I'm asking b/c the site mentions a loader for objs, which I thought would let me avoid porting a class that I made thatreads in all the vertices and then makes the faces listed in the obj file.  
6  Java Game APIs & Engines / JOGL Development / Re: Help with Installation on: 2003-11-16 21:18:35
no.. no reason.   Tongue  I just don't know what Im doing really.. lemme give that a try real quick.
7  Java Game APIs & Engines / JOGL Development / Help with Installation on: 2003-11-16 21:01:42
Hi!  I'm a true newbie, and have been having difficulty getting JOGL to usable state.  I've been going through the steps listed here:  https://jogl.dev.java.net/unbranded-source/browse/*checkout*/jogl/doc/HowToBuild.html?rev=HEAD&content-type=text/html

And I got all the way to step 5, where I type
"ant win32.mingw" in cmd console. And I get this error:

generate.c.grammar:
   [antlr] java.lang.NoClassDefFoundError: antlr/Tool
   [antlr] Exception in thread "main"

BUILD FAILED
file:C:/CVSviews/JOGL/make/build-gluegen.xml:102: ANTLR returned: 1

Im sort of at a loss at this point.  Should I have just d/led one of the precompile binaries??  If I had, what do I do with files?  ie..  Where do I put them?  

thanks,
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (16 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (35 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (20 views)
2014-08-16 06:20:21

Tekkerue (32 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (44 views)
2014-08-09 21:09:32

BurntPizza (35 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!