POV-Ray : Newsgroups : povray.newusers : How do you write Functions? : Re: How do you write Functions? Server Time
2 Nov 2024 13:17:38 EDT (-0400)
  Re: How do you write Functions?  
From: Christoph Hormann
Date: 9 Mar 2004 13:00:02
Message: <c2l0mb$82v$1@chho.imagico.de>
Felbrigg wrote:
> Can anyone give me a simple explanation of how to write a function for use
> in an isosurface or a pattern.  I've seen many examples and even some
> tutorials, yet none are clear on the basic input / output of a function POV.
> 
> For instance.  Do all functions return a float, if so is it always between 0
> and 1?  Some functions seem to require parameters other dont, whats the rule
> here.  I'm a programer by trade so coding as a rule is not a mystery.  Just
> how to a start writing my own.

The various tutorials available should already make this pretty clear, 
apart from that the docs will explain everything else:

http://www.povray.org/documentation/view/140/

There are examples in there for functions with specified parameters, 
float/vector/color functions and everything else.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 07 Mar. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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