![]() |
|
|
|
#1
|
|||
|
|||
|
That worked for the ambient occlusion map, however I'm not getting any lighting (specular in particular).
I added the model.enable(viz.LIGHTING) however I noticed no change. Neither the headlamp seems to be doing anything or a basic directional light. I also tried adding a light in the inspector and saving the model, but with nothing showing up in Vizard. Code:
import viz
import vizfx
viz.enable(viz.EFFECTGEN_OSGMAXEXP)
viz.setMultiSample(4)
viz.go(viz.FULLSCREEN)
coolingCylinder = vizfx.addChild('StaticModels_New//CoolingCylinder.OSGT')
coolingCylinder.enable( viz.LIGHTING)
viz.sensitivity(10, 0.75)
viz.addLight()
|
|
#2
|
|||
|
|||
|
Ok... Just started looking through the vizfx module and found your new generic light type and that worked.
Any plans on making this stuff the standard in Vizard, or will I have to go through this process for every vizfx model I want to bring in? ~George |
|
#3
|
|||
|
|||
|
Light baked into object?
Hey Shiva, maybe you can help me. I've just gone through the same struggle, but now have working dynamic lighting.
However, I find that my object created in 3DSMax is dimly lit even in the absence of light sources, when it should be totally black. Any thoughts? |
|
#4
|
|||
|
|||
|
It sounds like the global ambient lighting is still affecting the object. You will need to set the ambient color to black to completely disable all coloring of the object:
Code:
vizfx.setAmbientColor(viz.BLACK) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 11:58 AM |
| Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 11:46 AM |
| Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 11:46 AM |
| Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |
| Particle effects in Vizard | v-Salik | Vizard | 1 | 09-20-2007 04:42 PM |