Creative Coding in Roblox!

If you guys are interested in the maths behind this, this video seems to cover lots of equations that will be useful too you. https://www.youtube.com/watch?v=DPfxjQ6sqrc

3 Likes

This is amazing. I have no words- Very smooth animations, I love it.

4 Likes

Are these ui based animations?

4 Likes

Nope, every animation is done in the workspace!

3 Likes

LOL
I love your creations, their animations are smooth, light and precise. The color combination is perfect.
You have a lot of talent, brother developer.
:upside_down_face:

2 Likes

Thank you, I really appreciate the support!

1 Like

WoW, you did a good job. I hope this Topic stays a thing :slight_smile:

2 Likes

This was pretty gnarly to watch. I felt like I was watching an ASMR film. Keep up the excellent work!

1 Like

I’m interested in the first two and the bouncing balls one, any chance you could share the math used on those three?

1 Like

#1 I dont have a name lol, magic sphere?
Anyways it was actually implemented from the map function used in the P5 Library in Javascript.

#2 Fibonacci Sphere:

function fibonacci_sphere(samples, Formation)
	local points = {}
	local phi = math.pi * (3. - math.sqrt(5.))  -- golden angle in radians
    for i = 1, samples do
        local lat = (asin(-1.0 + 2.0 * i / (samples+1))) * Formation;
        local lon = (ga * i) * Formation;

        local x = cos(lon)*cos(lat);
        local y = sin(lon)*cos(lat);
        local z = sin(lat);

        table.insert(points, Vector3.new(x, z, y));
    end
    
    return points;
end

local points = fibonacci_sphere(500, 1)

And create Parts on number in the table of points

3# Glow Droplets:
I Just used gravity, touched, and raycasting(because .touched can be funny)
GlowDroplets.rbxm (32.4 KB)

5 Likes

I’ve really only touched essential core math concepts and never used things like Fibonacchi curve and etc.

Would be interested to know what other mathematical concepts can create oddly satisfying stuff too.

Thank you for sharing the knowledge.

1 Like

Look up creative coding you can learn concepts from there as well as the coding train!

1 Like

Oh I didn’t know this was an actualized genre? Is creative coding just something made for making oddly satisfying stuff or for fun? Does it have any practical use?

1 Like

Also what is ga supposed to be within the script? I can assume the rest are just variables for their mathematical functions for shortening purposes.

1 Like

can you send the line in which you are referring to?

As far as practical uses go, you could implement them in to loading screens and or icons

local lon = (ga * i) * Formation;

1 Like
local cos = math.cos
local sin = math.sin
local asin = math.asin
local sqrt = math.sqrt
local M_PI = math.pi
local gr=(sqrt(5.0) + 1.0) / 2.0
local ga=(2.0 - gr) * (2.0*M_PI);
1 Like

What does gr, ga, phi, lat, lon mean? :thinking:

gr I assume might be golden ratio?

1 Like

Some pretty cool computational geometry you got there! What distribution are you using for the points-on-sphere gif?

1 Like

gr = golden ratio
ga = golden angle
phi = golden angle in radians in the script
lat = latitude
lon = longitude