> -----Message d'origine----- > Objet : Re: [osg-users] Question about osgSim::OverlayNode behaviour > > Hi Luc, > > On 8/9/07, Frauciel Luc <[EMAIL PROTECTED]> wrote: > > When using an OverlayNode to project a flat polygon on a > DEM, the polygon is not shaded using the DEM normals (see > image attached). > > Is it an intended behaviour ? > > The mode used is OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY > > > > Is there a way to make the polygon shaded ? > > The shading of the pre rendering stage is down to lighting > you have set up on the overlay subgraph. >
I don't want to touch to the ligthining of the overlay subgraph (in fact I'd like to use no lighting for it at all). What I'd like to do is to use the destination lighting (here a DEM) to shade the texture generated by the overlay subgraph (same result as osgdem, but with geometry instead of imagery). By the way, isn't "overlay_perspective_main.vert" missing on OpenSceneGraph-Data svn ? Luc > Robert. > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce > negraph.org > ********************************************************************************************** Pensez à l'environnement avant d'imprimer ce message Think Environment before printing Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du (des) destinataire(s) désigné(s) comme tel(s). En cas de réception par erreur, le signaler à son expéditeur et ne pas en divulguer le contenu. L'absence de virus a été vérifiée à l'émission, il convient néanmoins de s'assurer de l'absence de contamination à sa réception. The contents of this email and any attachments areconfidential. They are intended for the named recipient(s) only. If you have received this email in error please notifythe system manager or the sender immediately and do not disclose the contents to anyone or make copies. eSafe scanned this email for viruses, vandals and malicious content. **********************************************************************************************
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org