#1
|
|||
|
|||
Looking 'through' objects
Hello all,
I am having an issue with objects in my vizard model word. Even though I set the collisionbuffer to 3m, I am able to look through some of the models when I am near them. This is most prominent with an outer wall that I have created to form a border around an arena. I have attached 2 pictures to illustrate the problem. My questions are: What is the best way to fix this? Create an invisible coating in 3ds Max around the objects? Or adjust settings in Vizard? What is the difference between viz.collisionbuffer() and myViewport.collisionbuffer()? Is the first one for all objects in my Vizard environment and the second one only for my viewport? I have noticed that in the model piazza.osgb from Vizard, this problem does not occur. How is it solved there? Thanks for your help! |
#2
|
|||
|
|||
This sounds like a clip plane issue. By default, Vizard will automatically compute the near/far clip planes based on the bounding box of the currently visible geometry. However, with very large bounding boxes, the resolution of the near clip plane will be reduced, causing the issues you are seeing.
To solve this, you can either try reducing the dimensions of your scene or manually specify the clip plane values. It look like you are using some kind of sky dome in your scene. If the size of that is very large then it could be causing the problems. The following code can be used to specify the near/far clip planes: Code:
viz.clip(0.1,200) |
#3
|
|||
|
|||
Hello farshizzo,
indeed, my movement area is very big (and has to be so!) Your suggestion of manually adjusting the clip plane worked flawlessly. Thanks again for your quick help! All the best, Johannes |
#4
|
|||
|
|||
what is the default far clip plane? is there any way to just specify the near clip and leave far at default?
|
#5
|
|||
|
|||
The default far clip plane is 10000. You can get the current value using <window>.getFarClip() and pass that to the viz.clip function.
|
#6
|
|||
|
|||
great! thanks
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 04:07 PM |
static or dynamic objects | shahramy | Vizard | 2 | 11-10-2010 01:32 AM |
Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 04:09 AM |
multiple objects | durf | Vizard | 1 | 04-10-2009 02:42 PM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 12:01 PM |