POV-Ray : Newsgroups : povray.binaries.images : POVEarth: I just don't get it... : Re: POVEarth: I just don't get it... Server Time
30 Jul 2024 00:20:50 EDT (-0400)
  Re: POVEarth: I just don't get it...  
From: Cousin Ricky
Date: 29 Jun 2013 18:35:01
Message: <web.51cf6018b26e8b56540235480@news.povray.org>
=?ISO-8859-1?Q?J=F6rg_=27Yadgar=27_Bleimann?= <yaz### [at] gmxde> wrote:
> The main problem seems to be that
>
> trace(Earth_Slice, Earth_Pos,
> 2*rd*<sin(radians(-Cam_Long))*cos(radians(Cam_Lat)),
> sin(radians(Cam_Lat)), cos(radians(-Cam_Long))*cos(radians(Cam_Lat))>)
>
> which probes for the mesh, always returns zero... why?

Try adding a 4th parameter:

  #declare Norm = <0, 0, 0>; //dummy assignment
  trace(Earth_Slice, Earth_Pos,
  2*rd*<sin(radians(-Cam_Long))*cos(radians(Cam_Lat)),
  sin(radians(Cam_Lat)), cos(radians(-Cam_Long))*cos(radians(Cam_Lat))>,
  Norm)

If Norm is <0, 0, 0> after the call to trace(), then the trace has missed the
object entirely.


Post a reply to this message

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