|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> "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
|
|
| |
| |
|
|
|
|
| |