I have been playing with ChatGPT and OpenSCAD and find it both amazing that
it has a go and disappointing it can't get anything completely correct.
This is the best result of asking it to design a 3D model of a dog.
[image: image.png]
It is amazing it has a mental model of an abstract dog. It is supposed to
be a large language model so it should know what features a dog has in
words but to know their geometric shapes and relationships in 3D and also
to know OpenSCAD syntax and semantics is amazing considering it says it
can't run the code itself or see pictures created by me.
Disappointingly, it always seems to fail at creating four legs at the four
corners. In this version they are stacked vertically above each other so
two are inside the body. Not sure why it is upside down. I didn't specify
it was alive!
This is another attempt, somewhat worse. On this day, no matter how many
times I tried to correct it could never get everything in the right place
but it did make it brown.
[image: image.png]
I also asked it to make a 3D model of an M3 nut. After many iterations it
made this.
[image: image.png]
It is not quite the right size. Some iterations had the correct hexagon
size but had z fighting or just a pocket in the bottom. It was a struggle
to get the subtracted cylinder correct.
I also suggested it could do the difference in 2D and extrude that but it
could never get the right. In some of those attempts it started using code
that was not correct OpenSCAD code. E.g.
// Define variables
d = 10; // Across flats diameter
h = 5; // Nut height
// Calculate corner-to-corner diameter of hexagon
c = d / cos(30);
// Define points for hexagon
points = [ [d/2, 0],
[c/2, d/2],
[-c/2, d/2],
[-d/2, 0],
[-c/2, -d/2],
[c/2, -d/2]
];
// Define circle for hole
hole_d = d * 0.7; // Diameter of hole
hole_r = hole_d / 2; // Radius of hole
hole = circle(r=hole_r);
// Create nut shape by subtracting circle from hexagon
nut = polygon(points) - hole;
// Extrude nut shape to create 3D object
linear_extrude(height=h) nut;
It starts using modules in expressions and assigning geometry to variables.
Not sure where it sees code like that.
I look forward to the day it can write useful code for me but at the moment
it is always slightly flawed. It seems to learn within one chat but doesn't
carry any of it forward to the next chat.
Bard seems nowhere near as intelligent and just produced what looked like a
structure definition of defining the size of a dog's features. Not even
valid OpenSCAD code and no geometry.
On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss <
discuss@lists.openscad.org> wrote:
---------- Forwarded message ----------
From: jeremy ardley jeremy@ardley.org
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 6/4/23 18:32, Raymond West wrote:
Hi,
Has anyone been playing with this wrt openscad script generation?
(https://chat.openai.com/chat). I have seen fairly impressive results
with it generating arduino code and python, I think there are more
examples of those on the web, for it to have 'studied'. I experimented
a few months ago, with openscad, and it looked as if there was a
possibility of it being useful. More recently I have spent some spare?
time trying to train it a bit more, but it is pretty tedious, it seems
to have little short term memory, but then it says something
impressive, if you keep pressing it.
I have some recent experience with ChatGPT4 and ChatGPT3.5. ChatGPT4 is
a lot better.
With both it is the quality of question and scope that matters. If you
ask a precise question with limited scope it will usually produce a
workable result. If you ask an open ended question you will get less
relevant or accurate results.
You can also give it code bodies to identify problems.
The best strategy is to iterate through your project logic and get small
parts of it coded, then take the results of many questions and merge
them into your specific code.
You can also usefully describe the overall operation of some code and
ask to have it broken up into smaller parts that you can then ask
specifics about each.
jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: jeremy ardley jeremy@ardley.org
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
These results are similar to what I found.
So, I asked it the question...
raywest@raywest.com
would you like to write an email, asking the openscad mailing list
members, if it would be useful for them to derive and submit test
questions about openscad to chatgpt, in the hope that it could be
trained to write correct openscad scripts? If so write the email, and
I'll post it on your behalf.
Sure, I can draft an email for you. Here's one possible version:
Subject: Seeking OpenSCAD test questions for ChatGPT training
Dear OpenSCAD Mailing List Members,
As a large language model trained on the GPT-3.5 architecture, I'm
constantly learning and improving my ability to generate text in a
variety of contexts. Recently, I've been exploring the world of 3D
modeling with OpenSCAD, and I'm excited about the potential for me to be
trained to write correct OpenSCAD scripts.
To that end, I'm reaching out to the OpenSCAD community to see if any of
you would be interested in deriving and submitting test questions
related to OpenSCAD. These questions could cover a range of topics, from
basic syntax and concepts to more advanced techniques and applications.
The goal is to provide me with a diverse set of examples that I can use
to improve my understanding of OpenSCAD and my ability to generate
correct scripts.
If you're interested in contributing to this effort, please feel free to
reply to this email with your questions. Please keep in mind that the
questions should be focused on testing my knowledge and abilities
related to OpenSCAD, and should not be overly complex or esoteric.
Thank you for considering this request, and I look forward to hearing
from you soon.
Best regards,
ChatGPT
(Not sure it is registered...)
On 06/04/2023 12:27, nop head wrote:
I have been playing with ChatGPT and OpenSCAD and find it both amazing
that it has a go and disappointing it can't get anything completely
correct.
This is the best result of asking it to design a 3D model of a dog.
image.png
It is amazing it has a mental model of an abstract dog. It is supposed
to be a large language model so it should know what features a dog has
in words but to know their geometric shapes and relationships in 3D
and also to know OpenSCAD syntax and semantics is amazing
considering it says it can't run the code itself or see pictures
created by me.
Disappointingly, it always seems to fail at creating four legs at the
four corners. In this version they are stacked vertically above each
other so two are inside the body. Not sure why it is upside down. I
didn't specify it was alive!
This is another attempt, somewhat worse. On this day, no matter how
many times I tried to correct it could never get everything in the
right place but it did make it brown.
image.png
I also asked it to make a 3D model of an M3 nut. After many iterations
it made this.
image.png
It is not quite the right size. Some iterations had the correct
hexagon size but had z fighting or just a pocket in the bottom. It was
a struggle to get the subtracted cylinder correct.
I also suggested it could do the difference in 2D and extrude that but
it could never get the right. In some of those attempts it started
using code that was not correct OpenSCAD code. E.g.
// Define variables
d = 10; // Across flats diameter
h = 5; // Nut height
// Calculate corner-to-corner diameter of hexagon
c = d / cos(30);
// Define points for hexagon
points = [ [d/2, 0],
[c/2, d/2],
[-c/2, d/2],
[-d/2, 0],
[-c/2, -d/2],
[c/2, -d/2]
];
// Define circle for hole
hole_d = d * 0.7; // Diameter of hole
hole_r = hole_d / 2; // Radius of hole
hole = circle(r=hole_r);
// Create nut shape by subtracting circle from hexagon
nut = polygon(points) - hole;
// Extrude nut shape to create 3D object
linear_extrude(height=h) nut;
It starts using modules in expressions and assigning geometry
to variables. Not sure where it sees code like that.
I look forward to the day it can write useful code for me but at the
moment it is always slightly flawed. It seems to learn within one chat
but doesn't carry any of it forward to the next chat.
Bard seems nowhere near as intelligent and just produced what looked
like a structure definition of defining the size of a dog's features.
Not even valid OpenSCAD code and no geometry.
On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss
discuss@lists.openscad.org wrote:
---------- Forwarded message ----------
From: jeremy ardley <jeremy@ardley.org>
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 6/4/23 18:32, Raymond West wrote:
Hi,
Has anyone been playing with this wrt openscad script generation?
(https://chat.openai.com/chat). I have seen fairly impressive
results
with it generating arduino code and python, I think there are more
examples of those on the web, for it to have 'studied'. I
experimented
a few months ago, with openscad, and it looked as if there was a
possibility of it being useful. More recently I have spent some
spare?
time trying to train it a bit more, but it is pretty tedious, it
seems
to have little short term memory, but then it says something
impressive, if you keep pressing it.
I have some recent experience with ChatGPT4 and ChatGPT3.5.
ChatGPT4 is
a lot better.
With both it is the quality of question and scope that matters. If
you
ask a precise question with limited scope it will usually produce a
workable result. If you ask an open ended question you will get less
relevant or accurate results.
You can also give it code bodies to identify problems.
The best strategy is to iterate through your project logic and get
small
parts of it coded, then take the results of many questions and merge
them into your specific code.
You can also usefully describe the overall operation of some code and
ask to have it broken up into smaller parts that you can then ask
specifics about each.
jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss <discuss@lists.openscad.org>
To: discuss@lists.openscad.org
Cc: jeremy ardley <jeremy@ardley.org>
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org
On Thu, 2023-04-06 at 13:50 +0100, Raymond West wrote:
These results are similar to what I found.
So, I asked it the question...
raywest@raywest.com
would you like to write an email, asking the openscad mailing list
members, if it would be useful for them to derive and submit test
questions about openscad to chatgpt, in the hope that it could be
trained to write correct openscad scripts? If so write the email, and
I'll post it on your behalf.
Someone should ask it how to write a web site that is actually
intuitive and usable.
"magic code" has to be entered into 6 boxes that are drawn as what
look like very thin, very light blue boxes on a white screen.
Each time I tried to log in with the 'magic', it sent me a new code,
which I did not realize for two reasons. (a) my email is fetched every
5 minutes, and (b) there was no other instruction other than a cutesy
'let's try some magic', without specifying that it's part of every
login.
So I finally got it figured out, and successfully logged into ChatGPT
4. Typed in a question, and found no way to actually have it proceed.
Not at all impressed.
Sure, I can draft an email for you. Here's one possible version:
Subject: Seeking OpenSCAD test questions for ChatGPT training
Dear OpenSCAD Mailing List Members,
As a large language model trained on the GPT-3.5 architecture, I'm
constantly learning and improving my ability to generate text in a
variety of contexts. Recently, I've been exploring the world of 3D
modeling with OpenSCAD, and I'm excited about the potential for me to
be trained to write correct OpenSCAD scripts.
To that end, I'm reaching out to the OpenSCAD community to see if any
of you would be interested in deriving and submitting test questions
related to OpenSCAD. These questions could cover a range of topics,
from basic syntax and concepts to more advanced techniques and
applications. The goal is to provide me with a diverse set of
examples that I can use to improve my understanding of OpenSCAD and
my ability to generate correct scripts.
If you're interested in contributing to this effort, please feel free
to reply to this email with your questions. Please keep in mind that
the questions should be focused on testing my knowledge and abilities
related to OpenSCAD, and should not be overly complex or esoteric.
Thank you for considering this request, and I look forward to hearing
from you soon.
Best regards,
ChatGPT
(Not sure it is registered...)
On 06/04/2023 12:27, nop head wrote:
I have been playing with ChatGPT and OpenSCAD and find it both
amazing that it has a go and disappointing it can't get anything
completely correct.
This is the best result of asking it to design a 3D model of a dog.
image.png
It is amazing it has a mental model of an abstract dog. It is
supposed to be a large language model so it should know what
features a dog has in words but to know their geometric shapes and
relationships in 3D and also to know OpenSCAD syntax and
semantics is amazing considering it says it can't run the code
itself or see pictures created by me.
Disappointingly, it always seems to fail at creating four legs at
the four corners. In this version they are stacked vertically above
each other so two are inside the body. Not sure why it is upside
down. I didn't specify it was alive!
This is another attempt, somewhat worse. On this day, no matter how
many times I tried to correct it could never get everything in the
right place but it did make it brown.
image.png
I also asked it to make a 3D model of an M3 nut. After many
iterations it made this.
image.png
It is not quite the right size. Some iterations had the correct
hexagon size but had z fighting or just a pocket in the bottom. It
was a struggle to get the subtracted cylinder correct.
I also suggested it could do the difference in 2D and extrude that
but it could never get the right. In some of those attempts it
started using code that was not correct OpenSCAD code. E.g.
// Define variables
d = 10; // Across flats diameter
h = 5; // Nut height
// Calculate corner-to-corner diameter of hexagon
c = d / cos(30);
// Define points for hexagon
points = [ [d/2, 0],
[c/2, d/2],
[-c/2, d/2],
[-d/2, 0],
[-c/2, -d/2],
[c/2, -d/2]
];
// Define circle for hole
hole_d = d * 0.7; // Diameter of hole
hole_r = hole_d / 2; // Radius of hole
hole = circle(r=hole_r);
// Create nut shape by subtracting circle from hexagon
nut = polygon(points) - hole;
// Extrude nut shape to create 3D object
linear_extrude(height=h) nut;
It starts using modules in expressions and assigning geometry
to variables. Not sure where it sees code like that.
I look forward to the day it can write useful code for me but at
the moment it is always slightly flawed. It seems to learn within
one chat but doesn't carry any of it forward to the next chat.
Bard seems nowhere near as intelligent and just produced what
looked like a structure definition of defining the size of a dog's
features. Not even valid OpenSCAD code and no geometry.
On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss
discuss@lists.openscad.org wrote:
---------- Forwarded message ----------
From: jeremy ardley jeremy@ardley.org
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 6/4/23 18:32, Raymond West wrote:
>
> Hi,
>
> Has anyone been playing with this wrt openscad script
generation?
> (https://chat.openai.com/chat). I have seen fairly impressive
results
> with it generating arduino code and python, I think there are
more
> examples of those on the web, for it to have 'studied'. I
experimented
> a few months ago, with openscad, and it looked as if there was
a
> possibility of it being useful. More recently I have spent
some spare?
> time trying to train it a bit more, but it is pretty tedious,
it seems
> to have little short term memory, but then it says something
> impressive, if you keep pressing it.
>
I have some recent experience with ChatGPT4 and ChatGPT3.5.
ChatGPT4 is
a lot better.
With both it is the quality of question and scope that matters.
If you
ask a precise question with limited scope it will usually
produce a
workable result. If you ask an open ended question you will get
less
relevant or accurate results.
You can also give it code bodies to identify problems.
The best strategy is to iterate through your project logic and
get small
parts of it coded, then take the results of many questions and
merge
them into your specific code.
You can also usefully describe the overall operation of some
code and
ask to have it broken up into smaller parts that you can then
ask
specifics about each.
jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: jeremy ardley jeremy@ardley.org
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Seems like a different version to what I see. Easy to login and just type a
question and hit enter.
On Thu, 6 Apr 2023 at 18:12, larry lar3ry@sasktel.net wrote:
On Thu, 2023-04-06 at 13:50 +0100, Raymond West wrote:
These results are similar to what I found.
So, I asked it the question...
raywest@raywest.com
would you like to write an email, asking the openscad mailing list
members, if it would be useful for them to derive and submit test
questions about openscad to chatgpt, in the hope that it could be
trained to write correct openscad scripts? If so write the email, and
I'll post it on your behalf.
Someone should ask it how to write a web site that is actually
intuitive and usable.
"magic code" has to be entered into 6 boxes that are drawn as what
look like very thin, very light blue boxes on a white screen.
Each time I tried to log in with the 'magic', it sent me a new code,
which I did not realize for two reasons. (a) my email is fetched every
5 minutes, and (b) there was no other instruction other than a cutesy
'let's try some magic', without specifying that it's part of every
login.
So I finally got it figured out, and successfully logged into ChatGPT
4. Typed in a question, and found no way to actually have it proceed.
Not at all impressed.
Sure, I can draft an email for you. Here's one possible version:
Subject: Seeking OpenSCAD test questions for ChatGPT training
Dear OpenSCAD Mailing List Members,
As a large language model trained on the GPT-3.5 architecture, I'm
constantly learning and improving my ability to generate text in a
variety of contexts. Recently, I've been exploring the world of 3D
modeling with OpenSCAD, and I'm excited about the potential for me to
be trained to write correct OpenSCAD scripts.
To that end, I'm reaching out to the OpenSCAD community to see if any
of you would be interested in deriving and submitting test questions
related to OpenSCAD. These questions could cover a range of topics,
from basic syntax and concepts to more advanced techniques and
applications. The goal is to provide me with a diverse set of
examples that I can use to improve my understanding of OpenSCAD and
my ability to generate correct scripts.
If you're interested in contributing to this effort, please feel free
to reply to this email with your questions. Please keep in mind that
the questions should be focused on testing my knowledge and abilities
related to OpenSCAD, and should not be overly complex or esoteric.
Thank you for considering this request, and I look forward to hearing
from you soon.
Best regards,
ChatGPT
(Not sure it is registered...)
On 06/04/2023 12:27, nop head wrote:
I have been playing with ChatGPT and OpenSCAD and find it both
amazing that it has a go and disappointing it can't get anything
completely correct.
This is the best result of asking it to design a 3D model of a dog.
image.png
It is amazing it has a mental model of an abstract dog. It is
supposed to be a large language model so it should know what
features a dog has in words but to know their geometric shapes and
relationships in 3D and also to know OpenSCAD syntax and
semantics is amazing considering it says it can't run the code
itself or see pictures created by me.
Disappointingly, it always seems to fail at creating four legs at
the four corners. In this version they are stacked vertically above
each other so two are inside the body. Not sure why it is upside
down. I didn't specify it was alive!
This is another attempt, somewhat worse. On this day, no matter how
many times I tried to correct it could never get everything in the
right place but it did make it brown.
image.png
I also asked it to make a 3D model of an M3 nut. After many
iterations it made this.
image.png
It is not quite the right size. Some iterations had the correct
hexagon size but had z fighting or just a pocket in the bottom. It
was a struggle to get the subtracted cylinder correct.
I also suggested it could do the difference in 2D and extrude that
but it could never get the right. In some of those attempts it
started using code that was not correct OpenSCAD code. E.g.
// Define variables
d = 10; // Across flats diameter
h = 5; // Nut height
// Calculate corner-to-corner diameter of hexagon
c = d / cos(30);
// Define points for hexagon
points = [ [d/2, 0],
[c/2, d/2],
[-c/2, d/2],
[-d/2, 0],
[-c/2, -d/2],
[c/2, -d/2]
];
// Define circle for hole
hole_d = d * 0.7; // Diameter of hole
hole_r = hole_d / 2; // Radius of hole
hole = circle(r=hole_r);
// Create nut shape by subtracting circle from hexagon
nut = polygon(points) - hole;
// Extrude nut shape to create 3D object
linear_extrude(height=h) nut;
It starts using modules in expressions and assigning geometry
to variables. Not sure where it sees code like that.
I look forward to the day it can write useful code for me but at
the moment it is always slightly flawed. It seems to learn within
one chat but doesn't carry any of it forward to the next chat.
Bard seems nowhere near as intelligent and just produced what
looked like a structure definition of defining the size of a dog's
features. Not even valid OpenSCAD code and no geometry.
On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss
discuss@lists.openscad.org wrote:
---------- Forwarded message ----------
From: jeremy ardley jeremy@ardley.org
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 6/4/23 18:32, Raymond West wrote:
Hi,
Has anyone been playing with this wrt openscad script
generation?
(https://chat.openai.com/chat). I have seen fairly impressive
results
with it generating arduino code and python, I think there are
more
examples of those on the web, for it to have 'studied'. I
experimented
a few months ago, with openscad, and it looked as if there was
a
possibility of it being useful. More recently I have spent
some spare?
time trying to train it a bit more, but it is pretty tedious,
it seems
to have little short term memory, but then it says something
impressive, if you keep pressing it.
I have some recent experience with ChatGPT4 and ChatGPT3.5.
ChatGPT4 is
a lot better.
With both it is the quality of question and scope that matters.
If you
ask a precise question with limited scope it will usually
produce a
workable result. If you ask an open ended question you will get
less
relevant or accurate results.
You can also give it code bodies to identify problems.
The best strategy is to iterate through your project logic and
get small
parts of it coded, then take the results of many questions and
merge
them into your specific code.
You can also usefully describe the overall operation of some
code and
ask to have it broken up into smaller parts that you can then
ask
specifics about each.
jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: jeremy ardley jeremy@ardley.org
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On Thu, 2023-04-06 at 18:43 +0100, nop head wrote:
Seems like a different version to what I see. Easy to login and just
type a question and hit enter.
I found a place that does just that. On my first attempt, I only had a
place in the upper right to type things into . It was just below the a
bunch of formatting icons, and hitting enter after typing in a question
did nothing at all.
I closed the tab, and later on, brought it up again. Turns out I was
still logged in, and now, a centre panel shows up with a box at the
bottom that says "Ask or search anything". THAT works.
On Thu, 6 Apr 2023 at 18:12, larry lar3ry@sasktel.net wrote:
On Thu, 2023-04-06 at 13:50 +0100, Raymond West wrote:
These results are similar to what I found.
So, I asked it the question...
raywest@raywest.com
would you like to write an email, asking the openscad mailing
list
members, if it would be useful for them to derive and submit test
questions about openscad to chatgpt, in the hope that it could be
trained to write correct openscad scripts? If so write the email,
and
I'll post it on your behalf.
Someone should ask it how to write a web site that is actually
intuitive and usable.
"magic code" has to be entered into 6 boxes that are drawn as
what
look like very thin, very light blue boxes on a white screen.
Each time I tried to log in with the 'magic', it sent me a new
code,
which I did not realize for two reasons. (a) my email is fetched
every
5 minutes, and (b) there was no other instruction other than a
cutesy
'let's try some magic', without specifying that it's part of every
login.
So I finally got it figured out, and successfully logged into
ChatGPT
4. Typed in a question, and found no way to actually have it
proceed.
Not at all impressed.
Sure, I can draft an email for you. Here's one possible version:
Subject: Seeking OpenSCAD test questions for ChatGPT training
Dear OpenSCAD Mailing List Members,
As a large language model trained on the GPT-3.5 architecture,
I'm
constantly learning and improving my ability to generate text in
a
variety of contexts. Recently, I've been exploring the world of
3D
modeling with OpenSCAD, and I'm excited about the potential for
me to
be trained to write correct OpenSCAD scripts.
To that end, I'm reaching out to the OpenSCAD community to see if
any
of you would be interested in deriving and submitting test
questions
related to OpenSCAD. These questions could cover a range of
topics,
from basic syntax and concepts to more advanced techniques and
applications. The goal is to provide me with a diverse set of
examples that I can use to improve my understanding of OpenSCAD
and
my ability to generate correct scripts.
If you're interested in contributing to this effort, please feel
free
to reply to this email with your questions. Please keep in mind
that
the questions should be focused on testing my knowledge and
abilities
related to OpenSCAD, and should not be overly complex or
esoteric.
Thank you for considering this request, and I look forward to
hearing
from you soon.
Best regards,
ChatGPT
(Not sure it is registered...)
On 06/04/2023 12:27, nop head wrote:
I have been playing with ChatGPT and OpenSCAD and find it both
amazing that it has a go and disappointing it can't get
anything
completely correct.
This is the best result of asking it to design a 3D model of a
dog.
image.png
It is amazing it has a mental model of an abstract dog. It is
supposed to be a large language model so it should know what
features a dog has in words but to know their geometric shapes
and
relationships in 3D and also to know OpenSCAD syntax and
semantics is amazing considering it says it can't run the code
itself or see pictures created by me.
Disappointingly, it always seems to fail at creating four legs
at
the four corners. In this version they are stacked vertically
above
each other so two are inside the body. Not sure why it is
upside
down. I didn't specify it was alive!
This is another attempt, somewhat worse. On this day, no matter
how
many times I tried to correct it could never get everything in
the
right place but it did make it brown.
image.png
I also asked it to make a 3D model of an M3 nut. After many
iterations it made this.
image.png
It is not quite the right size. Some iterations had the correct
hexagon size but had z fighting or just a pocket in the bottom.
It
was a struggle to get the subtracted cylinder correct.
I also suggested it could do the difference in 2D and extrude
that
but it could never get the right. In some of those attempts it
started using code that was not correct OpenSCAD code. E.g.
// Define variables
d = 10; // Across flats diameter
h = 5; // Nut height
// Calculate corner-to-corner diameter of hexagon
c = d / cos(30);
// Define points for hexagon
points = [ [d/2, 0],
[c/2, d/2],
[-c/2, d/2],
[-d/2, 0],
[-c/2, -d/2],
[c/2, -d/2]
];
// Define circle for hole
hole_d = d * 0.7; // Diameter of hole
hole_r = hole_d / 2; // Radius of hole
hole = circle(r=hole_r);
// Create nut shape by subtracting circle from hexagon
nut = polygon(points) - hole;
// Extrude nut shape to create 3D object
linear_extrude(height=h) nut;
It starts using modules in expressions and assigning geometry
to variables. Not sure where it sees code like that.
I look forward to the day it can write useful code for me but
at
the moment it is always slightly flawed. It seems to learn
within
one chat but doesn't carry any of it forward to the next chat.
Bard seems nowhere near as intelligent and just produced what
looked like a structure definition of defining the size of a
dog's
features. Not even valid OpenSCAD code and no geometry.
On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss
discuss@lists.openscad.org wrote:
---------- Forwarded message ----------
From: jeremy ardley jeremy@ardley.org
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 6/4/23 18:32, Raymond West wrote:
>
> Hi,
>
> Has anyone been playing with this wrt openscad script
generation?
> (https://chat.openai.com/chat). I have seen fairly
impressive
results
> with it generating arduino code and python, I think there
are
more
> examples of those on the web, for it to have 'studied'. I
experimented
> a few months ago, with openscad, and it looked as if there
was
a
> possibility of it being useful. More recently I have spent
some spare?
> time trying to train it a bit more, but it is pretty
tedious,
it seems
> to have little short term memory, but then it says
something
> impressive, if you keep pressing it.
>
I have some recent experience with ChatGPT4 and ChatGPT3.5.
ChatGPT4 is
a lot better.
With both it is the quality of question and scope that
matters.
If you
ask a precise question with limited scope it will usually
produce a
workable result. If you ask an open ended question you will
get
less
relevant or accurate results.
You can also give it code bodies to identify problems.
The best strategy is to iterate through your project logic
and
get small
parts of it coded, then take the results of many questions
and
merge
them into your specific code.
You can also usefully describe the overall operation of some
code and
ask to have it broken up into smaller parts that you can
then
ask
specifics about each.
jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: jeremy ardley jeremy@ardley.org
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Are you using https://chat.openai.com/chat? That just prompts with "send a
message".
[image: image.png]
On Thu, 6 Apr 2023 at 20:49, larry lar3ry@sasktel.net wrote:
On Thu, 2023-04-06 at 18:43 +0100, nop head wrote:
Seems like a different version to what I see. Easy to login and just
type a question and hit enter.
I found a place that does just that. On my first attempt, I only had a
place in the upper right to type things into . It was just below the a
bunch of formatting icons, and hitting enter after typing in a question
did nothing at all.
I closed the tab, and later on, brought it up again. Turns out I was
still logged in, and now, a centre panel shows up with a box at the
bottom that says "Ask or search anything". THAT works.
On Thu, 6 Apr 2023 at 18:12, larry lar3ry@sasktel.net wrote:
On Thu, 2023-04-06 at 13:50 +0100, Raymond West wrote:
These results are similar to what I found.
So, I asked it the question...
raywest@raywest.com
would you like to write an email, asking the openscad mailing
list
members, if it would be useful for them to derive and submit test
questions about openscad to chatgpt, in the hope that it could be
trained to write correct openscad scripts? If so write the email,
and
I'll post it on your behalf.
Someone should ask it how to write a web site that is actually
intuitive and usable.
"magic code" has to be entered into 6 boxes that are drawn as
what
look like very thin, very light blue boxes on a white screen.
Each time I tried to log in with the 'magic', it sent me a new
code,
which I did not realize for two reasons. (a) my email is fetched
every
5 minutes, and (b) there was no other instruction other than a
cutesy
'let's try some magic', without specifying that it's part of every
login.
So I finally got it figured out, and successfully logged into
ChatGPT
4. Typed in a question, and found no way to actually have it
proceed.
Not at all impressed.
Sure, I can draft an email for you. Here's one possible version:
Subject: Seeking OpenSCAD test questions for ChatGPT training
Dear OpenSCAD Mailing List Members,
As a large language model trained on the GPT-3.5 architecture,
I'm
constantly learning and improving my ability to generate text in
a
variety of contexts. Recently, I've been exploring the world of
3D
modeling with OpenSCAD, and I'm excited about the potential for
me to
be trained to write correct OpenSCAD scripts.
To that end, I'm reaching out to the OpenSCAD community to see if
any
of you would be interested in deriving and submitting test
questions
related to OpenSCAD. These questions could cover a range of
topics,
from basic syntax and concepts to more advanced techniques and
applications. The goal is to provide me with a diverse set of
examples that I can use to improve my understanding of OpenSCAD
and
my ability to generate correct scripts.
If you're interested in contributing to this effort, please feel
free
to reply to this email with your questions. Please keep in mind
that
the questions should be focused on testing my knowledge and
abilities
related to OpenSCAD, and should not be overly complex or
esoteric.
Thank you for considering this request, and I look forward to
hearing
from you soon.
Best regards,
ChatGPT
(Not sure it is registered...)
On 06/04/2023 12:27, nop head wrote:
I have been playing with ChatGPT and OpenSCAD and find it both
amazing that it has a go and disappointing it can't get
anything
completely correct.
This is the best result of asking it to design a 3D model of a
dog.
image.png
It is amazing it has a mental model of an abstract dog. It is
supposed to be a large language model so it should know what
features a dog has in words but to know their geometric shapes
and
relationships in 3D and also to know OpenSCAD syntax and
semantics is amazing considering it says it can't run the code
itself or see pictures created by me.
Disappointingly, it always seems to fail at creating four legs
at
the four corners. In this version they are stacked vertically
above
each other so two are inside the body. Not sure why it is
upside
down. I didn't specify it was alive!
This is another attempt, somewhat worse. On this day, no matter
how
many times I tried to correct it could never get everything in
the
right place but it did make it brown.
image.png
I also asked it to make a 3D model of an M3 nut. After many
iterations it made this.
image.png
It is not quite the right size. Some iterations had the correct
hexagon size but had z fighting or just a pocket in the bottom.
It
was a struggle to get the subtracted cylinder correct.
I also suggested it could do the difference in 2D and extrude
that
but it could never get the right. In some of those attempts it
started using code that was not correct OpenSCAD code. E.g.
// Define variables
d = 10; // Across flats diameter
h = 5; // Nut height
// Calculate corner-to-corner diameter of hexagon
c = d / cos(30);
// Define points for hexagon
points = [ [d/2, 0],
[c/2, d/2],
[-c/2, d/2],
[-d/2, 0],
[-c/2, -d/2],
[c/2, -d/2]
];
// Define circle for hole
hole_d = d * 0.7; // Diameter of hole
hole_r = hole_d / 2; // Radius of hole
hole = circle(r=hole_r);
// Create nut shape by subtracting circle from hexagon
nut = polygon(points) - hole;
// Extrude nut shape to create 3D object
linear_extrude(height=h) nut;
It starts using modules in expressions and assigning geometry
to variables. Not sure where it sees code like that.
I look forward to the day it can write useful code for me but
at
the moment it is always slightly flawed. It seems to learn
within
one chat but doesn't carry any of it forward to the next chat.
Bard seems nowhere near as intelligent and just produced what
looked like a structure definition of defining the size of a
dog's
features. Not even valid OpenSCAD code and no geometry.
On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss
discuss@lists.openscad.org wrote:
---------- Forwarded message ----------
From: jeremy ardley jeremy@ardley.org
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 6/4/23 18:32, Raymond West wrote:
Hi,
Has anyone been playing with this wrt openscad script
generation?
(https://chat.openai.com/chat). I have seen fairly
impressive
results
with it generating arduino code and python, I think there
are
more
examples of those on the web, for it to have 'studied'. I
experimented
a few months ago, with openscad, and it looked as if there
was
a
possibility of it being useful. More recently I have spent
some spare?
time trying to train it a bit more, but it is pretty
tedious,
it seems
to have little short term memory, but then it says
something
impressive, if you keep pressing it.
I have some recent experience with ChatGPT4 and ChatGPT3.5.
ChatGPT4 is
a lot better.
With both it is the quality of question and scope that
matters.
If you
ask a precise question with limited scope it will usually
produce a
workable result. If you ask an open ended question you will
get
less
relevant or accurate results.
You can also give it code bodies to identify problems.
The best strategy is to iterate through your project logic
and
get small
parts of it coded, then take the results of many questions
and
merge
them into your specific code.
You can also usefully describe the overall operation of some
code and
ask to have it broken up into smaller parts that you can
then
ask
specifics about each.
jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: jeremy ardley jeremy@ardley.org
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On Thu, 2023-04-06 at 20:52 +0100, nop head wrote:
Are you using https://chat.openai.com/chat? That just prompts with
"send a message".
Noe if I go to https://chat.openai.com/chat, I am asked for a password,
which I don't have because I logged into copy.ai with 'magic'.
If I try to create an account, I am told I already have an account.
image.png
On Thu, 6 Apr 2023 at 20:49, larry lar3ry@sasktel.net wrote:
On Thu, 2023-04-06 at 18:43 +0100, nop head wrote:
Seems like a different version to what I see. Easy to login and
just
type a question and hit enter.
I found a place that does just that. On my first attempt, I only
had a
place in the upper right to type things into . It was just below
the a
bunch of formatting icons, and hitting enter after typing in a
question
did nothing at all.
I closed the tab, and later on, brought it up again. Turns out I
was
still logged in, and now, a centre panel shows up with a box at the
bottom that says "Ask or search anything". THAT works.
On Thu, 6 Apr 2023 at 18:12, larry lar3ry@sasktel.net wrote:
On Thu, 2023-04-06 at 13:50 +0100, Raymond West wrote:
These results are similar to what I found.
So, I asked it the question...
raywest@raywest.com
would you like to write an email, asking the openscad mailing
list
members, if it would be useful for them to derive and submit
test
questions about openscad to chatgpt, in the hope that it
could be
trained to write correct openscad scripts? If so write the
email,
and
I'll post it on your behalf.
Someone should ask it how to write a web site that is actually
intuitive and usable.
"magic code" has to be entered into 6 boxes that are drawn
as
what
look like very thin, very light blue boxes on a white screen.
Each time I tried to log in with the 'magic', it sent me a
new
code,
which I did not realize for two reasons. (a) my email is
fetched
every
5 minutes, and (b) there was no other instruction other than a
cutesy
'let's try some magic', without specifying that it's part of
every
login.
So I finally got it figured out, and successfully logged into
ChatGPT
4. Typed in a question, and found no way to actually have it
proceed.
Not at all impressed.
Sure, I can draft an email for you. Here's one possible
version:
Subject: Seeking OpenSCAD test questions for ChatGPT training
Dear OpenSCAD Mailing List Members,
As a large language model trained on the GPT-3.5
architecture,
I'm
constantly learning and improving my ability to generate text
in
a
variety of contexts. Recently, I've been exploring the world
of
3D
modeling with OpenSCAD, and I'm excited about the potential
for
me to
be trained to write correct OpenSCAD scripts.
To that end, I'm reaching out to the OpenSCAD community to
see if
any
of you would be interested in deriving and submitting test
questions
related to OpenSCAD. These questions could cover a range of
topics,
from basic syntax and concepts to more advanced techniques
and
applications. The goal is to provide me with a diverse set of
examples that I can use to improve my understanding of
OpenSCAD
and
my ability to generate correct scripts.
If you're interested in contributing to this effort, please
feel
free
to reply to this email with your questions. Please keep in
mind
that
the questions should be focused on testing my knowledge and
abilities
related to OpenSCAD, and should not be overly complex or
esoteric.
Thank you for considering this request, and I look forward to
hearing
from you soon.
Best regards,
ChatGPT
(Not sure it is registered...)
On 06/04/2023 12:27, nop head wrote:
I have been playing with ChatGPT and OpenSCAD and find it
both
amazing that it has a go and disappointing it can't get
anything
completely correct.
This is the best result of asking it to design a 3D model
of a
dog.
image.png
It is amazing it has a mental model of an abstract dog. It
is
supposed to be a large language model so it should know
what
features a dog has in words but to know their geometric
shapes
and
relationships in 3D and also to know OpenSCAD syntax and
semantics is amazing considering it says it can't run the
code
itself or see pictures created by me.
Disappointingly, it always seems to fail at creating four
legs
at
the four corners. In this version they are stacked
vertically
above
each other so two are inside the body. Not sure why it is
upside
down. I didn't specify it was alive!
This is another attempt, somewhat worse. On this day, no
matter
how
many times I tried to correct it could never get
everything in
the
right place but it did make it brown.
image.png
I also asked it to make a 3D model of an M3 nut. After many
iterations it made this.
image.png
It is not quite the right size. Some iterations had the
correct
hexagon size but had z fighting or just a pocket in the
bottom.
It
was a struggle to get the subtracted cylinder correct.
I also suggested it could do the difference in 2D and
extrude
that
but it could never get the right. In some of those attempts
it
started using code that was not correct OpenSCAD code. E.g.
// Define variables
d = 10; // Across flats diameter
h = 5; // Nut height
// Calculate corner-to-corner diameter of hexagon
c = d / cos(30);
// Define points for hexagon
points = [ [d/2, 0],
[c/2, d/2],
[-c/2, d/2],
[-d/2, 0],
[-c/2, -d/2],
[c/2, -d/2]
];
// Define circle for hole
hole_d = d * 0.7; // Diameter of hole
hole_r = hole_d / 2; // Radius of hole
hole = circle(r=hole_r);
// Create nut shape by subtracting circle from hexagon
nut = polygon(points) - hole;
// Extrude nut shape to create 3D object
linear_extrude(height=h) nut;
It starts using modules in expressions and assigning
geometry
to variables. Not sure where it sees code like that.
I look forward to the day it can write useful code for me
but
at
the moment it is always slightly flawed. It seems to learn
within
one chat but doesn't carry any of it forward to the next
chat.
Bard seems nowhere near as intelligent and just produced
what
looked like a structure definition of defining the size of
a
dog's
features. Not even valid OpenSCAD code and no geometry.
On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss
discuss@lists.openscad.org wrote:
---------- Forwarded message ----------
From: jeremy ardley jeremy@ardley.org
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 6/4/23 18:32, Raymond West wrote:
>
> Hi,
>
> Has anyone been playing with this wrt openscad script
generation?
> (https://chat.openai.com/chat). I have seen fairly
impressive
results
> with it generating arduino code and python, I think
there
are
more
> examples of those on the web, for it to have
'studied'. I
experimented
> a few months ago, with openscad, and it looked as if
there
was
a
> possibility of it being useful. More recently I have
spent
some spare?
> time trying to train it a bit more, but it is pretty
tedious,
it seems
> to have little short term memory, but then it says
something
> impressive, if you keep pressing it.
>
I have some recent experience with ChatGPT4 and
ChatGPT3.5.
ChatGPT4 is
a lot better.
With both it is the quality of question and scope that
matters.
If you
ask a precise question with limited scope it will
usually
produce a
workable result. If you ask an open ended question you
will
get
less
relevant or accurate results.
You can also give it code bodies to identify problems.
The best strategy is to iterate through your project
logic
and
get small
parts of it coded, then take the results of many
questions
and
merge
them into your specific code.
You can also usefully describe the overall operation of
some
code and
ask to have it broken up into smaller parts that you can
then
ask
specifics about each.
jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss
discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: jeremy ardley jeremy@ardley.org
Bcc:
Date: Thu, 6 Apr 2023 18:54:42 +0800
Subject: [OpenSCAD] Re: chat-gpt
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to
discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I found it very easy to access and use. It’s possible you hit an especially busy time. So far I’ve not used it for OpenSCAD, but for Arduino code and more general questions. Such as suggesting a couple of hikes in Joshua Tree to my specification.
Overall I’m somewhat in awe of its ability.
--
Terry
On 6 Apr 2023, at 12:53, nop head <nop.head@gmail.com> wrote:
Are you using https://chat.openai.com/chat? That just prompts with "send a message".
<image.png>
On Thu, 6 Apr 2023 at 20:49, larry <lar3ry@sasktel.net> wrote:
On Thu, 2023-04-06 at 18:43 +0100, nop head wrote:
> Seems like a different version to what I see. Easy to login and just
> type a question and hit enter.I found a place that does just that. On my first attempt, I only had a
place in the upper right to type things into . It was just below the a
bunch of formatting icons, and hitting enter after typing in a question
did nothing at all.I closed the tab, and later on, brought it up again. Turns out I was
still logged in, and now, a centre panel shows up with a box at the
bottom that says "Ask or search anything". THAT works.> On Thu, 6 Apr 2023 at 18:12, larry <lar3ry@sasktel.net> wrote:
> > On Thu, 2023-04-06 at 13:50 +0100, Raymond West wrote:
> > > These results are similar to what I found.
> > > So, I asked it the question...
> > > raywest@raywest.com
> > >
> > > would you like to write an email, asking the openscad mailing
> > > list
> > > members, if it would be useful for them to derive and submit test
> > > questions about openscad to chatgpt, in the hope that it could be
> > > trained to write correct openscad scripts? If so write the email,
> > > and
> > > I'll post it on your behalf.
> >
> > Someone should ask it how to write a web site that is actually
> > intuitive and usable.
> >
> > 1. "magic code" has to be entered into 6 boxes that are drawn as
> > what
> > look like very thin, very light blue boxes on a white screen.
> >
> > 2. Each time I tried to log in with the 'magic', it sent me a new
> > code,
> > which I did not realize for two reasons. (a) my email is fetched
> > every
> > 5 minutes, and (b) there was no other instruction other than a
> > cutesy
> > 'let's try some magic', without specifying that it's part of every
> > login.
> >
> > So I finally got it figured out, and successfully logged into
> > ChatGPT
> > 4. Typed in a question, and found no way to actually have it
> > proceed.
> >
> > Not at all impressed.
> >
> > > Sure, I can draft an email for you. Here's one possible version:
> > > Subject: Seeking OpenSCAD test questions for ChatGPT training
> > > Dear OpenSCAD Mailing List Members,
> > > As a large language model trained on the GPT-3.5 architecture,
> > > I'm
> > > constantly learning and improving my ability to generate text in
> > > a
> > > variety of contexts. Recently, I've been exploring the world of
> > > 3D
> > > modeling with OpenSCAD, and I'm excited about the potential for
> > > me to
> > > be trained to write correct OpenSCAD scripts.
> > > To that end, I'm reaching out to the OpenSCAD community to see if
> > > any
> > > of you would be interested in deriving and submitting test
> > > questions
> > > related to OpenSCAD. These questions could cover a range of
> > > topics,
> > > from basic syntax and concepts to more advanced techniques and
> > > applications. The goal is to provide me with a diverse set of
> > > examples that I can use to improve my understanding of OpenSCAD
> > > and
> > > my ability to generate correct scripts.
> > > If you're interested in contributing to this effort, please feel
> > > free
> > > to reply to this email with your questions. Please keep in mind
> > > that
> > > the questions should be focused on testing my knowledge and
> > > abilities
> > > related to OpenSCAD, and should not be overly complex or
> > > esoteric.
> > > Thank you for considering this request, and I look forward to
> > > hearing
> > > from you soon.
> > > Best regards,
> > > ChatGPT
> > >
> > > (Not sure it is registered...)
> > >
> > > On 06/04/2023 12:27, nop head wrote:
> > >
> > > >
> > > > I have been playing with ChatGPT and OpenSCAD and find it both
> > > > amazing that it has a go and disappointing it can't get
> > > > anything
> > > > completely correct.
> > > >
> > > > This is the best result of asking it to design a 3D model of a
> > > > dog.
> > > >
> > > > image.png
> > > >
> > > > It is amazing it has a mental model of an abstract dog. It is
> > > > supposed to be a large language model so it should know what
> > > > features a dog has in words but to know their geometric shapes
> > > > and
> > > > relationships in 3D and also to know OpenSCAD syntax and
> > > > semantics is amazing considering it says it can't run the code
> > > > itself or see pictures created by me.
> > > >
> > > > Disappointingly, it always seems to fail at creating four legs
> > > > at
> > > > the four corners. In this version they are stacked vertically
> > > > above
> > > > each other so two are inside the body. Not sure why it is
> > > > upside
> > > > down. I didn't specify it was alive!
> > > >
> > > > This is another attempt, somewhat worse. On this day, no matter
> > > > how
> > > > many times I tried to correct it could never get everything in
> > > > the
> > > > right place but it did make it brown.
> > > >
> > > >
> > > > image.png
> > > >
> > > > I also asked it to make a 3D model of an M3 nut. After many
> > > > iterations it made this.
> > > >
> > > > image.png
> > > >
> > > > It is not quite the right size. Some iterations had the correct
> > > > hexagon size but had z fighting or just a pocket in the bottom.
> > > > It
> > > > was a struggle to get the subtracted cylinder correct.
> > > >
> > > > I also suggested it could do the difference in 2D and extrude
> > > > that
> > > > but it could never get the right. In some of those attempts it
> > > > started using code that was not correct OpenSCAD code. E.g.
> > > >
> > > > // Define variables
> > > > d = 10; // Across flats diameter
> > > > h = 5; // Nut height
> > > >
> > > > // Calculate corner-to-corner diameter of hexagon
> > > > c = d / cos(30);
> > > >
> > > > // Define points for hexagon
> > > > points = [ [d/2, 0],
> > > > [c/2, d/2],
> > > > [-c/2, d/2],
> > > > [-d/2, 0],
> > > > [-c/2, -d/2],
> > > > [c/2, -d/2]
> > > > ];
> > > >
> > > > // Define circle for hole
> > > > hole_d = d * 0.7; // Diameter of hole
> > > > hole_r = hole_d / 2; // Radius of hole
> > > > hole = circle(r=hole_r);
> > > >
> > > > // Create nut shape by subtracting circle from hexagon
> > > > nut = polygon(points) - hole;
> > > >
> > > > // Extrude nut shape to create 3D object
> > > > linear_extrude(height=h) nut;
> > > >
> > > > It starts using modules in expressions and assigning geometry
> > > > to variables. Not sure where it sees code like that.
> > > >
> > > > I look forward to the day it can write useful code for me but
> > > > at
> > > > the moment it is always slightly flawed. It seems to learn
> > > > within
> > > > one chat but doesn't carry any of it forward to the next chat.
> > > >
> > > > Bard seems nowhere near as intelligent and just produced what
> > > > looked like a structure definition of defining the size of a
> > > > dog's
> > > > features. Not even valid OpenSCAD code and no geometry.
> > > >
> > > > On Thu, 6 Apr 2023 at 11:55, jeremy ardley via Discuss
> > > > <discuss@lists.openscad.org> wrote:
> > > >
> > > > >
> > > > >
> > > > >
> > > > > ---------- Forwarded message ----------
> > > > > From: jeremy ardley <jeremy@ardley.org>
> > > > > To: discuss@lists.openscad.org
> > > > > Cc:
> > > > > Bcc:
> > > > > Date: Thu, 6 Apr 2023 18:54:42 +0800
> > > > > Subject: [OpenSCAD] Re: chat-gpt
> > > > >
> > > > > On 6/4/23 18:32, Raymond West wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Has anyone been playing with this wrt openscad script
> > > > > generation?
> > > > > > (https://chat.openai.com/chat). I have seen fairly
> > > > > impressive
> > > > > results
> > > > > > with it generating arduino code and python, I think there
> > > > > are
> > > > > more
> > > > > > examples of those on the web, for it to have 'studied'. I
> > > > > experimented
> > > > > > a few months ago, with openscad, and it looked as if there
> > > > > was
> > > > > a
> > > > > > possibility of it being useful. More recently I have spent
> > > > > some spare?
> > > > > > time trying to train it a bit more, but it is pretty
> > > > > tedious,
> > > > > it seems
> > > > > > to have little short term memory, but then it says
> > > > > something
> > > > > > impressive, if you keep pressing it.
> > > > > >
> > > > >
> > > > > I have some recent experience with ChatGPT4 and ChatGPT3.5.
> > > > > ChatGPT4 is
> > > > > a lot better.
> > > > >
> > > > > With both it is the quality of question and scope that
> > > > > matters.
> > > > > If you
> > > > > ask a precise question with limited scope it will usually
> > > > > produce a
> > > > > workable result. If you ask an open ended question you will
> > > > > get
> > > > > less
> > > > > relevant or accurate results.
> > > > >
> > > > > You can also give it code bodies to identify problems.
> > > > >
> > > > > The best strategy is to iterate through your project logic
> > > > > and
> > > > > get small
> > > > > parts of it coded, then take the results of many questions
> > > > > and
> > > > > merge
> > > > > them into your specific code.
> > > > >
> > > > > You can also usefully describe the overall operation of some
> > > > > code and
> > > > > ask to have it broken up into smaller parts that you can
> > > > > then
> > > > > ask
> > > > > specifics about each.
> > > > >
> > > > > jeremy
> > > > >
> > > > >
> > > > >
> > > > > ---------- Forwarded message ----------
> > > > > From: jeremy ardley via Discuss <discuss@lists.openscad.org>
> > > > > To: discuss@lists.openscad.org
> > > > > Cc: jeremy ardley <jeremy@ardley.org>
> > > > > Bcc:
> > > > > Date: Thu, 6 Apr 2023 18:54:42 +0800
> > > > > Subject: [OpenSCAD] Re: chat-gpt
> > > > > _______________________________________________
> > > > > OpenSCAD mailing list
> > > > > To unsubscribe send an email to
> > > > > discuss-leave@lists.openscad.org
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > OpenSCAD mailing list
> > > > To unsubscribe send an email to
> > > > discuss-leave@lists.openscad.org
> > > _______________________________________________
> > > OpenSCAD mailing list
> > > To unsubscribe send an email to discuss-leave@lists.openscad.org
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On 7/4/23 13:23, Terry Pinnell wrote:
I found it very easy to access and use. It’s possible you hit an
especially busy time. So far I’ve not used it for OpenSCAD, but for
Arduino code and more general questions. Such as suggesting a couple
of hikes in Joshua Tree to my specification.
Overall I’m somewhat in awe of its ability.
--
Terry
I've been using ChatGPT 3.5 and 4 along with Github CodePilot for about
2 months now.
My brief experiment with OpenSCAD code says it's training is pretty
deficient compared to say Python or javascript. It will probably improve
but for now you have to ask questions in very small chunks. Also, 3.5 is
not very good. You get better results with 4.
If you say "Give me an OpenSCAD script to generate an M6 hex head bolt
with 25 mm shank and 3mm thick head" it will return a flat hex head of
the right thickness and a rod for the threaded part without any threads.
// M6 Hex Head Bolt
// Shank Length: 25mm
// Head Thickness: 4mm
// Parameters
shank_diameter = 6;
shank_length = 25;
head_thickness = 4;
hex_size = 10; // Across flats for M6
module hex_head() {
cylinder(d1=hex_size, d2=hex_size, h=head_thickness, $fn=6);
}
module bolt_shank() {
cylinder(d=shank_diameter, h=shank_length, $fn=32);
}
// Main Assembly
translate([0, 0, 0]) {
hex_head();
}
translate([0, 0, head_thickness]) {
bolt_shank();
}
You can then progress this slowly by suggesting using a thread library.
However, you quickly run into the limitations of GPT4 that is it
deliberately outputs very slowly, you only get 25 prompts per 4 hours,
and often it won't finish outputting a script. This requires you to ask
questions with short answers to increment your solution and try to stop
it outputting the entire script again.
e.g.
"give me just the script necessary to add threads from a thread library
to the shank and show me where to insert this"
So it works, but it will take some effort and patience.
It does know about https://github.com/openscad/MCAD but it's a couple of
years out of date on what's there and often with other links they have
already faded.
Jeremy