![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Has anyone here thought that it could be practical to have some kind of
vector format for a finish?
Example:
#declare Mirror = finish {ambient 0 diffuse 0 reflection 1}
could be
#declare Mirror= finish{ adr<0,0,1>}
Just a thought.
Have a great day
Ambis
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
An interesting idea, however there would be so many floats within
such a "vector" it might be somewhat difficult to keep in mind what
goes where. I believe there are currently 11 or more individual parts.
Also the way people write those out varies greatly, no set rule on
what goes first, second, third, etc. Plus the fact that reflection itself can
be a vector already.
But not a bad idea if done certain ways.
Perhaps like: finish { ad 0.1,0.6 sr 0.5,0.05 ps 0.3,80 re 0.9,1 mb 1,1 c 0.1 }
ad = ambient and diffuse
sr = specular and roughness
ps = phong and phong_size
re = reflection and reflection_exponent (also possible, re <0.9,0.9,0.9>,1)
mb = metallic and brilliance
c = crand
There's also 'irid' but it has it's own statement within the finish.
For shorthand it couldn't hurt to do in such ways I suppose.
Bob
"AC" <amb### [at] telia com> wrote in message news:3921b9fc@news.povray.org...
{ Has anyone here thought that it could be practical to have some kind of
{ vector format for a finish?
{
{ Example:
{ #declare Mirror = finish {ambient 0 diffuse 0 reflection 1}
{ could be
{ #declare Mirror= finish{ adr<0,0,1>}
{
{
{ Just a thought.
{
{ Have a great day
{ Ambis
{
{
{
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3921b9fc@news.povray.org>, "AC" <amb### [at] telia com> wrote:
> Has anyone here thought that it could be practical to have some kind of
> vector format for a finish?
>
> Example:
> #declare Mirror = finish {ambient 0 diffuse 0 reflection 1}
> could be
> #declare Mirror= finish{ adr<0,0,1>}
This would be very bad for readability and maintainability, and all it
would do is save a bit of typing. And your syntax limits you to float
parameters...all three of those can take colors. And what about
specular, angle dependant reflection, etc?
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Chris Huff" <chr### [at] yahoo com> wrote in message
news:chrishuff_99-DCC0D4.17155616052000@news.povray.org...
> In article <3921b9fc@news.povray.org>, "AC" <amb### [at] telia com> wrote:
>
> > Has anyone here thought that it could be practical to have some kind
of
> > vector format for a finish?
> >
> > Example:
> > #declare Mirror = finish {ambient 0 diffuse 0 reflection 1}
> > could be
> > #declare Mirror= finish{ adr<0,0,1>}
>
> This would be very bad for readability and maintainability, and all it
> would do is save a bit of typing. And your syntax limits you to float
> parameters...all three of those can take colors.
Intresting, I did not know that :)
> And what about specular, angle dependant reflection, etc?
>
This was only a general idea of how it could be done, I expected that there
would be problems scince there are more keywords than those three.
Thanks for your input.
Ambis
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |