POV-Ray : Newsgroups : povray.newusers : gradient question : Re: gradient question Server Time
4 Nov 2024 21:21:06 EST (-0500)
  Re: gradient question  
From: Trevor Quayle
Date: 19 Sep 2001 14:57:16
Message: <3ba8ea8c$1@news.povray.org>
The gradient should be perpendicular to the axis, I think what you are
seeing is an effect of perspective view and your aspect ratio. your aspect
ratio is 1:1, is your output image 1:1?


try this camera instead

camera {
  up y
  right x*image_width/image_height
  location <0,0,-3>
  look_at < 0,0,0>
}

it makes the aspect ratio of your camera and output image
(I think this is for 3.5 only though, if using 3.1 replace terms
"image_width" and "image_height" with the width and height of your image in
pixels)

-tgq


--
camera{location z*13look_at 0}light_source{15 15looks_like{sphere{0 10
}pigment{rgb 1}finish{ambient 15}}}union{torus{3,0.5rotate x*90}cone{y
*4,.5,-y*8,0}cone{-x*4,.5,x*8,0}pigment{rgb<.7,.6,.4>}finish{ambient 0
diffuse 0reflection{1fresnel on metallic 1}}interior{ior 25}rotate 15}
plane{y,-7pigment{checker rgb 0rgb 1scale 4}finish{diffuse.1}}//   TGQ


Post a reply to this message

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