POV-Ray : Newsgroups : povray.binaries.scene-files : lens flare in scene Server Time
30 Dec 2024 15:03:53 EST (-0500)
  lens flare in scene (Message 1 to 4 of 4)  
From: Tek
Subject: lens flare in scene
Date: 7 Mar 2010 06:37:00
Message: <4b938fdc@news.povray.org>
Source for my post in p.b.i & p.b.a.

As an extra bonus I'm too lazy to make this a standalone file, so I've 
included my "std.inc", which contains a suite of tricks I like using. Enjoy 
:)

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message


Attachments:
Download 'lensflare.zip' (10 KB)

From: Christian Froeschlin
Subject: Re: lens flare in scene
Date: 7 Mar 2010 07:45:33
Message: <4b939fed@news.povray.org>
Tek wrote:

> As an extra bonus I'm too lazy to make this a standalone file, so I've 
> included my "std.inc", which contains a suite of tricks I like using.

thanks, now I've downloaded this just to look at your std.inc ;)

The global brightness trick (Iris) is neat and I'll
probably want to try your studio settings sometimes.

Also, I use an almost identical "for" macro, except my
names are reversed: The "callback" macro I call FOR and
the "for" macro I call FROM_TO, then the usage has a
slighly more traditional syntax ;)

#macro FOR(I)
   //Do something with I
#end FROM_TO(1,10)

Also I have indexed copies of the macro for nested loops.


Post a reply to this message

From: Tek
Subject: Re: lens flare in scene
Date: 7 Mar 2010 20:18:52
Message: <4b94507c@news.povray.org>
"Christian Froeschlin" <chr### [at] chrfrde> wrote in message 
news:4b939fed@news.povray.org...
>
> Also, I use an almost identical "for" macro, except my
> names are reversed: The "callback" macro I call FOR and
> the "for" macro I call FROM_TO, then the usage has a
> slighly more traditional syntax ;)

I've actually only used my "for" macro once, therefore meaning that it's 
taken me *more* effort than if I hadn't written it at all! It never seems to 
quite suit any code I'm writing.

> #macro FOR(I)
>   //Do something with I
> #end FROM_TO(1,10)
>
> Also I have indexed copies of the macro for nested loops.

Interesting, that certainly looks better than my one. I might try that.

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

From: Tek
Subject: Re: lens flare in scene
Date: 22 Mar 2010 22:12:14
Message: <4ba8237e$1@news.povray.org>
> "Christian Froeschlin" <chr### [at] chrfrde> wrote in message 
> news:4b939fed@news.povray.org...
>>
>> Also, I use an almost identical "for" macro, except my
>> names are reversed: The "callback" macro I call FOR and
>> the "for" macro I call FROM_TO, then the usage has a
>> slighly more traditional syntax ;)

You might be amused to know that the "citify" technique I'm currently 
developing (see my post in p.b.i) is now using one of your suggested loops. 
Thanks for the idea :)

Though I'm calling it While(), since the condition is much more complex than 
a for loop.

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

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