|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> "GioSeregni" <gms### [at] hotmail com> wrote:
> > "Bald Eagle" <cre### [at] netscape net> wrote:
> > > "GioSeregni" <gms### [at] hotmail com> wrote:
> > >
> > > > DEF GOLDDARK Material {diffuseColor 0.81 0.71 0.23 ambientIntensity 0.5
> > > > specularColor 1 1 1 shininess 1}
> > >
> > > my guess:
> > >
> > > #declare GOLDDARK = material {texture { pigment {rgb <0.81, 0.71, 0.23>} finish
> > > {ambient 0.5 specular 1} } }
> > >
> > > I would probably replace ambient with diffuse, and drastically decrease
> > > specular, or at least keep diffuse + specular < 1.
> > >
> > > - BW
> >
> > Many thanks! but my english is poor,
> > do you mean these are just your preferences, or the literal translation of the
> > syntax?
>
> I mean that I don't know what the material is supposed to look like, so it's
> hard to know if I'm correctly rewriting the material.
>
> Specular doesn't take a color, just a scalar value.
> But now that I think about it more, this is supposed to be a metallic material,
> so maybe:
>
> #declare GOLDDARK = material {texture { pigment {rgb <0.81, 0.71, 0.23>} finish
> {diffuse 0.5 metallic specular 0.5 brilliance 1 } } }
>
> Would be better.
> I'm a terrible person to ask about textures and finishes - but hopefully this
> helps a little.
>
> - BW
Many thans again, I appreciate your patience and help, but perhaps I didn't
explain myself well.
In the early 2000s, syntactic changes were made to the code.
( https://www.povray.org/documentation/view/3.60/355/ )
This page explains the criteria for these changes, but I absolutely find it
confusing.
And I don't even remember my criterion for updating my parser, which at the time
used my own long list of declarations. I posted three examples above, but my
list is long and of general use for many materials.
The result may also vary based on other factors of the environment and lighting,
but I would like to understand if, referring to any subject, my new syntax was
adapted correctly, because, apart from the RGB values, many keywords have been
abolished.
But I would like to understand how I should update this old syntax with the new
syntax, to obtain (with the same surrounding environment) the same result.
It's like when you switch from one language to another. If I have to write
"Hello World"
in basic I write
PRINT "Hello World"
but in LISP which has a different syntax, I have to write
(princ "Hello World"),
to obtain the same result. So, how can I then replace the keywords?
Material
diffuseColor
ambientIntensity
specularColor
shininess
I have now long since abolished and modified my statements, but I do not know if
I have translated them completely correctly.
I think the biggest difficulty is in the value of -shininess- Which was then
abolished, I believe, in favor of pong and pong_size
So, "shininess XX" becomes "pong YY" and "pong_size NN", but according to what
rule? And how did he intervene -specularColor- ?
I have made attempts to harmonize, but there must be an objective equivalence.
Post a reply to this message
|
 |