xDeltaXen
(xDeltaXen)
October 4, 2020, 8:40pm
#1
What do you want to achieve?
I want a way to generate 3D triangles using math

What is the issue?
I’m not quite sure how to do this

What solutions have you tried so far?
I’ve looked on youtube discord and Dev hub.

My other threads about generating shapes:

What do you want to achieve?
I want to be able to generate hollow Cylinders using math.
What is the issue?
I do not know the math used to generate Cylinders. I only know the math for a circle and Sphere.
What solutions have you tried so far?
I have tried asking in various discords. Looked on Google and Dev forum.
Circle Generation.
local Radius = 1
local Circle = math.pi * 2
local Amt = 10000
for Number = 1, Amt do
local Angle = Circle / Amt * Number
local X = math.sin(Angle) *…
What do you want to achieve?
I want to be able to generate Cuboid using math.
What is the issue?
I do not know the math used to generate Cuboid. I only know the math for a circle.
What solutions have you tried so far?
I have tried asking in various discords.
Circle Generation.
local Radius = 1
local Circle = math.pi * 2
local Amt = 10000
for Number = 1, Amt do
local Angle = Circle / Amt * Number
local X = math.sin(Angle) * Radius
local Z = math.cos(Angle) * Radius
end
Sphere …
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve?
I want to be able to generate spheres using math.
What is the issue?
I do not know the math used to generate spheres. I only know the math for a circle.
What solutions have you tried so far?
I have tried asking in various discords.
Circle Generation.
local Radius = 1
local Circle = math.pi * 2
local Amt = 10000
for Number = 1, Amt do
local Angle = Circle / Amt * Numbe…
Also: Perlin Noise:

Adding Custom Structures Into Perlin Noise? / Voxel Generation

Why?

I’m making a game using procedural generation like No man’s sky and Minecraft. So if anyone can help that would be nice.

Also if anyone could direct me to some threads about math that would also be good ;).

1 Like

AstroCode
(AstroCode)
October 4, 2020, 8:44pm
#2
Could you clarify what you mean by hollow triangle? Is it just the edges of a triangle in 3D space, a triangular prism, or something else?

xDeltaXen
(xDeltaXen)
October 4, 2020, 8:48pm
#3
Yes a 3D triangle is what I want to generate.

Okeanskiy made one of the best tutorials I have ever watched:

He used egoMoose’s 3d triangle thingy.(I forgot what it is called )

2 Likes

AstroCode
(AstroCode)
October 4, 2020, 8:56pm
#5
Delta can clarify, but I think he needs just the outline of the triangles, not full wedges.

@xDeltaXen Which type of joins do you want? Note that round is the easiest.

xDeltaXen
(xDeltaXen)
October 4, 2020, 9:01pm
#6
I just want to start of with making a 5 sided triangle made out of parts first

AstroCode
(AstroCode)
October 4, 2020, 10:11pm
#7
Ah, ok. So a triangular prism made up of 5 faces?

xDeltaXen
(xDeltaXen)
October 4, 2020, 10:30pm
#8
Kinda, Made up of more parts like

```
local Part = Instance.new("Part")
Part.Positon etc
Math = etc
Part.Position = etc
Part.Parent = workspace
```

Not just made up of 5 parts like the cuboid sphere and cylinder I linked.

AstroCode
(AstroCode)
October 4, 2020, 10:38pm
#9
Yes, I understand how to generate shapes with code. I’m trying to clarify that you want to be able to generate a triangular prism that looks like the image I posted.

xDeltaXen
(xDeltaXen)
October 4, 2020, 11:11pm
#10
Yes, very much so I want to be able to generate many many shapes. But a triangle with more parts than five.

AstroCode
(AstroCode)
October 4, 2020, 11:17pm
#11
I truly have no idea what you’re asking for. Can you provide an image?

xDeltaXen
(xDeltaXen)
October 4, 2020, 11:23pm
#12

Like this only a 3D triangle. As you can see its not made of 6 Parts its made of loads of tiny parts. Do you understand it better now?

1 Like

xDeltaXen
(xDeltaXen)
October 5, 2020, 12:09am
#13
Also do you know how to generate other shapes as well?

1 Like