WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-08-2008, 10:01 AM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
RE: Shadow Module

Hi again,

I am in the process of populating my training sim with an avatar or two - and all is well with that. To ground them in the scene I am trying to implement shadows, which i have successfully done before in another scene (more by luck than judgement), however, than scene had a flat ground plane and was not as complex as this scene which is awash with physics.

The problem I am having is that the shadows don't always show up as the avatar walks across the scene, by that I mean that the shadow appears to disappear behind a poly as he walks down the incline and doesn't reappear! I have tried altering the SHADOW_POS variable - which seems to affect where and when it can be seen but never sort it.

My ground, while uneven (slopes down to road) is all one object and- as far as i can tell- is a 'water tight' mesh. Any ideas what is happening? Am i fundamentally misunderstanding the way that the shadow module works?

As always, all help gratefully received
Reply With Quote
  #2  
Old 05-08-2008, 03:40 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The shadow projector can only cover a finite area. You could increase the size of the area, but this means your shadows won't be as smooth. Another option would be to have the shadow module follow the x,z position of the avatar. If your avatar is the only object that casts shadows then this is the best solution. Your shadows will always be sharp and your avatar will be able to walk all around your environment.
Reply With Quote
  #3  
Old 05-08-2008, 04:52 PM
nige777 nige777 is offline
Member
 
Join Date: Nov 2007
Location: UK
Posts: 78
Re::d

I had wondered if that would be the solution, but as there are multiple shadow casters in my scene I have ended up getting good results by upping the shadow size and the resolution.

Just out of interest is there a limit to the shadow casters one can assign, or is this governed more by the graphics card?

Thanks for the clarification,

Last edited by nige777; 05-08-2008 at 04:56 PM.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shadow paulpars Vizard 1 06-07-2006 09:42 AM
accessing system speaker noise pkhoosh Vizard 2 01-25-2006 10:22 AM
Fading/lightening-Problem and viz.go in module Johannes Vizard 6 09-02-2005 04:28 PM
vhil module vadrian Vizard 2 01-27-2005 11:52 AM


All times are GMT -7. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC