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  
  Adding a foreground node causes a Bus Error  (Read 842 times)
0 Members and 1 Guest are viewing this topic.
Offline itistoday

Junior Member




There's too much blood in my caffeine system.


« Posted 2004-12-04 16:35:32 »

Hi, I have a scenegraph that has a Foreground node in it like this:
Root branchgroup > Foreground Node > BranchGroup > Shape3D with Geometry.

Adding it to the scenegraph causes a Bus error.  It doesn't matter if I'm using View.FIXED_POSITION or just VIEW.NORMAL.   When the app starts, everything loads fine, and I see the first frame just fine (actually, it says FPS 2, so probably the second or third frame), even the geometry in the forground node, but then instantly it crashes with an exception or anything, just a Bus error.

I even commented out the code that moves the view, it still crashes. Help? This is an essential piece to my game.   Cry

Offline itistoday

Junior Member




There's too much blood in my caffeine system.


« Reply #1 - Posted 2004-12-04 17:01:51 »

Found the problem, apparently it'll do this if there's no Appearance object in the Shape3D.  But a new problem has arisen, if I do anything besides a View.VIEW_NORMAL I won't be able to see the geometry at all.

I have, however, seemed to have found the problem... but this should probably be put in another thread.

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #2 - Posted 2004-12-04 19:34:18 »

Quote
Found the problem, apparently it'll do this if there's no Appearance object in the Shape3D.  But a new problem has arisen, if I do anything besides a View.VIEW_NORMAL I won't be able to see the geometry at all.

I have, however, seemed to have found the problem... but this should probably be put in another thread.


The VIEW_NORMAL/VIEW_FIXED_POSITION/VIEW_FIXED arn't there just for fun, the greatly alter the behaviour of the Foreground node.  You could almost have three seperate classes (I don't believe this is nessesary however).  If you switch the mode of the Foreground object, you have to reposition it, it is that simple.

Regarding the BUS error bug, can you please submit a small test case?

Will.

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

Junior Member




There's too much blood in my caffeine system.


« Reply #3 - Posted 2004-12-04 21:16:43 »

Quote


The VIEW_NORMAL/VIEW_FIXED_POSITION/VIEW_FIXED arn't there just for fun, the greatly alter the behaviour of the Foreground node.  You could almost have three seperate classes (I don't believe this is nessesary however).  If you switch the mode of the Foreground object, you have to reposition it, it is that simple.

Regarding the BUS error bug, can you please submit a small test case?

Will.

I'm not sure where/how I'd submit the test case, but it should happen if you try to add a Shape3D with any geometry, and not adding Appearance to the Shape3D (then adding the shape3d to a bg, which is added to the foreground node).

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 (36 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 (41 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 (35 views)
2014-09-21 00:26:15

UprightPath (48 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!