Hello Dirk,
Thanks for your answer.
The scene I have is quite simple: this is a cross of 3 planes (one xy,
one xz, and one zy, and they are centered with 0,0,0) and on each there
is grayscale texture. Every pixel which are originaly black are
completely transparent the other have no transparency (is there actually
a way to give a grayscale texture without transparency values and that
OpenSG automatically gives a transparency value 1 to the black pixels ?).
The effect I'm getting is the following for example:
let say the position of my viewpoint is 1,1,1 and the direction vector
is -1,-1,-1 (I look to the center of the world). Sometime I can see the
entire plane xz, behind it the plane zy and behind it the plane xy. I
should only see a qurter of each plane. What I can see through the
transparnt pixels seems to be correct.
I give a texture to an ImagePtr with the method set and the arguments
(Image::OSG_LA_PF, width,height, 1, 1, 1, 0, buffer,
Image::OSG_UINT8_IMAGEDATA). The texture is given to a
SimpleTextureMaterial which is given to a Plane geometry.
Best regards.
Vincent
Dirk Reiners wrote:
Hi Vincent,
On Wed, 2005-02-16 at 07:00, Vincent Honnet wrote:
Hello,
I#m using transparent textures but OpenSG seems to have problem with
the
depth ordering. Is there an option to switch on ?
OpenSG does transparency sorting by default, by only on a per-object
basis (centroid of bounding box). So if you have multiple non-coplanar
polygons in an object, or multiple transparent object there can be
situations where it's off.
What's your scene, what's the exact effect you're getting?
Dirk
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
--
Vincent Honnet
Photographie und Software Service
Mariahilfstr. 15
52062 Aachen
E-Mail: [EMAIL PROTECTED]
Tel.: 0241 400 8882
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users