how to change shadow direction?
i used Shadow module to create shadow but I cant change the direction of shadow in the other hand the point in which the imaginary light source exists. i have used this code.
SHADOW_RES = 2048 #Postion of shadow projector SHADOW_POS = [-30.800,5.000,50 ] SHADOW_AREA = [150,150] #Create shadow projector shadow = Shadow.ShadowProjector(size=SHADOW_RES,pos=SHADOW_ POS,area=SHADOW_AREA) #Add avatar as a shadow caster shadow.addCaster(obj1) shadow.addCaster(obj2) #Add ground as shadow receiver shadow.addReceiver(sh) with this shadow_pos the shadow will create exact under the two object which have many distance from each other!!! |
The following example shows how to set the position and orientation of the shadow projector. It moves in a circle around the avatar and turns so that it is always pointed at the avatar.
Code:
import viz |
thanks man. that is great. vizard is the best:D
|
All times are GMT -7. The time now is 12:05 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC