Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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  
  hud problem  (Read 2206 times)
0 Members and 1 Guest are viewing this topic.
Offline hawkwind

Junior Member




Java games rock!


« Posted 2006-11-25 02:26:27 »

In my HUD i have a frame with buttons., as I move around my world  these buttons slowly melt into the frame background and go away. ...frame at level 1 buttons at level 2....
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #1 - Posted 2006-11-25 02:35:00 »

In my HUD i have a frame with buttons., as I move around my world  these buttons slowly melt into the frame background and go away. ...frame at level 1 buttons at level 2....

What do you mean by "level 1" and "level 2"?

Please try to increase the Button's z-index. Maybe the engine has a small accuracy problem here. Increasing the z-index by e.g. 10 could maybe help you out.

Marvin
Offline hawkwind

Junior Member




Java games rock!


« Reply #2 - Posted 2006-11-25 05:38:36 »

only helped a little.  Odd all in all, the underlying frame never disappears only the buttons added to the frame.   Where is the z index handled within the HUD code.

To anyone concerned....I have'nt beeen able to register in xith forum so I use this heee hee!!
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #3 - Posted 2006-11-25 15:39:24 »

only helped a little.  Odd all in all, the underlying frame never disappears only the buttons added to the frame.   Where is the z index handled within the HUD code.

In org.xith3d.ui.hud.base.WidgetBase.updateTranslation()

BTW: Is it possible to post an example of this behaviour?
Offline hawkwind

Junior Member




Java games rock!


« Reply #4 - Posted 2006-11-25 16:05:11 »

I can try...not today...all that is needed is to move the scene around as in a first person shooter.  At some point as you move the buttons go away.   Not all buttons disappear at the same time.  I lose some going one way and other going the opposite way...YOICKS!!! Shocked
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #5 - Posted 2006-11-25 16:11:05 »

I can try...not today...all that is needed is to move the scene around as in a first person shooter.  At some point as you move the buttons go away.   Not all buttons disappear at the same time.  I lose some going one way and other going the opposite way...YOICKS!!! Shocked

OK, I'll try to place some Buttons on a Frame on the BSPLoaderTest scene.
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #6 - Posted 2006-11-27 15:15:44 »

Please checkout the BSPLoaderTest. I've added a Frame with two Buttons. But they're perfectly rendered, no matter how I move through the scene. Please tell me, what I should setup differently to get the described errors.

Marvin
Offline hawkwind

Junior Member




Java games rock!


« Reply #7 - Posted 2006-11-27 22:23:48 »

Rats works for me.....I think that using at least one button without alpha is keepong mine from disappearing....don't pursue this until I can send you a repeatable case.
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #8 - Posted 2006-11-28 01:02:51 »

Rats works for me.....I think that using at least one button without alpha is keepong mine from disappearing....don't pursue this until I can send you a repeatable case.

OK, thanks.
Offline Amos Wenger

Senior Member




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


« Reply #9 - Posted 2006-11-28 18:23:37 »

I'm inclined to think there's something very wrong in the rendering code.. aren't there errors with machine state changes or missing start/end calls ? (I don't know the low-level rendering stuff, just guessing, probably wrong)..

"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 Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #10 - Posted 2006-11-28 19:27:34 »

I'm inclined to think there's something very wrong in the rendering code.. aren't there errors with machine state changes or missing start/end calls ? (I don't know the low-level rendering stuff, just guessing, probably wrong)..

It's always possible, that the rendering code is doing something wrong. And espeacially for the HUD the back-front-sorting problem is extremely important. Bohdan promised some time ago, that he would write a new bounds sorting system to fix this, but unfortunately he never did. The above problem could maybe be due to the same problem. When I am through with the loaders, I'll have a deeper look again.

Marvin
Offline hawkwind

Junior Member




Java games rock!


« Reply #11 - Posted 2006-11-29 02:55:16 »

I still don't have a repeatable example.  Some side notes though, my original problem used button created with 3 textures in the constructor.  Odlly enough adding an additional, non-alpha button seems to have changed the melting problem...at least in one example.

When watching the problem, button on top of a textured background for the frame, I see the button texture go away, then the button text, the textured background never goes away.  Just some info...
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #12 - Posted 2006-11-29 20:02:37 »

I still don't have a repeatable example.  Some side notes though, my original problem used button created with 3 textures in the constructor.  Odlly enough adding an additional, non-alpha button seems to have changed the melting problem...at least in one example.

When watching the problem, button on top of a textured background for the frame, I see the button texture go away, then the button text, the textured background never goes away.  Just some info...

What kind of texture do you use for the frame? Is it the default texture or a user defined one? If it is a user defined one, then try to use it without alpha channel. As I mentioned above sometimes transparency is still a problem in xith.

Marvin
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (147 views)
2013-05-17 21:29:12

alaslipknot (154 views)
2013-05-16 21:24:48

gouessej (185 views)
2013-05-16 00:53:38

gouessej (179 views)
2013-05-16 00:17:58

theagentd (189 views)
2013-05-15 15:01:13

theagentd (174 views)
2013-05-15 15:00:54

StreetDoggy (217 views)
2013-05-14 15:56:26

kutucuk (242 views)
2013-05-12 17:10:36

kutucuk (240 views)
2013-05-12 15:36:09

UnluckyDevil (246 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.097 seconds with 22 queries.