POV-Ray : Newsgroups : povray.windows : Modern Pov-Ray & Modern AI: chat-style generated scripts fail. Server Time
5 Feb 2025 18:03:23 EST (-0500)
  Modern Pov-Ray & Modern AI: chat-style generated scripts fail. (Message 1 to 4 of 4)  
From: Kinesis
Subject: Modern Pov-Ray & Modern AI: chat-style generated scripts fail.
Date: 4 Feb 2025 16:45:00
Message: <web.67a289e31fa2f7b6a0272dd0217c503a@news.povray.org>
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).
--


Post a reply to this message


Attachments:
Download 'screenshot 2025-02-04 134122.png' (575 KB)

Preview of image 'screenshot 2025-02-04 134122.png'
screenshot 2025-02-04 134122.png


 

From: Bald Eagle
Subject: Re: Modern Pov-Ray & Modern AI: chat-style generated scripts fail.
Date: 4 Feb 2025 17:15:00
Message: <web.67a29112713242dc1f9dae3025979125@news.povray.org>
"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


Post a reply to this message

From: Kenneth
Subject: Re: Modern Pov-Ray & Modern AI: chat-style generated scripts fail.
Date: 5 Feb 2025 11:50:00
Message: <web.67a39591713242dce83955656e066e29@news.povray.org>
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 ;-)


Post a reply to this message

From: Bald Eagle
Subject: Re: Modern Pov-Ray & Modern AI: chat-style generated scripts fail.
Date: 5 Feb 2025 12:25:00
Message: <web.67a39df0713242dc52b3ee0425979125@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> 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.

There are a lot of different AI packages, and I would assume each has their
particular strengths and weaknesses.

I have access to M$ CoPilot - which seems to do a truly suprisingly good job
with certain algorithms and SDL syntax - and then just completely drops the ball
when I try to model something which is (to me) comparatively simple, like
twisted rope.

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

Try a different AI model, or post a request for submitting your prompt to
another user's AI.

It's also just a good idea to hunt through your code and use it as a way to
learn proper SDL syntax, and good code formatting.


Post a reply to this message

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