POV-Ray : Newsgroups : povray.binaries.images : Trunks. Episode 2 : Re: Trunks. Episode 2 Server Time
14 Aug 2024 15:25:14 EDT (-0400)
  Re: Trunks. Episode 2  
From: Marc-Hendrik Bremer
Date: 6 Oct 2002 08:06:29
Message: <3da02745@news.povray.org>
"Gena Obukhov" <obu### [at] mailcom> schrieb im Newsbeitrag
news:3D9FC759.D06274B6@mail.com...
> I would apriciate your help if you know how to add spline
> path to these trunks and how to make it conical.

To make it conical, use instead of

x*x + z*z - 1

somethink like

x*x + z*z - (1-y/30) [to fit into your container].

To make it follow a spline you should declare the spline as a function and
the isosurface function

#declare Spline_Fun= function{ spline{...}}
#declare Iso_Fun=function{}

In the isosurface use somethink like

function{Iso_Fun{x+Spline_Fun(y).x,y,z+Spline_Fun(y).z}}.

A good reference for such methods is the Isosurface tutorial
http://www.econym.demon.co.uk/isotut/index.htm. The described method is also
used in the "New Tricks" section.

Hope that helps!

Good work btw!

Regards,

Marc-Hendrik


Post a reply to this message

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