Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Are Xith bounds neccessary?  (Read 1211 times)
0 Members and 1 Guest are viewing this topic.
Offline itistoday

Junior Duke




There's too much blood in my caffeine system.


« Posted 2004-12-04 14:50:25 »

Ok, bounds are completely broken for me as seen in this thread.  In my game I'm going to need to have some sort of 3D sound system that'll let the user know where fights are going on, and be able to increase the volume of the fights as the user gets closer.  I'm also going to need to use some collision system (either odejava or Alonzo's). I'm also going to use a HUD via the Foreground node.  This is really about it.  Do I need to be able to use Xith's bounds for any of these things (or possibly other things I haven't thought of)?

Offline ewills

Junior Duke




Java skeletal animation systems rock!


« Reply #1 - Posted 2004-12-04 16:17:26 »

getVworldBounds() in Node works fine for me.  This method will return you a world-space BoundingSphere enveloping everything below the node in the scene graph.  The call is cheap because the world-space bounds are updated and maintained when any TransformGroup above the node is modified.
Offline itistoday

Junior Duke




There's too much blood in my caffeine system.


« Reply #2 - Posted 2004-12-04 17:06:29 »

Quote
getVworldBounds() in Node works fine for me.  This method will return you a world-space BoundingSphere enveloping everything below the node in the scene graph.  The call is cheap because the world-space bounds are updated and maintained when any TransformGroup above the node is modified.

I'm not sure I understand you, how am I supposed to use this method?

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

Junior Duke




Java skeletal animation systems rock!


« Reply #3 - Posted 2004-12-04 20:45:53 »

It doesn't sound like you NEED bounds for any of the described operations, but they could be useful for culling out sounds from far away sources etc...  I was just pointing out that if you do decide to use bounds, the getVworldBounds() method works well.
Offline itistoday

Junior Duke




There's too much blood in my caffeine system.


« Reply #4 - Posted 2004-12-04 21:14:41 »

Quote
It doesn't sound like you NEED bounds for any of the described operations, but they could be useful for culling out sounds from far away sources etc...  I was just pointing out that if you do decide to use bounds, the getVworldBounds() method works well.

Ok, but how do I use it?

Offline ewills

Junior Duke




Java skeletal animation systems rock!


« Reply #5 - Posted 2004-12-04 21:29:16 »

That depends on the application  Smiley  What specifically are you trying to do?
Offline itistoday

Junior Duke




There's too much blood in my caffeine system.


« Reply #6 - Posted 2004-12-04 21:34:00 »

I'm trying to add bounds to anything.  Look at the thread I linked to in the first post.  Ships, planets, etc.

Offline ewills

Junior Duke




Java skeletal animation systems rock!


« Reply #7 - Posted 2004-12-04 22:23:26 »

The bounds are automatically generated.  For example, if you create a Shape3D s that represents a ship, calling s.getVworldBounds() will give you an instance of a BoundingSphere which encompasses the ship.  The BoundingSphere will be in world-space coordinates, so it can be compared with any other BoundingSpheres obtained similarly.  Hope this helps  Smiley
Offline itistoday

Junior Duke




There's too much blood in my caffeine system.


« Reply #8 - Posted 2004-12-04 22:28:04 »

Quote
The bounds are automatically generated.  For example, if you create a Shape3D s that represents a ship, calling s.getVworldBounds() will give you an instance of a BoundingSphere which encompasses the ship.  The BoundingSphere will be in world-space coordinates, so it can be compared with any other BoundingSpheres obtained similarly.  Hope this helps  Smiley

Ok but is its position accurate?  As shown in the other thread, when you show the bounds they are completely off target.

Offline ewills

Junior Duke




Java skeletal animation systems rock!


« Reply #9 - Posted 2004-12-05 00:18:58 »

Yes, the positions are accurate.  You could verify this by placing a sphere at each location with the specified radius.  The bounds objects displayed by setShowBounds() do seem to be wrong.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline itistoday

Junior Duke




There's too much blood in my caffeine system.


« Reply #10 - Posted 2004-12-05 00:26:36 »

Quote
Yes, the positions are accurate.  You could verify this by placing a sphere at each location with the specified radius.  The bounds objects displayed by setShowBounds() do seem to be wrong.

Wow, thank you, you are the first person to acknowledge that this problem exists, it's not just me going crazy after all Smiley

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #11 - Posted 2004-12-05 08:00:18 »

We talked about this on IM just the other day and I'm sure we agreed it sound like a problem with Xith?

Anyway, you do actually NEED bounds, not least for view frustrum culling.

Kev

Offline itistoday

Junior Duke




There's too much blood in my caffeine system.


« Reply #12 - Posted 2004-12-05 11:56:15 »

Quote
We talked about this on IM just the other day and I'm sure we agreed it sound like a problem with Xith?

Anyway, you do actually NEED bounds, not least for view frustrum culling.

Kev

Oh, I guess I wasn't sure if you had actually tried to do this on your end and reproduced the same results. Thanks for the reply though, I didn't really realize bounds were used like this, but now that you mention it, it makes perfect sense Smiley  So I guess they are safe to use after all.

Offline Yuri Vl. Gushchin

Senior Duke




Speak Java!


« Reply #13 - Posted 2004-12-05 11:58:52 »

Hi,

Quote
I'm sure we agreed it sound like a problem with Xith?


Test case?

Yuri

Yuri Vl. Gushchin
JProof Group
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.

Longarmx (46 views)
2014-10-17 03:59:02

Norakomi (37 views)
2014-10-16 15:22:06

Norakomi (29 views)
2014-10-16 15:20:20

lcass (32 views)
2014-10-15 16:18:58

TehJavaDev (62 views)
2014-10-14 00:39:48

TehJavaDev (62 views)
2014-10-14 00:35:47

TehJavaDev (52 views)
2014-10-14 00:32:37

BurntPizza (70 views)
2014-10-11 23:24:42

BurntPizza (40 views)
2014-10-11 23:10:45

BurntPizza (82 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!