WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   Enabling Effects in Vizard 5? (

shivanangel 04-04-2014 10:41 AM

Enabling Effects in Vizard 5?
1 Attachment(s)
I'm trying to move the model that I see working properly in the Inspector into Vizard, however I'm not getting any of the shader effects.

My script is as simple as possible:
import viz
coolingCylinder = viz.add('StaticModels_New//CoolingCylinder.OSGB')

When I right click and go to properties to load the OSGB in the Inspector from Vizard, everything looks fine.

However in Vizard, all the shader effects seem to just be composited one on top of the other as if them were just being blended as normal textures.

Is there a setting to turn on effects that is not on by default?

Nothing jumped out at me in the help doc to do this.


shivanangel 04-07-2014 07:48 AM

Still not able to get these effects in the Inspector to work Vizard side.

Looked further into your documentation and found this: .generateEffects(viz.EFFECTGEN_OSGMAXEXP) but it doesn't change anything for my object.

Any ideas?

masaki 04-07-2014 10:44 AM


To enable the effects, please try:

import vizfx
model = vizfx.addChild('...')

You may also need to enable lighting on the model with the usual:

model.enable( viz.LIGHTING )

shivanangel 04-07-2014 11:03 AM

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.


import viz
import vizfx

coolingCylinder = vizfx.addChild('StaticModels_New//CoolingCylinder.OSGT')
coolingCylinder.enable( viz.LIGHTING)
viz.sensitivity(10, 0.75)



shivanangel 04-07-2014 11:07 AM

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?


performlabrit 05-01-2014 11:51 AM

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?

Jeff 05-09-2014 08:14 AM

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:

This should ensure the object is completely black in the absence of lights and emissive properties.

virtualBox 05-21-2014 02:49 AM


This is another question about 3ds Max in Vizard.I am new to Vizard. I designed a 3D model building in 3ds Max 2014. I am using Vizard 5 32bit. I want to see the same file in Vizard. When I bake the file using Complete Map with Diffuse color, as shown in World Viz articles, I see that all the textures got baked properly but after I export this file to Vizard, there is Diffuse texture on diffuse color like in the picture link. Everything looks red and green.

Jeff 05-27-2014 04:13 AM

I was not able to see the image you linked to. Do you get a better result if you load the model without using the effects command?

All times are GMT -7. The time now is 02:04 AM.

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