problem with projectors

hi, sorry if this is a bit of a newbie question. i’m trying to set up projectors in my scene and am having trouble getting them to work.

i can use the prefab blob shadow projector without troubles, but as soon as i swap the projector material to another material or change the cookie in the material (using the FX/Projector Multiply shader) to another image file, nothing appears in the scene anymore. i’m using the same sized (256x256) image as the blob shadow, tried different file formats and different shaders on the material but can’t get it to work.

i’m using Unity Indie 2.0 (trial version).

any help would be highly appreciated. thanks. :slight_smile:

bump

still having issues here. have now found that even when i’m using even the blob shadow projector on a terrain object it won’t show anything at all either, so i’m still having no luck. any advice/assistance would be appreciated.

cheers.

it’s a known issue. Terrain objects don’t work with projectors (and blob shadows use them.)

The UT guys could probably tell you more, but there’s also another thread on it in here somewhere. :slight_smile:

Correct; projectors don’t currently work on terrain. We’re working on that.

Aras, can we expect that projectors will work on terrains at some point, or should we try to invent our own ways of working around it? I am trying to develop a game that has heavy need of images being drawn on the terrain. I can solve my challenge temporarily by using flat terrains, but I just need to have some guidelines for what to expect so I can plan accordingly. Thanks in advance for your answer.

We’ll post our workaround solution to the wiki soon. Basically we just position a mesh on the terrain (using the terrain sample height functions, which are pretty fast). The projector then casts on that mesh, when it’s over terrain, as well still casting on normal objects.

This is how we do blob shadows in the raptor game (see the trailer at www.raptorsafari.com for an example).

Hehe poor dino’s.

At some point - yes, they will.

If you need similar functionality right now, go for something like Matthew - place a flat mesh slightly above the terrain, or construct a non-flat mesh that follows the terrain.

Thanks for the news Aras, good to know. And thank you Matthew for the tip. I will for now position a transparent mesh over the terrain where I need the projections to show up. Its not as functional, but for now, it will work.