WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-04-2010, 10:43 AM
shahramy shahramy is offline
Member
 
Join Date: Dec 2009
Posts: 41
Unhappy 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!!!
Reply With Quote
 

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
setEuler method of Shadow module omidbrb Vizard 1 02-22-2010 09:35 AM
Change Viewpoint in different scenes lilio Vizard 1 08-28-2009 02:56 PM
Change model alpha and memory leak hosier Vizard 2 06-25-2009 10:55 AM
Draw Vector in viewpoint lookat direction Chrissy2009 Vizard 2 05-30-2009 12:50 AM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM


All times are GMT -7. The time now is 01:46 AM.


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