Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
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 2901 times)
0 Members and 1 Guest are viewing this topic.
Offline hawkwind

Junior Devvie




Java games rock!


« Posted 2006-11-25 01: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 Devvie




May the 4th, be with you...


« Reply #1 - Posted 2006-11-25 01: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 Devvie




Java games rock!


« Reply #2 - Posted 2006-11-25 04: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!
Legends of Yore - The Casual Retro Roguelike
Offline Marvin Fröhlich

Senior Devvie




May the 4th, be with you...


« Reply #3 - Posted 2006-11-25 14: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 Devvie




Java games rock!


« Reply #4 - Posted 2006-11-25 15: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 Devvie




May the 4th, be with you...


« Reply #5 - Posted 2006-11-25 15: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 Devvie




May the 4th, be with you...


« Reply #6 - Posted 2006-11-27 14: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 Devvie




Java games rock!


« Reply #7 - Posted 2006-11-27 21: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 Devvie




May the 4th, be with you...


« Reply #8 - Posted 2006-11-28 00: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 Devvie




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


« Reply #9 - Posted 2006-11-28 17: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 Devvie




May the 4th, be with you...


« Reply #10 - Posted 2006-11-28 18: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 Devvie




Java games rock!


« Reply #11 - Posted 2006-11-29 01: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 Devvie




May the 4th, be with you...


« Reply #12 - Posted 2006-11-29 19: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.

 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (40 views)
2014-12-09 22:41:13

BurntPizza (75 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (113 views)
2014-11-26 15:22:04

toopeicgaming1999 (100 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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