POV-Ray : Newsgroups : povray.unofficial.patches : Sniffing UberPOV : Re: Sniffing UberPOV Server Time
13 Jul 2024 10:06:30 EDT (-0400)
  Re: Sniffing UberPOV  
From: Mr
Date: 6 Mar 2021 16:40:00
Message: <web.6043f638176d1c7e16086ed00@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:
> Does anyone know whether it is possible for a scene file to detect
> whether or not it is being rendered by UberPOV, without bombing out if
> it is rendered by official POV-Ray?
> Why would I need to do this?  Because I'm writing a macro that needs to
> know whether or not true inverse square light attenuation is available.
> For official POV-Ray, this is version >= 3.8, but for UberPOV, it is
> version >= 3.71.
> My first (and so far only) idea was to start with a test for the
> existence of the variable 'unofficial', but it turns out POV-Ray 3.8
> does the same test--but treats it as if it were a keyword.  This screws
> up the test for any SDL code running under 3.8.

I believe you're searching for the combination of this :


with a more narrowed patch version number that belongs only to uber pov such as:

#if(unofficial = \"patch\") #if(patch(\"upov-reflection-roughness\") > 0)

Post a reply to this message

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