WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 12-14-2011, 06:46 PM
saajaja saajaja is offline
Member
 
Join Date: Nov 2011
Posts: 14
dynamic shadows

I've decided to try experimenting with dynamic shadowing. I figure it will run slower, but it might be worth a shot just to have something running.

http://kb.worldviz.com/articles/210#more-210

When I run that script, I get an error 'No Module Named Shadow'
Is this feature only available in Vizard 4?


Also, in the meantime, would you please revert that tutorial back to the video? Seeing as it was working before, I have a feeling that the problem lies in the way I'm texturing the objects.

Last edited by saajaja; 12-14-2011 at 06:53 PM.
Reply With Quote
  #2  
Old 12-14-2011, 07:28 PM
saajaja saajaja is offline
Member
 
Join Date: Nov 2011
Posts: 14
It isn't working in Vizard 4 either. I get the same error.
ImportError: No module named Shadow
Reply With Quote
  #3  
Old 12-15-2011, 12:12 AM
sleiN13 sleiN13 is offline
Member
 
Join Date: Dec 2008
Posts: 83
under the shadow demo movie there is a link to download the shadow.py module file
Reply With Quote
  #4  
Old 12-23-2011, 11:36 AM
saajaja saajaja is offline
Member
 
Join Date: Nov 2011
Posts: 14
thanks, I found it.

I tested the dynamic shadow thing on an older version of the model with baked shadows.
without.png is what it looks like without dynamic shadows
with.png is what it looks like with dynamic shadows.

here is my script
------------------------------------------
import viz
viz.go()
ground = viz.add('behJul2011.IVE')
SHADOW_RES = 256
SHADOW_POS = [0,50,0]
#Controls size of orthographic shadow projector
SHADOW_AREA = [100,100]
import Shadow
shadow = Shadow.ShadowProjector(size=SHADOW_RES,pos=SHADOW_ POS,area=SHADOW_AREA)
shadow.addCaster(ground)
shadow.addReceiver(ground)
---------------------------------------------------------

...So it looks like that won't be my quick and dirty solution.

The euler in the Shadow.py constructor is set to [0,90,0] by default. If I change

shadow = Shadow.ShadowProjector(size=SHADOW_RES,pos=SHADOW_ POS,area=SHADOW_AREA)

to

shadow = Shadow.ShadowProjector(size=SHADOW_RES,pos=SHADOW_ POS,euler=[30,90,30],area=SHADOW_AREA)

in the tutorial's example.py, nothing changes. Can dynamic shadows only be cast directly from above?

Back to the original problem with baking shadows, is there a recommended method of texturing objects in 3ds max that will work better than the way I described in my first post?
Attached Thumbnails
Click image for larger version

Name:	with.png
Views:	6423
Size:	260.6 KB
ID:	472   Click image for larger version

Name:	without.png
Views:	6289
Size:	421.0 KB
ID:	473  
Reply With Quote
Reply

Tags
max, not working, vizard

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
Vizard 4 Beta Testing farshizzo Announcements 0 02-01-2011 10:46 AM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM
Monitor Modes & Vizard (problems...) tmcw Vizard 1 10-03-2007 07:29 AM
euler problems in Vizard 3.0 v-clizzin Vizard 3 08-16-2007 06:10 PM
Export/import problems and Vizard 3.0 release searsky Vizard 0 01-03-2006 01:34 AM


All times are GMT -7. The time now is 06:28 AM.


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