WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 07-15-2009, 05:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I don't really understand what the problem is. Can you post a screenshot showing the problem?
Reply With Quote
  #3  
Old 07-23-2009, 03:04 AM
jaclyn.bill jaclyn.bill is offline
Member
 
Join Date: Oct 2007
Posts: 42
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
Attached Thumbnails
Click image for larger version

Name:	vizardscreen.JPG
Views:	683
Size:	108.4 KB
ID:	333  
Reply With Quote
  #4  
Old 07-23-2009, 09:52 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
This sets a small near clip plane. Basically everthing between 0.1 and 200 meters from the viewpoint will be rendered.
Reply With Quote
  #5  
Old 08-10-2009, 03:40 AM
jaclyn.bill jaclyn.bill is offline
Member
 
Join Date: Oct 2007
Posts: 42
That has solved the problem. Thank you.

J
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


All times are GMT -7. The time now is 07:39 AM.


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