precipitation areas?

tdev

29-03-2010 15:37:32

we recently upgraded to the latest version of caelum and try to use the precipitation features of it.

Its working very fine except that we need to have 'areas' where no precipitation should be.

Imagine that the camera is sitting inside a car and it should only rain on the outside, not inside the cabin ;)

Or inside of buildings and outside of it.

The simplest solution would be just to turn it off when you go inside, but then you cannot see the rain from the inside.

Are there solution to this problems?

thanks!

Fish

29-03-2010 19:30:18

Can you move the precipitation compositor in the render queue to render before you draw the components inside the vehicle or the building?

-Fish

tdev

29-03-2010 22:18:38

Can you move the precipitation compositor in the render queue to render before you draw the components inside the vehicle or the building?

yeah, i was thinking to do something like this, i was just wondering if anyone has experience in this or could copy&paste some example ;)

tdev

22-07-2010 19:41:22

looked into how its done. The compositor is always fullscreen and you need to improve the shader for that to work. Somehow. Help appreciated!

Fish

23-07-2010 12:27:22

I remember looking at the ogre compositor code, a long time ago, and I seem to remember that it uses render groups for the compositors. I don't remember if there are methods available to set individual compositors to draw in a specific render group. But I think it should be possible. (I don't have access to the code atm or I'd look myself because I'll be facing this same problem soon.)

- Fish

Vectrex

26-07-2010 10:50:26

A quick hack might be to raycast up out of your head to find the occluding building/mesh and simply set the rain radius to the bounding sphere radius :)