View Single Post
  #1  
Old 11-22-2006, 09:58 AM
v-clizzin v-clizzin is offline
Member
 
Join Date: Sep 2006
Posts: 15
Model tessellation and lighting effects

Hi, I am writing a program that uses the user-defined lighting effects supplied by Vizard (specifically, viz.LIGHT). I'm figuring out how to do this using the 'spotlights.py' file included in the Techniques & Examples help section. The file notes that in order for lighting effects to work correctly, the models must be tesselated into small enough pieces. Since I'm working with custom models that I didn't make myself, I am looking for help on how to tesselate these models. The models I'm working with are a custom room model and some avatar models (one is the generic Vizard male.cfg and the other is a custom avatar from the Complete Characters package).

In addition, when I port the code for a spotlight from the sample file into another program using a custom room model with two partitioned rooms, the spotlight shines on the outside wall, but doesn't seem to affect the partition wall at all. That is, the room looks like this:

___B__
A |__|__| D
C

The light shines on the inside sides of walls A, B, C, and D, but does not affect the divider wall at all. This might be related to the tesselation problem, but I'm noting it here in case it is a separate problem.

Any help/advice would be appreciated. You can post here or email me at clizzin@stanford.edu. Thank you very much!

Christopher Lin

Last edited by v-clizzin; 11-22-2006 at 10:01 AM.
Reply With Quote