Hi,

I'm not clear, do you want the transparent plane to cast shadows or to be shadowed?

The latter should be technically possible (haven't tried it in opensg, but I've coded a few such things myself).

The former is a bit difficult, since partial transparency (and thus partial shadow) is not readily obtainable with shadow maps (what depth to put in the shadow map? You would need to track how much shadow/light there is at different depths. Not possible today). Simple on/off transparency (i.e. alpha testing) should be possible though.

Regards,
/Marcus

Daniele Pagliani wrote:
Hi everyone,

I’m using the ShadomMapViewport and I need to have a transparent plane that casts shadows, but the shadow disappears when I set transparency in the plane material. I.e. using the tutorial 21Shadows, if I use a plane without texture and i set the transparency:

    SimpleMaterialPtr plane_mat = SimpleMaterial::create();

    beginEditCP(plane_mat);

        plane_mat->setAmbient(Color3f(0.3,0.3,0.3));

        plane_mat->setDiffuse(Color3f(1.0,1.0,1.0));

            plane_mat->setTransparency(0.5);

        //plane_mat->addChunk(plane_tex);

    endEditCP(plane_mat);

the shadow disappears.

Does it exists a way to obtain shadow onto a transparent plane?

Thank you.

Regards

Daniele

----------------------------------------------

ing. Daniele Pagliani

Seac02  S.r.l.
via Avogadro 4
10121 Torino Italia
Tel. +39.011.197.006.52
Fax  +39.011.197.006.53
E-mail [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

www.seac02.it <http://www.seac02.it>


Questa E-mail è rivolta unicamente alle persone o enti ai quali è
indirizzata. Essa può contenere informazioni la cui riservatezza è tutelata.
Sono vietati la riproduzione e qualsiasi uso di questa e-mail e/o delle
informazioni in essa contenute in mancanza di autorizzazione del
destinatario.
This e-mail is intended only for the person or entity to which is addressed.
It may contain information that is privileged, proprietary, confidential,
attorney work product or otherwise exempted from disclosure under
applicable law. Copying, dissemination or use of this e-mail or the
information herein by anyone other than the intended recipient is
prohibited.




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to