Skip to main content

Problem with HContainer and superimposition

3 replies [Last post]
gent2k7
Offline
Joined: 2007-06-25

Hello everyone,

I'm quite stuck under PS3 (I don't have the problem under WinDVD/PowerDVD). Here is my situation :

*****************************************************************************************
HGraphicButton hgb = new HGraphicButton( img1, img2, img3, xb, yb, wb, hb);
hgb.setBordersEnabled(false);
hgb.setBackgroundMode(HGraphicButton.NO_BACKGROUND_FILL);

HStaticIcon hsi = new HStaticIcon(big_image, xi, yi, wi, hi);
hsi.setBackgroundMode(HStaticIcon.NO_BACKGROUND_FILL);
hsi.setBordersEnabled(false);

myHcontainer.add(hgb);
myHcontainer.add(hsi);

getHScene().add(myHcontainer);
*****************************************************************************************

Here HGraphicButton overlaps HStaticIcon. HStaticIcon (its a filled circle) contains pixels with small alpha (at corners, alpha=0) so I should see the HGraphicButton, but instead, the HGraphicButton is superimposed to the background Video.
In the end, the transparent zones of my HGraphicButton show the background movie, and not the HstaticIcon.
I forced setBackgroundMode(HStaticIcon.NO_BACKGROUND_FILL), but this doesn't change the situation.

I guess it has something to do with the HMatte or HLook, but I don't see what.

Thanks,

Guillaume

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terymas
Offline
Joined: 2007-09-03

Hello Guillaume, it's not a good to use HGraphicButton and HStaticIcon to diplay something...

HAVi components can appear and behave differently on each player.

Terry

gent2k7
Offline
Joined: 2007-06-25

Hello Terry,

Does this mean that I have to code a simple button by myself and that I can't trust HAVI with it ?

I have to make a BD with Java integration for a movie, HAVI was very convinient for that (HNavigable etc.). I'm now recoding some of their classes to be able to do it "my way" (as in "I can control the alpha"..) with a scenegraph, but it's a shame because HAVI is supposed to do it by itself.

Thanks !

Guillaume

dbreitenfeld
Offline
Joined: 2007-03-18

Hi Guillaume,

I can say that we haven't had any luck with HAVI on older machines, so about a year ago we stopped using it and and only use the method Direct Draw for everything.

Good Luck,

Denny B.
-------------------------------------------------------------------------------------------------------------
[i]NetBlender DoStudio Blu-ray Team - DSA - http://dostudio.netblender.com [/i]