Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Model3DGroup behavior

 
 
Old 03-30-2006   #1 (permalink)
PT


 
 

Model3DGroup behavior

I have 2 identical surfaces, one at -z and other at +z location. They both
have a transparent Material on the front side and a non-transparent
BackMaterial on the other side.

<Model3DGroup>
<AmbientLight ... />
<DirectionalLight .../>
<DirectionalLight .../>
<GeometryModel3D x:Name="Side1">...</GeometryModel3D>
<GeometryModel3D x:Name="Side2">...</GeometryModel3D>
</Model3DGroup>

When I rotate this model group around the y-axis, the behavior appears to be
different depending on the order the GeometryModel3D shows up on the list.
The first one seems to be non-transparent. I can reverse the order and the
other surface become non-transparent. Is this the expected behavior or am I
doing something wrong?


My System SpecsSystem Spec
Old 03-30-2006   #2 (permalink)
TheRHogue


 
 

RE: Model3DGroup behavior

Expected behavior for Version 1 of WPF. You will need to sort the geometries
per render cycle.

I have a simple example of this at http://www.therhogue.com/WinFX -
collageview sample.

"PT" wrote:

> I have 2 identical surfaces, one at -z and other at +z location. They both
> have a transparent Material on the front side and a non-transparent
> BackMaterial on the other side.
>
> <Model3DGroup>
> <AmbientLight ... />
> <DirectionalLight .../>
> <DirectionalLight .../>
> <GeometryModel3D x:Name="Side1">...</GeometryModel3D>
> <GeometryModel3D x:Name="Side2">...</GeometryModel3D>
> </Model3DGroup>
>
> When I rotate this model group around the y-axis, the behavior appears to be
> different depending on the order the GeometryModel3D shows up on the list.
> The first one seems to be non-transparent. I can reverse the order and the
> other surface become non-transparent. Is this the expected behavior or am I
> doing something wrong?
>

My System SpecsSystem Spec
Old 03-31-2006   #3 (permalink)
PT


 
 

RE: Model3DGroup behavior

Thanks for the help. This is some heavy lifting. Especially since I'm
making a spinning cube.

"TheRHogue" wrote:

> Expected behavior for Version 1 of WPF. You will need to sort the geometries
> per render cycle.
>
> I have a simple example of this at http://www.therhogue.com/WinFX -
> collageview sample.
>
> "PT" wrote:
>
> > I have 2 identical surfaces, one at -z and other at +z location. They both
> > have a transparent Material on the front side and a non-transparent
> > BackMaterial on the other side.
> >
> > <Model3DGroup>
> > <AmbientLight ... />
> > <DirectionalLight .../>
> > <DirectionalLight .../>
> > <GeometryModel3D x:Name="Side1">...</GeometryModel3D>
> > <GeometryModel3D x:Name="Side2">...</GeometryModel3D>
> > </Model3DGroup>
> >
> > When I rotate this model group around the y-axis, the behavior appears to be
> > different depending on the order the GeometryModel3D shows up on the list.
> > The first one seems to be non-transparent. I can reverse the order and the
> > other surface become non-transparent. Is this the expected behavior or am I
> > doing something wrong?
> >

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
IE7 behavior Vista performance & maintenance
Odd behavior of WMP GUI Vista music pictures video
rdp behavior Vista General
Smart-quote behavior: Is current behavior ideal? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46