[osg-users] Trees, Grass and Shadows

Dominic Stalder dominic.stalder at bluewin.ch
Mon Nov 23 03:43:01 PST 2009

Hi Peter

I can't help you with your problem. I am a newbie to OSG, but I'm 
actually trying to have a nice (back)ground for our scene and thought 
that grass and a tree would look very nice. And I have to say that your 
video looks amazing!

Where can I find some helpful information for modeling the grass with 
billboards and how did you create the shadows, with osgShadow or a shader?

Thanks and regards

Peter Wraae Marino schrieb:
> Hi osgUsers,
> I have question about rendering shadows on grass billboards. This is
> not a question about anything missing or not working in
> OpenSceneGraph, but a question how to solve a problem with shadows and
> grass.
> The problem is the grass are created using a shader that creates
> billboard instances, so all grass you see in the video are billboards.
> When the shadowmap is applied to the grass billboard I get streaks at
> certain camera angles. Does anyone know how to fix this problem so the
> grass looks more natural on a grass billboard.
> Here is the video:
> http://www.youtube.com/watch?v=iuEVJ-2xQO0
> regards,
> Peter Wraae Marino

More information about the osg-users mailing list