POV-Ray : Newsgroups : povray.beta-test : Ambient and diffuse for include files? : Re: Ambient and diffuse for include files? Server Time
9 Jan 2026 14:12:46 EST (-0500)
  Re: Ambient and diffuse for include files?  
From: jr
Date: 6 Jan 2026 02:50:00
Message: <web.695cbdaf485c224d52af7e976cde94f1@news.povray.org>
hi,

Cousin Ricky <ric### [at] yahoocom> wrote:
> On 2026-01-05 02:46 (-4), jr wrote:
> > ...
> > to use, add the this to your (global) 'povray.ini' file:
> >
> >   include_header = /path/to/defaults.inc
> > ...
> This would defeat what I had in mind for the file.  The file would be
> referenced by textures.inc, metals.inc, etc., but if the user wants
> different defaults, they need to be #declared *before* these other files
> are #included.

that is exactly what happens, the declarations in 'defaults.inc' are then
available in the scene, and all its includes.


> This is not a problem with the file as I posted it, but I was going to
> post a new version of defaults.inc that set assumed_gamma and #default
> finish automatically, to save the user a bit of redundancy.  If used via
> 'Include_Header', the global settings and #defaults would be set before
> the scene file has a chance to tell it otherwise.

ah, here we "part company" :-), I do not think _setting_ any values (in advance)
will actually be helpful.  likely I misunderstood yr intent, I thought the file
should allow having one or more "sensible" pre-declared values, one of which
I/user can then use.


> ...
> Where is Bald Eagle?  I'm sure he has some good input.

hope he's getting some rest </griin>.


regards, jr.


Post a reply to this message

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