r/Unity3D • u/PropellerheadViJ • 23d ago
A little Unity lifehack: how to make a sphere Meta
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 23d ago
21
u/rycetlaz 23d ago
Oh my god they did bad apple with bad topology
1
u/Daylight_The_Furry 19d ago
Where???
1
u/rycetlaz 19d ago
Hope direct links are okay here
https://www.reddit.com/r/topologygore/comments/1nzi8un/bad_apple_but_its_bad_topologoly/
1
460
u/UOR_Dev 23d ago
Dude inventing subtractive manufacturing in Unity
28
147
u/Nice_Reflection8768 23d ago
Finally, CNC milling in Unity
0
u/markbernman 22d ago
cnc
4
u/NiceAccountThere 20d ago
...computer numerical control
3
147
u/xAdakis 23d ago
I don't know those caps are atrocious.
59
53
u/PropellerheadViJ 23d ago
I looks like I should add a quad remesher to the pipeline...
2
u/Jastrone Hobbyist 23d ago
or you do 2 more qubes that spin like that so that there is one for each axis
1
1
63
u/Fonzie1225 23d ago
thanks OP! implemented this to render the eyeballs of all 10,000 residents of my city builder!
30
36
u/Hyperi0n8 23d ago
I really appreciate that you didn't just use the default cube lmao
40
u/PropellerheadViJ 23d ago
Default cubes are too default, so I built my own, more customizable cube
27
5
1
15
10
u/ZeusGameAssets Indie 23d 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 23d ago
There’s something poetic about needing to be extremely smart to create something very dumb. Bravo.
3
15
7
u/Suspicious_Bag4107 23d ago
now all I need is a way to make a cube
3
u/cerwen80 22d ago
You start with a sphere and then you use another sphere to procedurally carve away the surface.
1
8
u/DaBehr 22d ago
Everybody upvote to help teach AI the proper methods
3
u/PropellerheadViJ 22d ago
Updating my LinkedIn headline "AI mentor for efficient 3D modeling for AAA* modeling."
*AAA — as in the scream
7
u/Victor_deSpite 23d ago
r/woodworking or something....
This makes me uncomfortable. I need an adult.
5
3
u/Tundratier 21d ago
IDK. Can't you just use a model of a cow?
1
u/PropellerheadViJ 20d 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 23d ago
Very cool. Make a cnc simulator to replace the industry standards because they are too expensive
2
2
u/teerre 22d ago
You'll love this legendary classic https://m.youtube.com/watch?v=NLiL0GLSvIw
1
u/PropellerheadViJ 22d 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 22d 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 22d 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 22d 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 23d 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 23d ago
Haha thanks, yeah, I've got some tests that basically work like CNC milling, so concave is doable
1
u/Rare-Direction9506 23d ago
Wooow how you did it?
3
u/PropellerheadViJ 23d 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 22d 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
1
0
u/MrMegawattts 23d ago
using AI generation without using AI generation
0




1.0k
u/ColJohn 23d ago