POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov 0.4 Now Available (Windows/Macintosh) : Re: MegaPov 0.4 Now Available (Windows/Macintosh) Server Time
3 Jul 2024 03:08:46 EDT (-0400)
  Re: MegaPov 0.4 Now Available (Windows/Macintosh)  
From: Chris Huff
Date: 30 Jan 2000 13:43:22
Message: <chrishuff_99-C50692.13440830012000@news.povray.org>
In article <38948214@news.povray.org>, Nieminen Juha 
<war### [at] punarastascstutfi> wrote:

> Chris Huff <chr### [at] yahoocom> wrote:
> : How about adding a "perturb_normal()" function instead?
> 
>   It may be one solution, but difficult to use if the object in question
> has complex transformations (you would have to apply the same 
> transformations
> to the texture before calling perturb_normal()).


How about also adding a way to access the texture of the object? That 
way you could trace against the object, then use the object's texture 
normal(which was transformed along with the object) to perturb the real 
normal. The normal could be accessed by either a dot 
operator(preferable, something like this: Obj.texture.normal), or by a 
function(less flexible syntax, more keywords, etc. Something like 
get_tex_normal(Obj)).

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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