Thread: viz.REPEAT
View Single Post
  #1  
Old 07-15-2009, 06:33 AM
jaclyn.bill jaclyn.bill is offline
Member
 
Join Date: Oct 2007
Posts: 42
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) )
Reply With Quote