Hello,

김상원 wrote:
> Hello
> 
>  
> 
> I have the problem that transparent models are not properly rendered.
> 
>  
> 
> The scene file includes models is here: 
> http://blog.naver.com/PostView.nhn?blogId=ghyme&logNo=150033647564# 
> <http://blog.naver.com/PostView.nhn?blogId=ghyme&logNo=150033647564#>
> 
> The image is here: 
> http://blogfiles11.naver.net/data35/2008/7/25/106/a01_ghyme.jpg

for correct rendering of transparent objects they have to be rendered in
a fixed order (either back to front or front to back). OpenSG takes care
of that and uses the center of an objects bounding box to determine its
distance from the camera. In your case tilting the menu makes some of
the buttons be farther away from the camera than the center of the menu,
therefore the buttons are rendered as if they were behind the menu
background.
There are some possible options to make the images look correct:
- by assigning different sort keys to the materials of the menu
background and the buttons you can make sure the background is always
rendered first (set the sort key of the background to a smaller value
than the buttons)

- instead of having all buttons on a single background, place a
background rectangle behind each individual button. The depth sorting
will get things right then.

- use blend settings that do not depend on the order of rendering (of
course this may not look as nice)

        Hope it helps,
                Carsten


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to