![]() |
#1
|
|||
|
|||
![]()
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 viz.go() 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. Thanks, ~George |
#2
|
|||
|
|||
![]()
Still not able to get these effects in the Inspector to work Vizard side.
Looked further into your documentation and found this: <node3d>.generateEffects(viz.EFFECTGEN_OSGMAXEXP ) but it doesn't change anything for my object. Any ideas? |
#3
|
|||
|
|||
Hello,
To enable the effects, please try: Code:
import vizfx model = vizfx.addChild('...') Code:
model.enable( viz.LIGHTING ) |
#4
|
|||
|
|||
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() |
#5
|
|||
|
|||
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 |
#6
|
|||
|
|||
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? |
#7
|
|||
|
|||
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) |
#8
|
|||
|
|||
Hi,
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. https://www.dropbox.com/s/0eqw54nua8...fuseColor3.png |
#9
|
|||
|
|||
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?
|
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 |