WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-22-2012, 10:23 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
1) Setting the specular color on the light to black should effectively disable specular casting:
Code:
light.specular(viz.BLACK)
2) Contact groups are supported but not documented yet. Here is an example on how to use them:
Code:
import viz
import vizshape
viz.go()

#Enable physics
viz.phys.enable()

#Create floor
floor = viz.add('ground.osgb')
floor.collidePlane()
floor.commandPhysics(26,'',1) #Set contact group to 1

#Create sphere
sphere = vizshape.addSphere(pos=(0,2,10))
sphere.collideSphere()

#Create cube
cube = vizshape.addCube(pos=(0.1,5,10))
cube.collideBox();
cube.commandPhysics(26,'',2) #Set contact group to 2

#Disable contacts between groups 1 and 2
viz.phys.command(3,'',1,2,0)
3) Dynamics on mesh shapes is not supported in the version of ODE/Opal used by Vizard. Are you positive it is supported by OPAL? The link you posted just describes how to create mesh shapes, it does not mention enabling dynamics on the mesh.
Reply With Quote
 


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
VRay, and Complete Character animation questions Lithium Vizard 1 07-27-2011 01:21 PM
noob questions: scene lighting, viewpoint updates dcnieho Vizard 3 02-15-2011 09:53 PM
3 Easy Questions JMOwens Vizard 3 10-03-2007 01:10 PM
General Questions about Vizard: World Viz dav Vizard 5 08-28-2006 04:44 PM
Antialiasing questions oodini Vizard 1 12-06-2005 01:08 PM


All times are GMT -7. The time now is 03:08 AM.


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