ShiVa3D
transparent background (setBackgroundOpacity) [SOLVED]
Google Play Store, Amazon Kindle, Nook, and so many moreRe: transparent background (setBackgroundOpacity)
by 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).
-

NiCoX - Platinum Boarder

- Posts: 5626
- Location: France
Re: transparent background (setBackgroundOpacity)
by 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:
commented out. So i think that at least on the droidX 2, when all is said and done, all that i required was
and to insure that the following was getting called:
Sorry that i made this more difficult than it had to be. I just didn't know where to start.
Thanks for your help.
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

- Posts: 15
Re: transparent background (setBackgroundOpacity)
by NiCoX » 14 Mar 2012, 17:27
Oh ok, that's a great news!
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.
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.
-

NiCoX - Platinum Boarder

- Posts: 5626
- Location: France
Re: transparent background (setBackgroundOpacity)
by MoBill » 14 Mar 2012, 17:36
Yes, i will put together a simple project for sometime tomorrow.
- MoBill
- Fresh Boarder

- Posts: 15
19 posts
• Page 2 of 2 • 1, 2