Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Google Android

transparent background (setBackgroundOpacity)  [SOLVED]

Google Play Store, Amazon Kindle, Nook, and so many more

Re: transparent background (setBackgroundOpacity)

Postby NiCoX » 14 Mar 2012, 16:23

Does not work for me unfortunately: that produces the blending problem I did mention (both views are not blended with the classical SRC_ALPHA/ONE_MINUS_SRC_ALPHA, looks like additive blending or something like that). Using OpenGL ES 2.0 back-end I have the same result with 3D rendering (don't know why not when using ES 1.X).
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5647
Location: France

Re: transparent background (setBackgroundOpacity)

Postby MoBill » 14 Mar 2012, 17:24

Hmm, that's strange. Unfortunately with android you never know if it is a device specific thing.

But the "good" news is that i am finally able to get things to work on my side. With all the different things that i have been trying, i had the original call to:

Code: Select all
scene.setBackgroundOpacity(0)


commented out. So i think that at least on the droidX 2, when all is said and done, all that i required was

Code: Select all
o3DView.setZOrderOnTop(true);


and to insure that the following was getting called:

Code: Select all
this.getHolder ( ).setFormat ( PixelFormat.TRANSLUCENT ) ;


Sorry that i made this more difficult than it had to be. I just didn't know where to start.

Thanks for your help.
MoBill
Fresh Boarder
Fresh Boarder
 
Posts: 15

Re: transparent background (setBackgroundOpacity)

Postby NiCoX » 14 Mar 2012, 17:27

Oh ok, that's a great news! :D

Would it be possible to PM me a sample project, so I can test on other devices and add the feature in the UAT?

Thanks in advance.
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5647
Location: France

Re: transparent background (setBackgroundOpacity)

Postby MoBill » 14 Mar 2012, 17:36

Yes, i will put together a simple project for sometime tomorrow.
MoBill
Fresh Boarder
Fresh Boarder
 
Posts: 15

Previous

Return to Google Android