#1
|
|||
|
|||
viz.REPEAT
Hi,
I'm using the code below to create the illusion of a continuous ground plane. My horizon looks fine; However, when you use the mouse to move forward across this ground plane you start viewing the near most edge of it - resulting in an undulating strip of background blue. I've tried altering the ground position etc. but to no avail. Could someone tell me why it is doing this. Many thanks. Code:
NUMBER_OF_REPEATS = 200 gravel = viz.add('gravel.jpg',wrap=viz.REPEAT) ground = viz.add('tut_ground.wrl') ground.setPosition(0,0,0) ground.setScale([100,100,100]) ground.collidePlane() ground.texture(gravel) ground.texmat( viz.Matrix.scale(NUMBER_OF_REPEATS,NUMBER_OF_REPEATS,1) ) |
#2
|
|||
|
|||
I don't really understand what the problem is. Can you post a screenshot showing the problem?
|
#3
|
|||
|
|||
Hi,
The screen looks like this- it's the blue strip at the bottom I don't want, it only appears when you start navigating forward and slightly left or right with the mouse and won't go away. I've realised I can get rid of the problem by resetting my setScale to 10,10,10. Although the ground doesn't really look how I want it too then. Is there any reason for this? Many thanks. J |
#4
|
|||
|
|||
OK, I see now. It looks like a clip plane issue caused by the large scale being applied to your model. Try manually specifying the clip plane:
Code:
viz.clip(0.1,200) |
#5
|
|||
|
|||
That has solved the problem. Thank you.
J |
|
|