POV-Ray : Newsgroups : povray.binaries.images : spline-based highway macro : Re: spline-based highway macro Server Time
30 Jul 2024 20:29:02 EDT (-0400)
  Re: spline-based highway macro  
From: Zeger Knaepen
Date: 27 Jan 2011 03:41:15
Message: <4d412fab$1@news.povray.org>
On 27/01/2011 8:45, Thibaut Jonckheere wrote:
> Looks excellent ! Something I have been dreaming for...

thank you!

> Can you give a few details on the method:
>
> - does it work with a single spline, or do you need to specify two (or
> more) ?

1 spline, it's up to the user to make sure the spline results in a 
decently shaped highwat

> - does the spline needs to lie in a plane ? If not, how the orientation
> of the road is chosen ?

doesn't need to lie on a plane, although loopings are not supported 
(haven't tried them actually, but the supports always go in the -y 
direction. It might work if the looping itself doesn't have supports!)

the orientation of the road is based on the direction of the spline 
(using vcross)

> - how do you apply textures ?

UV-mapping for the road itself, ordinary texturing for the rest.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.