![]() |
|
|
|
#1
|
|||
|
|||
|
no that i think of it, the problem is maybe less related to vizact and more to the model i'm using. i mentioned vizact because there i can see more clearily what's happening and it's where i spend my last hopes of solving the problem by myself. but i get the same behavior while navigating with the mouse. the model i have is a valid collada model and the normals are ok. i don't have the bounce back effect if the collision surface is aligned along the x/z axes, which i find really strange...
|
|
#2
|
|||
|
|||
|
me again.
i stripped down my code to the very basic and still didn't find a solution. i can't see how anything could be wrong in the usage, but i posted the code below anyway. i also tried different models from 3D Warehouse and i could reproduce the problem. attached is a very simple collada model i generate myself(rename to .dae). the normals are ok, but i still have the bumping effect when the wall is oblique. i think the problem is somewhere in the Vizard navigation code and has something to do with vector decomposition, otherwise i cannot explain why it's not happening when the wall is parallel with an axis... Code:
import viz
viz.setOption('viz.model.apply_collada_scale',1)
world = viz.addChild('.\\..\\configs\maze3D.dae')
world.collideMesh()
env = viz.addEnvironmentMap('sky.jpg')
sky = viz.addCustomNode('skydome.dlc')
sky.texture(env)
viz.disable(viz.LIGHTING)
viz.MainView.collision(viz.ON)
viz.MainView.setPosition(3.02036, 0.00000, -0.08363)
viz.MainView.eyeheight(0.11)
viz.go()
|
![]() |
| Tags |
| collision, vizact |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using move() and spinTo efficiently | Shweta | Vizard | 3 | 07-29-2014 05:10 PM |
| Hand Grab and Object Action | rmcconnell11 | Vizard | 2 | 04-30-2014 06:51 AM |
| how to move seperately? | nasr | Vizard | 2 | 05-11-2009 01:57 AM |
| move animated camera around corner question | nlfrnassimi | Vizard | 1 | 02-23-2009 09:45 AM |
| How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |