WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-29-2012, 03:24 AM
pea pea is offline
Member
 
Join Date: Mar 2012
Posts: 5
Three questions

Hello,

I would like to know if there is the possibility to configure some options that I have not found in the documentation:

1. I know about the option, that I can adjust the specular property of individual objects but not on lights. Is there a way to enable/disable "specular casting" from a light? I want to create several lights, some that cause highlights on the objects and some just as "filllights" that do not evoke highlights.

2. Is there the possibility to have three objects with physics enabled, lets say a sphere, cube and floor and make the cube collide with the sphere and not with the floor but the sphere collide with both the cube and the floor?
I basically want to tell objects to collide only with certain objects and not with all. I can imagine, that one would have to make use of the contact groups which I found to be implemented in OPAL: http://opal.sourceforge.net/tutorial8.html
Is this difficult to access?

3. My last question is quite similar and deals with the collideMesh option. It is not possible to use forces with that. Why is this the case?
It seems that OPAL has such an option: http://opal.sourceforge.net/tutorial10.html
Would it be very complicated to implement such an option in general?


I was searching for clear answers to these questions in the forum and in the documentation for a while now but I never found any clear statements to that, so I would be really happy to learn about the possibilities that I have probably missed so far.

Best,
Petra
Reply With Quote
  #2  
Old 05-19-2012, 02:52 AM
pea pea is offline
Member
 
Join Date: Mar 2012
Posts: 5
Does really nobody have an answer to at least one of my questions?
Reply With Quote
  #3  
Old 05-22-2012, 09: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
  #4  
Old 06-12-2012, 05:15 AM
pea pea is offline
Member
 
Join Date: Mar 2012
Posts: 5
Thanks a lot for your response!! This was exactly what I wanted to know.
Considering 3), I must have misunderstood the contents of the link, thanks for making that clear to me.
Reply With Quote
Reply

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


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


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