Using ChatGPT AI and Three.JS to Help Code 3D Games

For one thing, I needed a regular expression. I had not done that for a long time. The solution from chatGPT delivered was what I wanted.

Then I tried to use chatGPT to help with this example.
Create circle with fuzzy edge made of individual random particles - #10 by hofk => SphereWithRandomPointsl
That went pretty wrong.

As a first solution I was offered to set the points on the intersections of longitudes and latitudes. This is not random but even distribution. The code itself was suitable for beginners.

I objectively criticized the result and got a “You’re right …”

The next proposal was interesting but far from the requirement.

It was a Spiral - Wikipedia : Spherical spiral on which the points were evenly spaced.

Upon further inquiry, chatGPT behaved almost humanely. Like an expert who is at a loss, but gives many general hints. Some of them off-target to disguise the fact that he doesn’t know everything either.

I found the solution in a German mathematics forum that has nothing to do with programming. It was about the pure mathematical problem.
There it becomes clear that only what was present in the training material can appear in solutions.

In the future, the system should also be able to access content online at some point. Then it will look different again.

2 Likes