Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3024 Members - Latest Member: floutleMili

07. February 2012, 03:08:49 AM
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)(ugh) HUD bugs...
Pages: [1]
Print
Author Topic: (ugh) HUD bugs...  (Read 1228 times)
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« on: 06. May 2007, 08:09:35 PM »

Well, guys, I'm at it again.  I'm trying my hand at something new...this time it's the HUD.  My buttons are being obscured by the environment...have a look.  Here's my code:

Code:
hud = new HUD(canvas3d.getCanvas(), this.getOperationScheduler());
reset = new Button(72, 20, "Reset");
reset.setUserObject("reset");
reset.addButtonListener(this);
hud.addWidget(reset, 100, 100);
env.addHUD(hud, this.getInputManager());
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #1 on: 06. May 2007, 08:18:53 PM »

Hmm... Does this still happen when you disable the Fog?

Marvin
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #2 on: 06. May 2007, 10:00:35 PM »

As a matter of fact, yes.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #3 on: 06. May 2007, 10:15:18 PM »

How (and when) do you add the rest of the scene to the environment?
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #4 on: 06. May 2007, 10:23:07 PM »

Well, after adding the HUD, I do this:
Code:
probeTransform = new Transform3D(0f, 4f, 0f);
probe2TG = new TransformGroup( probeTransform );
objects1bg.addChild(probe2TG);
objects1bg.addChild(exodusModel.load("base", this.getAnimator()));
probe2TG.addChild(exodusModel.load(probe.getModelName(),
this.getAnimator()));

then I add the fogs and lights, and finally i add the BranchGroups to the environment.  Actually, that brings me to something else.  I just updated, and I found that the addBranchGraph() method how requires a RenderPassConfig argument.  What should I pass to it?
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #5 on: 06. May 2007, 10:28:05 PM »

Wait a minute...I'm using addPerspectiveBranch() now, and now the problem has fixed itself.  So has the HUD button.  Strange...oh well.  Cheesy
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #6 on: 06. May 2007, 11:13:16 PM »

Wait a minute...I'm using addPerspectiveBranch() now, and now the problem has fixed itself.  So has the HUD button.  Strange...oh well.  Cheesy

Well, I removed those methods from SceneGraph/Xith3DEnvironment for a reason Smiley. There might have been other strange things with them. But now it's fixed and that's great.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic