Here's an example, as a screenshot. It is broken! I have been trying to utilize
PovRay for fun with AI but it is not working correctly (messages from Povray say
that '}' is misplaced, commonly).
--
"Kinesis" <nomail@nomail> wrote:
> Here's an example, as a screenshot. It is broken! I have been trying to utilize> PovRay for fun with AI but it is not working correctly (messages from Povray say> that '}' is misplaced, commonly).> --
You don't have a terminating } in your light source.
Try formatting your code to have { and } for each level at some fixed
indentation, so that it's easy to visually check opening and closing curly
braces.
texture
{
pigment
{
pigment_map
{
}
}
}
sorta thing.
- BW
The AI-generated Pyramid macro is also badly composed:
#macro Pyramid(position, size)
The lowercase 'size' variable used there is actually a POV-ray preserved
keyword, meant only for use in a 'facets' pattern-- which has nothing to do with
that particular macro. So the code would probably fail even with the additional
closing bracket that Bald Eagle mentioned.
The AI generator should have written it differently, like Size or SIZE or
something else, to be different from the keyword. Apparently 'the Brain' hasn't
learned such syntax rules yet ;-)