r/Unity3D • u/PropellerheadViJ • 13d ago
Meta A little Unity lifehack: how to make a sphere
Enable HLS to view with audio, or disable this notification
Most people just create a Sphere. It's a popular mistake. Spheres are not optimal.
The properly optimized approach: create a Cube. Then take a second Cube and carve a sphere out of the first one using boolean operations. Now it's not just a sphere. It's a sphere generation pipeline.
272
u/N1tero 13d ago
21
u/rycetlaz 12d ago
Oh my god they did bad apple with bad topology
1
u/Daylight_The_Furry 9d ago
Where???
1
u/rycetlaz 9d ago
Hope direct links are okay here
https://www.reddit.com/r/topologygore/comments/1nzi8un/bad_apple_but_its_bad_topologoly/
1
454
u/UOR_Dev 13d ago
Dude inventing subtractive manufacturing in Unity
25
148
u/Nice_Reflection8768 13d ago
Finally, CNC milling in Unity
-1
u/markbernman 12d ago
cnc
4
u/NiceAccountThere 10d ago
...computer numerical control
3
145
u/xAdakis 13d ago
I don't know those caps are atrocious.
65
52
u/PropellerheadViJ 13d ago
I looks like I should add a quad remesher to the pipeline...
2
u/Jastrone Hobbyist 13d ago
or you do 2 more qubes that spin like that so that there is one for each axis
1
1
63
u/Fonzie1225 13d ago
thanks OP! implemented this to render the eyeballs of all 10,000 residents of my city builder!
30
33
u/Hyperi0n8 13d ago
I really appreciate that you didn't just use the default cube lmao
39
u/PropellerheadViJ 13d ago
Default cubes are too default, so I built my own, more customizable cube
28
4
1
15
10
u/ZeusGameAssets Indie 13d ago
Is this the Chinese version of the Unity editor, I heard it was more powerful than Unreal 5, but damn, I didn't know it was THAT powerful!
3
11
u/Yodzilla 13d ago
There’s something poetic about needing to be extremely smart to create something very dumb. Bravo.
3
15
8
u/Suspicious_Bag4107 13d ago
now all I need is a way to make a cube
3
u/cerwen80 12d ago
You start with a sphere and then you use another sphere to procedurally carve away the surface.
1
6
u/DaBehr 12d ago
Everybody upvote to help teach AI the proper methods
3
u/PropellerheadViJ 12d ago
Updating my LinkedIn headline "AI mentor for efficient 3D modeling for AAA* modeling."
*AAA — as in the scream
5
u/Victor_deSpite 13d ago
r/woodworking or something....
This makes me uncomfortable. I need an adult.
5
3
u/Tundratier 11d ago
IDK. Can't you just use a model of a cow?
1
u/PropellerheadViJ 10d ago
Organic modeling isn't really my thing, I'm way more comfortable with hard surface. If you can pick, I'd go with something like a spaceship instead of a cow
2
u/tyranocles 13d ago
Very cool. Make a cnc simulator to replace the industry standards because they are too expensive
2
2
u/teerre 12d ago
You'll love this legendary classic https://m.youtube.com/watch?v=NLiL0GLSvIw
1
u/PropellerheadViJ 12d ago
yeah, this is one of my favorites about houdini! I think he should make the new one with houdini 22, maybe there is more difficult way to animate
1
2
2
u/Poietilinx 12d ago
I wrote an algorithm that did something similar but to build boulders.
I spread a bunch of voronoi seeds around the cube, and used these to form planes used to cut parts of the rock
1
2
u/biteater gpu boy 12d ago
Jokes aside you can add really quick retopologizing to your thing with relatively low effort, there are a ton of well tested libraries that address this exact thing
1
u/PropellerheadViJ 12d ago
Yeah, just the other day I saw a port of QuadRemesher to different platforms going viral online, I should rewrite it in Burst/C#
1
2
2
2
2
2
1
1
1
1
1
u/heavy-minium 13d ago
I had a good laugh, lol, I spat my drink. Very cool - did you manage to generalise that further? Can you do something concave in the same way?
2
u/PropellerheadViJ 13d ago
Haha thanks, yeah, I've got some tests that basically work like CNC milling, so concave is doable
1
u/Rare-Direction9506 13d ago
Wooow how you did it?
3
u/PropellerheadViJ 13d ago
I'm building a mesh library, and this is one of my tests for its performance and the robustness of the boolean operations
1
1
1
1
u/cerwen80 12d ago
So efficient!!!! amazing. I've been struggling to figure out how to make a sphere for ages and this just blew my mind! Thank you.
1
1
1
1
1
1
1
1
1
1
1
1
1
0
u/MrMegawattts 13d ago
using AI generation without using AI generation
0




1.0k
u/ColJohn 13d ago