Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: How do I *not* project shadows on some areas ?  (Read 3391 times)

0 Members and 1 Guest are viewing this topic.

adonf

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 124
    • View Profile
How do I *not* project shadows on some areas ?
« on: June 02, 2006, 10:47:58 AM »

Hi,

On what plane are the 3D shadows projected ? I made a couple of tests and it doesn't seem like it's the walk plane, or at least it's not limited to the walk area.

We have a scene where the character walks on a narrow peer and there are places where the main actor's shadow is floating above the water. Here's an example:


I think that in this case I can put a mask above the areas where the shadow shouldn't be projected, but there could be a more elegant solution that works in all cases...

Also, in another scenes we have shadows from trees that are draw in the backgound picture and the character's shadow doesn't blend well with those shadows. Can I put alpha information in the background picture so that the shadow only blends in some area of the picture but not all (that might be a solution to the problem in the other scene too) ?

Thanks,
  Olivier
Logged
I am the Milkman. My milk is good.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How do I *not* project shadows on some areas ?
« Reply #1 on: June 02, 2006, 05:07:20 PM »

The shadows aren't projected on the walkplanes, they are just projected onto a flat plane at character's feet. But now that you mention it, it probably shouldn't be too hard to optionally use the walkplane(s) geometry for projecting shadows.
But anyway, the shadows definitely offer a lot of space for improvement as they are now.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

adonf

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 124
    • View Profile
Re: How do I *not* project shadows on some areas ?
« Reply #2 on: June 06, 2006, 09:38:31 AM »

I don't think the walk plane would be the best thing to project the shadows on, because it doesn't necessarily match the walking area (in my case the walk plane is narrower than the walking area). A dedicated set of polygons would be a better idea, and ideally they wouldn't have to be flat although that would complicated things quite a bit programming-wise.

Any ideas regarding the other part of my question ? Can I use alpha to designate areas where the shadows aren't shown ?
Logged
I am the Milkman. My milk is good.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How do I *not* project shadows on some areas ?
« Reply #3 on: June 06, 2006, 05:37:09 PM »

I don't think the walk plane would be the best thing to project the shadows on, because it doesn't necessarily match the walking area (in my case the walk plane is narrower than the walking area). A dedicated set of polygons would be a better idea, and ideally they wouldn't have to be flat although that would complicated things quite a bit programming-wise.
That's something I was planning for the "real" shadows. The hidden geometry objects will provide additional attributes, such as whether they receive shadows.
(That is, if I'll be able to do the shadows properly, did some tests in the past and failed miserably)

Any ideas regarding the other part of my question ? Can I use alpha to designate areas where the shadows aren't shown ?
No, you can't, unfortunately. The shadows are projected into the scene, so I don't think it woud be easy to mix them with some static alpha info, without using stencil buffer or something like that.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.038 seconds with 21 queries.