POV-Ray : Newsgroups : povray.unofficial.patches : Scaling normals : Re: Scaling normals Server Time
2 Sep 2024 12:17:22 EDT (-0400)
  Re: Scaling normals  
From: Nathan Kopp
Date: 28 Jan 2000 09:56:15
Message: <3891ae0f@news.povray.org>
Nieminen Juha <war### [at] punarastascstutfi> wrote...
>   2) What a strange name. Wouldn't "no_normal_scale" be better and more
>      descriptive?

A good point.  How many people would get mad if I changed the syntax?

>   3) I really didn't mean this. What I meant was that there should be a
>      way to scale the pattern independently of the normal. This means that
>      after scaling the pattern it should be possible to scale the whole
>      normal statement (which would scale both the pattern and the normal).
>      I don't like the "scale pattern or normal, but not both" type of
>      scaling.

You can enclose your pattern as a pigment within a 'function' pattern.  This
way, you could do whatever you want to with the pattern before it starts
getting used as a normal.

Instead of using this:

    normal{
      crackle 0.5
      scale 10
    }

use this:

    normal{
      function{pigment{
        crackle
        color_map{[0 rgb 0][1 rgb 1]}  // might be optional
        scale 10  // scale goes here
      }} 0.5
    }

I think adding a 'pattern' pattern would be useful.  That would look like
this:

    normal{
      pattern{
        crackle
        scale 10  // scale goes here
      } 0.5
    }

Comments?

-Nathan


Post a reply to this message

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