Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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  
  ObjLoader can't support sharedCopy() function.  (Read 1059 times)
0 Members and 1 Guest are viewing this topic.
Offline Amos Wenger

Senior Member




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


« Posted 2004-10-08 16:12:40 »

The OBJ loader of the Xith Toolkit define his own Group class wich is not the same that the "official" Xith3D scenegraph Group class.
Then, when I try do make a copy ( using the sharedCopy() function ), of a BranchGroup given to me by the load() function of the OBJLoader class, I get an UnsupportedFunctionException.
Is it possible to correct the Source Code of the Xith toolkit to make it all right ?.

"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 William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2004-10-09 05:09:10 »

The subject line of this thread is not very specific, I suggest adding the words "OBJ Loader" so it is obvious what you are referring too, and so that the chance of the loader's author seeing it is higher.

Do you get a stack trace with your exception?  If so, post it here too so we can get a better idea of what is happening.

Will.

Offline Amos Wenger

Senior Member




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


« Reply #2 - Posted 2004-10-09 13:30:30 »

I don't now how to edit the subject name...
I will see for the exception error message.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #3 - Posted 2004-10-10 01:29:45 »

Quote
I don't now how to edit the subject name...

just click "modify" and change the Subject.

Will.

Offline Amos Wenger

Senior Member




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


« Reply #4 - Posted 2004-10-20 15:49:01 »

And also I've got another problem to pick shapes loaded by the OBJ loader because the topGroup is not declared as "Pickable" ( setPickable() function ).
And the function setPickableRecursive() in the Xith3D Guide is not applicable, because the Group type of the OBJLoader is'nt standard.

"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 Amos Wenger

Senior Member




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


« Reply #5 - Posted 2004-10-20 15:50:11 »

It's very annoying, because a Level editor without object selection by the mouse isn't a Level editor !

"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 kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #6 - Posted 2004-10-20 16:21:21 »

Whats really annoying is this!

Quote

The OBJ loader of the Xith Toolkit define his own Group class wich is not the same that the "official" Xith3D scenegraph Group class.
Then, when I try do make a copy ( using the sharedCopy() function ), of a BranchGroup given to me by the load() function of the OBJLoader class, I get an UnsupportedFunctionException.


If sharedCopy() on BranchGroup then we have bigger problems than just the ObjLoader. Since the loader simply puts branch groups and shapes together sharedCopy() would either

a) Be failing for everything and hence not be used
b) Out of date locally to you.

Quote

Is it possible to correct the Source Code of the Xith toolkit to make it all right ?.


No, since the problem more likely lies in the core.

Quote

And also I've got another problem to pick shapes loaded by the OBJ loader because the topGroup is not declared as "Pickable" ( setPickable() function ).
And the function setPickableRecursive() in the Xith3D Guide is not applicable, because the Group type of the OBJLoader is'nt standard.


setPickableRecusive() will work quite happily on the branch group returned to you by load(). At worst the choice of name "Group" for a group within an OBJ file was poor since it clashes with the Xith object "Group". This dear reader of course doesn't stop you using both you'd just need to be explicit.

Just to ensure clarity, the group refered to in the Xith guide is com.xith3d.scenegraph.Group not org.newdawn.xith3d.obj.Group. The fact that the object loaders Group isn't even part of the scenegraph returned in the branch seems to have slipped past notice.

Quote

It's very annoying, because a Level editor without object selection by the mouse isn't a Level editor !


No, you're right, that'd be crap.

Kev

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #7 - Posted 2004-10-21 05:40:23 »

And in case you are woundering, I am almost 100% certain sharedCopy()
is working perfectly.  I use it everywhere in my code on Xith3D objects so I would be surprised to learn it wasn't working.

Will.

Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #8 - Posted 2004-10-21 07:23:31 »

In that case I'd expect an entirely seperate issue. Is there any level of the scenegraph in which UnsupportException is still throw for the scenegraph?

Kev

Offline Amos Wenger

Senior Member




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


« Reply #9 - Posted 2004-10-21 16:49:47 »

In fact, the OBJ Loader use org.newdawn.xith.obj.Group only to load the Object. After that, we have a NodeFactory that produce something like that :
o BranchGroup
|--o BranchGroup
   |--o BranchGroup
                                                                  |--o Shape3D

So there is no problem with the setPickableRecursive() function.

But I can't pick any Shape3D at all, anyway.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
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.

pw (12 views)
2014-07-24 01:59:36

Riven (10 views)
2014-07-23 21:16:32

Riven (11 views)
2014-07-23 21:07:15

Riven (12 views)
2014-07-23 20:56:16

ctomni231 (42 views)
2014-07-18 06:55:21

Zero Volt (38 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (34 views)
2014-07-16 23:30:00

Cero (50 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!