WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   viz.REPEAT (https://forum.worldviz.com/showthread.php?t=2157)

jaclyn.bill 07-15-2009 06:33 AM

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) )


farshizzo 07-15-2009 05:38 PM

I don't really understand what the problem is. Can you post a screenshot showing the problem?

jaclyn.bill 07-23-2009 03:04 AM

1 Attachment(s)
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

farshizzo 07-23-2009 09:52 AM

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.

jaclyn.bill 08-10-2009 03:40 AM

That has solved the problem. Thank you.

J


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

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