Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  3ds loader: null pointer in SmoothGroupProcessor  (Read 1454 times)
0 Members and 1 Guest are viewing this topic.
Offline zzorn

Junior Newbie

Java games rock!

« Posted 2004-03-14 00:06:24 »


I'm using the latest xith-3ds loader available from the xith toolkit projects download page.  Loading some models seem to cause a null pointer exception in the class org.newdawn.xith3d.threeds.SmoothGroupProcessor, in method calculateSurfaces at row 160:

159:        for (int i=0;i<normalCache.length;i++) {
160:            normalCache[i].normalize();
161:        }

The Jeep model loads fine, but some other 3ds files cause that exception (they all seem to use smoothed / gouraud shaded surfaces, in case that has anything to do with the error).  I don't have access to ftp upload at the moment, but can send the model by mail if needed.

      at org.newdawn.xith3d.threeds.SmoothGroupProcessor.calculateSurfaces(
      at org.newdawn.xith3d.threeds.SmoothGroupProcessor.process(
      at org.newdawn.xith3d.threeds.TDSLoader.processChunk(
      at org.newdawn.xith3d.threeds.TDSLoader.load(
      at org.worldforge.gamesystem.shape.Model3DSShapeFactoryLoader.loadShapeFactory(

Best regards,

Offline kevglass

« JGO Spiffy Duke »

Medals: 272
Projects: 25
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2004-03-14 04:27:54 »

Have you got the latest version of the loader, I think we've done this one already.

If not, feel free to send the models over to me and I'll try and take a look in the near future.

As a work around you might try flipping the flag for indexed geometry when you load.


Offline zzorn

Junior Newbie

Java games rock!

« Reply #2 - Posted 2004-03-20 09:10:05 »

I was using the xith-3ds-1 version from the xith tools download page earlier, but switched to the xith-3ds-2 version from the newdawn homepage now.  However, it seems the same problem is still persisting.  

I'm sending the model that is causing the exception to you Kev.

-- zzorn
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

basil_ (42 views)
2015-09-30 17:04:40

shadowstryker (21 views)
2015-09-29 15:55:06

TheSpaceHedgehog (27 views)
2015-09-29 01:58:48

GamerC4 (50 views)
2015-09-24 21:10:38

GamerC4 (70 views)
2015-09-24 21:09:48

htuy (27 views)
2015-09-24 04:57:24

htuy (35 views)
2015-09-24 04:56:35

htuy (25 views)
2015-09-24 04:56:09

htuy (26 views)
2015-09-24 04:47:33

Roquen (63 views)
2015-09-21 12:54:28
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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‑
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!