POV-Ray : Newsgroups : povray.advanced-users : Changing POV #version mid-scene? : Re: Changing POV #version mid-scene? Server Time
18 Apr 2024 20:36:59 EDT (-0400)
  Re: Changing POV #version mid-scene?  
From: clipka
Date: 10 Jan 2014 18:50:38
Message: <52d0874e$1@news.povray.org>
Am 10.01.2014 23:11, schrieb posfan12:

>  > Actually, I'm pretty sure you can switch it on the fly. I already
>  > have code to do this in another situation (although I haven't been
>  > able to track down what I can do to trigger the code). The output
>  > looks something like so:
>
>  > #if (version > 3.6) #version 3.6; #end
>  > #include "somefile.inc"
>  > #if (version < LDXOrigVer) #version LDXOrigVer; #end
>
> Does this still work in POV 3.7?

Yes, although it will warn you that #version isn't the first statement 
in the scene file.

You can suppress the warning by using the following syntax:

   #version version;
   #if (version > 3.6) #version 3.6; #end
   #include "somefile.inc"
   #if (version < LDXOrigVer) #version LDXOrigVer; #end


Post a reply to this message

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