WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Creating a road (https://forum.worldviz.com/showthread.php?t=1703)

Saz 11-06-2008 06:13 AM

Creating a road
 
Hi,
I need some help in creating a continuous road for a person to drive along using a steering wheel and accelerator, additionally I would also need to adjust the duty cycle or frequency of the white road markings - has anyone tried this before or would someone be able to point me in the right direction as to where to look for similar examples of coding, any advice would be greatly appreciated

Jeff 11-07-2008 06:54 PM

I'll get back to you with some sample code early next week

Jeff 11-11-2008 03:06 PM

1 Attachment(s)
Here's a simple example using texture quads with road textures on them added one after the other to look like a road. When you get close to the end of the road more copies of the quad are added so the road keeps going. You can change the frequency of the white lines by hitting a key that changes the texture of quads added later.

I tried using the infinite terrain plugin to do this first but I had the problem of the road texture repeating on both sides as well as in front and back.

If this is useful you'll have to work on it to make it look a little better

Saz 11-14-2008 03:45 AM

Road
 
Jeff - you're an absolute legend! Thank you so much for your help :D


All times are GMT -7. The time now is 10:07 PM.

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