Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF 3D transparent textures - clipping?
    primarykey
    data
    text
    <p><a href="http://www.youtube.com/watch?v=gZNdfVwkttM" rel="nofollow">http://www.youtube.com/watch?v=gZNdfVwkttM</a> - you can see all of the problem described on this video if you can't see pictures.</p> <p>All of walls in all images below have a semitransparent PNG texture. Each square wall, floor and ceiling tile is a separate GeometryModel3D (I know that is no good for performance but...). The floor and the ceiling of the central cube have no any geometry and textures - so they have a color the same as Window.Background (black). But the effect considered appears in any way of transparency obtaining: texture for ImageBrush with transparency, Material.Color (for example DiffuseMAterial.Color) where Color has alpha channel, ImageBrush as material where ImageBrush has Opacity - all the way I have the same problem.</p> <p>All of walls consists of two triangles. Where are no explicit normals , because I define triangle indices so normals culculated automatically by WPF.</p> <p><a href="http://imagepost.ru/images/i/ma/image00001.png" rel="nofollow">http://imagepost.ru/images/i/ma/image00001.png</a></p> <p>It also haven't any back material or extra triangles from the back side.</p> <p>As you can see there is no problem if you look only from +Z to -Z (standing on the blue square and looking to the red square - that is the second picture).</p> <p>But if you look backward (from red to blue - the first picture) there is no transparency!</p> <p>Well, I desided to look from the yellow square (third picture).</p> <p>And then I walked nearer - you can see what was happening (pictures from 4 to 6).</p> <p>There are no geometry construction error or texture mapping error or lighting error! It is some kind of clipping, I guessed! In addition there are some interested pictures 7 and 8 to prove my guess.</p> <p>The last picture shows the white background of the window that hosted Viewport3D (previous was black), and my guess about clipping confirmed - WPF just not painted this part of the scene and we can see the window background!</p> <p>BUT! If this happens from various looks, why the look from +Z to -Z (second picture) seems well?!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload