POV-Ray : Newsgroups : povray.unofficial.patches : vectors.inc Attn: Tor Olav (povr branch work) : Re: vectors.inc Attn: Tor Olav (povr branch work) Server Time
29 Jan 2023 20:50:10 EST (-0500)
  Re: vectors.inc Attn: Tor Olav (povr branch work)  
From: Bald Eagle
Date: 28 May 2021 21:45:00
Message: <web.60b19bba633c4bc41f9dae3025979125@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:

> To fix this I would prefer to change the order of the "ifs" in the
> OrthogonalVector() macro.
> If the old VPerp_To_Vector() macro is changed to call (wrap) the new
> OrthogonalVector() with reordered "ifs", it will break scenes using the
> VPerp_To_Vector() macro.
> So now I'm not sure what to do...

2 things here:

1.  I may be wrong, but I was under the impression that povr is a fork, and it's
purpose is to improve and fix some longstanding issues with the official povray
source code.  So breaking older scenes is probably not the primary concern.

2.  I thought that this was what the #version directive was for.  Can't you
sniff the scene version and include a fork in the wrapper?   If the version is
old, use the old way, and if it's new, use the new way?


Post a reply to this message

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