WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-18-2008, 12:51 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Hi shivanangel,

To disable backface culling on all objects with a particular material, check "2-sided" in that material's "shader basic parameters" in max's Material Editor.

To disable it by object, go to the helpers part of the modify panel, select "openscenegraph" as the object type, and create a stateset modifier. Add the objects to stateset modifier and make sure the box that says "cull face" in the GL Mode rollout is unchecked.


Making grass they way you described is probably going to give you some transparency problems that cause the background color of the scene to show through. This happens whenever partially transparent objects intersect each other. This can be solved by applying the following code to your exported model:

Code:
import viz
viz.setMultiSample(4) #lower multisample = lower quality, higher framerate, and vice versa

viz.go()

trans = viz.add('00.ive')

GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E
trans.disable(viz.BLEND)
trans.enable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB)
trans.draworder(0)
I recommend exporting the grass and other similar objects as a separate export and applying only to that. In most cases glass should not need this unless you have all the glass in a scene as one object or are getting transparency problems. Glass should also have its own export since it may need a higher sampling rate to look good than the grass does.
Reply With Quote
 

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 and Augmented Reality realvision Vizard 4 04-04-2008 10:59 AM
Vizard won't run wouters Vizard 5 02-05-2008 11:12 AM
Fall 2007 release of Vizard R3 3 D Announcements 0 10-15-2007 04:50 PM
Matlab and Vizard brystewa Vizard 1 09-18-2006 03:11 PM
Exporting from Maya to Vizard jfreeman Vizard 2 06-30-2005 02:14 PM


All times are GMT -7. The time now is 11:01 PM.


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