Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 model loader test "TDSTest" not working  (Read 5118 times)
0 Members and 1 Guest are viewing this topic.
Offline cylab

JGO Ninja


Medals: 50



« Posted 2006-09-17 12:45:50 »

I only see a black screen. Does anybody has a clue whats going on? Should this work? when did it last work?

Debug-Output:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
******************************************************
 TDSLoader Debug Output
   file: C:\development\projects\xith-tk\demo\models\jeep1.3ds
******************************************************
Processing chunk: 4d4d
Skipping Chunk: 2
Processing chunk: 3d3d
Skipping Chunk: 3d3e
Processing chunk: afff
Processing chunk: a000
Processing chunk: a010
Skipping Chunk: 12
Processing chunk: a020
Skipping Chunk: 12
Processing chunk: a030
Skipping Chunk: 12
Processing chunk: a040
Processing chunk: a041
Processing chunk: a050
Skipping Chunk: a052
Skipping Chunk: a053
Skipping Chunk: a100
Skipping Chunk: a084
Skipping Chunk: a087
Skipping Chunk: a08c
Processing chunk: a200
Couldn't find image in classpath
Skipping Chunk: a351
Skipping Chunk: 100
Skipping Chunk: 1400
Skipping Chunk: 1420
Skipping Chunk: 1450
Skipping Chunk: 1460
Skipping Chunk: 1500
Skipping Chunk: 2100
Processing chunk: 4000
Processing chunk: 4100
Processing chunk: 4110
Processing chunk: 4140
Processing chunk: 4160
Skipping Chunk: 4165
Processing chunk: 4120
Skipping Chunk: 72
No key frames found!


BTW. how do you guys handle bug/task tracking? The xith-tk issue tracker seems unused.

Mathias - I Know What [you] Did Last Summer!
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #1 - Posted 2006-09-17 13:19:30 »

I'll have a look at it in the next 30 minutes. OK?

BTW. how do you guys handle bug/task tracking? The xith-tk issue tracker seems unused.

The tasks weren't tracked at all. Recently started a dev-plan for version 1.0 to do this. And Amos made one for version 2.0. The bugs are only tracked on this forum. I guess a bug tracker system sould be useful.

Marvin
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #2 - Posted 2006-09-17 14:07:27 »

I'm very sorry. I had a look into the test, but I cannot find the failure. The test is quite simple so I guess, the failure is related to the loader itself (maybe due to the BranchGroup changes). We'll have to wait for Amos and ask him to fix it. He has a deeper knowledge of the TDS loader.

Marvin
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline bohdan

Junior Member




Java-positive...


« Reply #3 - Posted 2006-09-17 16:41:50 »

I'll have a look today (a bit later), I'm sucessfully using that loader, well with little modification though, but I should be able to spot the problem.

Bohdan.
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #4 - Posted 2006-09-17 17:08:19 »

I'll have a look today (a bit later), I'm sucessfully using that loader, well with little modification though, but I should be able to spot the problem.

What modifications did you make? Does it make sense to commit them?
Offline bohdan

Junior Member




Java-positive...


« Reply #5 - Posted 2006-09-17 17:17:24 »

This was a while ago when I make them and it was regarding for examle situations like that. I often will get a model exported like 3ds says, and it would have a fake references to not needed textures, or textures with "blank" path, like path="", and loader would normaly crash on these kind of things, so it was sort of "safety" modification, very litle. Maybe something else I did also, I could check. If this is something of interest - I can point on this modifications, no problem. I just was taking that as something specific to my case, you may never get to such a problems....

Edit: so this is when the exported 3ds model is not actually 100% properly exported... Don't know why it is happening like that, but it often does, for me at least Smiley
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #6 - Posted 2006-09-17 17:22:09 »

This was a while ago when I make them and it was regarding for examle situations like that. I often will get a model exported like 3ds says, and it would have a fake references to not needed textures, or textures with "blank" path, like path="", and loader would normaly crash on these kind of things, so it was sort of "safety" modification, very litle. Maybe something else I did also, I could check. If this is something of interest - I can point on this modifications, no problem. I just was taking that as something specific to my case, you may never get to such a problems....

Edit: so this is when the exported 3ds model is not actually 100% properly exported... Don't know why it is happening like that, but it often does, for me at least Smiley

Safety is always good Wink. So if your modifications don't do a harm, please look, if you can commit them.
Offline bohdan

Junior Member




Java-positive...


« Reply #7 - Posted 2006-09-17 17:47:17 »

Safety is always good Wink. So if your modifications don't do a harm, please look, if you can commit them.

Yes, these changes are just kind of neutral, so no harm  Smiley, ok, I'll post it sometime later today, and I should fix that TDS test too, I believe.

Edit: Ok, I can confirm I have TDS test working already, but with my "loader modified" thought, don't have time right now to dig what actualy was wrong, but will do today later, so you can leave it for me, will be definitely done.
Offline bohdan

Junior Member




Java-positive...


« Reply #8 - Posted 2006-09-17 19:42:44 »

To fix TDSLoader (newdawn's):

in "org.xith3d.loaders.tds.newdawn.FaceArrayProcessor" uncoment line:
1  
 int flags = file.readUnsignedShort();

or make it like that:
1  
 file.readUnsignedShort();

otherwise proper stream reading will stop on chunck "0x4120", as pointer will not shift properly, and on next chunk wrong tag will be read and its length etc...

Bohdan.

P.S. Having done that see also if the model can be scaled in TDSTest or translated further from the camera, as it is loaded to much to close.... I have tried actually to change "scale" in RotatingModel, but it doesn't seem to have any effect, is it working?

P.S.2 BTW, "galleon.obj" resource is missing, so OBJTest doesn't work too, for me...
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #9 - Posted 2006-09-17 19:55:16 »

To fix TDSLoader (newdawn's):

in "org.xith3d.loaders.tds.newdawn.FaceArrayProcessor" uncoment line:
1  
 int flags = file.readUnsignedShort();

or make it like that:
1  
 file.readUnsignedShort();

otherwise proper stream reading will stop on chunck "0x4120", as pointer will not shift properly, and on next chunk wrong tag will be read and its length etc...

Do you have CVS write access? If not I can make the changes this night and commit them. Otherwise please commit them yourself.

P.S. Having done that see also if the model can be scaled in TDSTest or translated further from the camera, as it is loaded to much to close.... I have tried actually to change "scale" in RotatingModel, but it doesn't seem to have any effect, is it working?

Should be.

P.S.2 BTW, "galleon.obj" resource is missing, so OBJTest doesn't work too, for me...

It's not missing. The path is wrong. Prefix "demo/" to the path and it should work.

Unfortunately I cannot do all this now, since I have an uncompilable state at the moment.

Marvin
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline bohdan

Junior Member




Java-positive...


« Reply #10 - Posted 2006-09-17 20:19:35 »

Do you have CVS write access? If not I can make the changes this night and commit them. Otherwise please commit them yourself.
Yes, please commit changes, I don't have developer access.

P.S.2 BTW, "galleon.obj" resource is missing, so OBJTest doesn't work too, for me...

It's not missing. The path is wrong. Prefix "demo/" to the path and it should work.
hmmm... I can't find that file in xith-tk tree at all... though I have very recent cvs update currently...

Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #11 - Posted 2006-09-17 20:29:24 »

Yes, please commit changes, I don't have developer access.

done.

It's not missing. The path is wrong. Prefix "demo/" to the path and it should work.

That was wrong. The path was correct! But the View as set to close to the model.

hmmm... I can't find that file in xith-tk tree at all... though I have very recent cvs update currently...

The file is there. And the test is working. Please recheckout. Maybe you have set your filters wrong Huh. check your filesystem, if the file is there. If it is not, please load it manually from web-CVS or something like that.

If that also doesn't work, please post again.

Marvin
Offline bohdan

Junior Member




Java-positive...


« Reply #12 - Posted 2006-09-17 21:54:13 »

The file is there. And the test is working. Please recheckout. Maybe you have set your filters wrong Huh. check your filesystem, if the file is there. If it is not, please load it manually from web-CVS or something like that.

It seems that file ("galleon.obj") was deleted (it is in the attic, anyhow), that's why it is not possible to check it out...
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #13 - Posted 2006-09-17 22:49:40 »

It seems that file ("galleon.obj") was deleted (it is in the attic, anyhow), that's why it is not possible to check it out...

Strange Huh It was on some kind of CVS ignore list. I've now readded it to CVS.

Marvin
Offline bohdan

Junior Member




Java-positive...


« Reply #14 - Posted 2006-09-17 23:24:20 »

@Marvin: Thanks! BTW, check your PMs
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #15 - Posted 2006-09-18 16:30:07 »

@Marvin: Thanks! BTW, check your PMs
Would you like to have CVS access ? Are you registered on java.net ?

It would be more convenient for you when you make changes to Xith3D. And the whole community would benefit of your fixes.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline cylab

JGO Ninja


Medals: 50



« Reply #16 - Posted 2006-09-18 19:11:06 »

The TDSTest is working now, thanks!

Mathias - I Know What [you] Did Last Summer!
Offline bohdan

Junior Member




Java-positive...


« Reply #17 - Posted 2006-09-19 00:02:24 »

Would you like to have CVS access ? Are you registered on java.net ?

It would be more convenient for you when you make changes to Xith3D. And the whole community would benefit of your fixes.

Yes, thanks, it would be great  Grin, if you could.
Yes, I'm registered.

Bohdan.
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #18 - Posted 2006-09-19 00:06:30 »

Yes, I'm registered.

Have you already requested a dev-role on the project? This would help Amos to find you on dev.java.net.
Offline bohdan

Junior Member




Java-positive...


« Reply #19 - Posted 2006-09-19 01:17:03 »

Yes, I'm registered.

Have you already requested a dev-role on the project? This would help Amos to find you on dev.java.net.

Alright, I see... So I go there and see how to do that Smiley Thanks for information!

Edit: Done  Grin
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #20 - Posted 2006-09-19 16:49:46 »

Yes, I'm registered.

Have you already requested a dev-role on the project? This would help Amos to find you on dev.java.net.

Alright, I see... So I go there and see how to do that Smiley Thanks for information!

Edit: Done  Grin
Access granted.

Welcome  Grin

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline bohdan

Junior Member




Java-positive...


« Reply #21 - Posted 2006-09-19 21:23:25 »

Access granted.

Welcome  Grin

Thank you very much!  Grin.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Pippogeek (37 views)
2014-09-24 16:13:29

Pippogeek (29 views)
2014-09-24 16:12:22

Pippogeek (18 views)
2014-09-24 16:12:06

Grunnt (42 views)
2014-09-23 14:38:19

radar3301 (24 views)
2014-09-21 23:33:17

BurntPizza (60 views)
2014-09-21 02:42:18

BurntPizza (30 views)
2014-09-21 01:30:30

moogie (36 views)
2014-09-21 00:26:15

UprightPath (49 views)
2014-09-20 20:14:06

BurntPizza (52 views)
2014-09-19 03:14:18
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!