POV-Ray : Newsgroups : povray.general : #version directive : Re: #version directive Server Time
26 Apr 2024 07:02:25 EDT (-0400)
  Re: #version directive  
From: dick balaska
Date: 7 Feb 2018 15:42:51
Message: <5a7b64cb$1@news.povray.org>
On 02/07/2018 03:03 PM, Mike Horvath wrote:
> On 2/7/2018 7:13 AM, Stephen wrote:
>> Parse Warning: This scene had other declarations preceding the first 
>> #version directive. Please be aware that as of Pov-Ray 3.7, un1ess 
>> a1ready specified via an INI option, a #version is expected as the 
>> first declaration in a scene file. If this is not done, POV—Ray may 
>> apply compatibility settings to some features that are intended to 
>> make pre - 3.7 scenes render as designed. You are strongly encouraged 
>> to add a #version statement to the scene to make your intent c1ear. 
>> Future versions of Pov-Ray may make the presence of a #ver51on mandatory.
>>
>> Which means it might not work in the future.
>>
> 
> Yes, that's what I was worried about.
> 
> Mike

You could open with
#version 3.7

and then ignore it and do your calculated version when you're ready (I 
mean, like 5 lines below the initial #version).  That should satisfy the 
parser and work like you expect.

-- 
dik
Rendered 920576 of 921600 pixels (99%)


Post a reply to this message

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