PDA

View Full Version : Creating a road


Saz
11-06-2008, 06:13 AM
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
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
Jeff - you're an absolute legend! Thank you so much for your help :D