POV-Ray : Newsgroups : povray.beta-test : frequency keyword conflict : frequency keyword conflict Server Time
29 Jul 2024 18:21:50 EDT (-0400)
  frequency keyword conflict  
From: David Necas (Yeti)
Date: 24 Mar 2002 08:21:40
Message: <slrna9rkn4.d3i.yeti@monoceros.physics.muni.cz>
Not exactly a bug, but still needs fixing:

The `frequency' keyword is used for two completely different
things
- in colour_maps to specify how many times they should be
  mapped over the [0,1] interval
- in ripples and waves patterns to specify the wave
  frequency

They conflict.  Consider

  #include "colors.inc"
  camera { location <0, 20, -30> look_at <0, 0, 0> }
  light_source { <30, 30, -30>, White }
  plane {
    y, 0
    pigment { ripples frequency 5 scale 20 }
    clipped_by { box { <-20, -1, -20> <0, 1, 40> } }
  }
  plane {
    y, 0
    pigment { Gray70 }
    normal { ripples frequency 5 scale 20 }
    clipped_by { box { <-20, -1, -20> <20, 1, 40> } }
  }

As normals (right), the ripples are OK, but as pigment
(left) they are broken, because `frequency' was used for
both wave frequency and colour_map frequency.

I suggest using a separate keyword like `wave_frequency' or
so for wave frequencies.  Consider one can't use ripples
in isosurface now (well, can, but can't set frequency).

Yeti


Post a reply to this message

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