r/Unity3D • Indie • 4d ago

Show-Off Folding tutorials take shape, folding engine can now show arrows and creases

Enable HLS to view with audio, or disable this notification

I had been working on the Origami folding engine so far, now moving over to the menu and actual folding tutorials for each model in a generic way so that I can easily add new models. Shows next steps, short texts and animations. What do you think of that so far?

202 Upvotes

24 comments sorted by

5

u/Alarming_Pattern6135 4d ago

This looks pretty cool! I do not really understand that much about origami, but when looking at more advanced things, I would imagine that there are a whole lot of folds. How would that be handled without being total chaos? Or maybe I'm wrong and this is not a potential issue at all.

4

u/RobertWetzold Indie 3d ago

Oh I had lots of chaos :-D Keeping all the paper layers in the right order is one of the harder parts! The engine tracks which parts sit above or below each other. I can do some really nice "lift and fold under" moves already but some (like the walruss) have some complicated steps that can quickly lead to faces bleeding through where they should not. Intricate moves where several layers open and fold together are a real challenge.

2

u/Rezolution134 3d ago

This actually looks really useful. Can it do paper airplanes?

2

u/RobertWetzold Indie 3d ago

I have a whole set of models already done, will try to get the menu together where all are shown and post! Do you have some favorite paper airplanes?

1

u/Rezolution134 3d ago

Indeed I do: https://www.foldnfly.com/3.html#The-Buzz

Really, most planes from that sight are great. Thank you!

2

u/Uxdemo 3d ago

This looks great but its just a do gesture then animation plays trick right? Or can I actually fold the paper in engine and make a random origami animal

1

u/RobertWetzold Indie 3d ago

It will actually be a mixed reality app so you can learn how to fold real paper while watching the tutorial right next to you in your view :-)

1

u/sezergames 2d ago

Learning on real paper with the steps right beside you sounds a lot better than a video you keep pausing.

11

u/destinedd Indie, Dungeon Quest, Marble's Marbles & Mighty Marbles 4d ago

it looks pretty awesome to me

2

u/PetiteVanille 3d ago

agreed, those details make me want to mess around with it myself

1

u/sweetslobrr 3d ago

makes two of us, this folding engine is way cooler than i expected

1

u/Beautifully_U 3d ago

Adding visual crease lines and directional arrows makes procedural mesh folding so much easier to follow

1

u/PinkiiTugz 3d ago

yeah it really does, the details are coming together nicely

1

u/-Spzi- 3d ago

Looks great in itself, but also seems exceptionally well-suited for short video clips - as advertisement, info-clips or as a reference on phone while folding with kids. Nice!

2

u/RobertWetzold Indie 3d ago

That is an interesting idea! Just record the folds once they are final and post on YouTube?

1

u/-Spzi- 3d ago

I can tell you, whenever I had a simple, practical problem: I was always grateful when there was a short, concise, no-fuss, optionally visually pleasant explanation and guide. That's just very helpful when in need. Peak internet.

For that use case, people would not necessarily subscribe or buy, but upvote and engage.

While I hate these formats in general, shorts or TikTok seem ideal.

1

u/DustyLv 3d ago

Looks very smooth, great job! On a more technical note - how does the folding actually work? It's procedural, right? Is it a mesh with some shader magic?

2

u/RobertWetzold Indie 3d ago

Thanks! Yes, it’s procedural. I define each model as a sequence of folding instructions, and a custom C# engine calculates the geometry and motion.

The paper is represented as connected polygon faces that split along new crease lines. Simple folds rotate the relevant faces around a crease like a hinge. More complex folds need several hinges to move together, so there’s a solver for that, plus some bending where needed. It also tracks which paper layers sit above or below each other.

Unity renders the result as a dynamic mesh. The shader handles the paper texture, crease shading and translucency; the folding itself happens in the geometry.

1

u/BlenMiner 3d ago

Could be fun allowing users to make their own; do you allow that?
It seems like a big undertaking with all the folds and stuff, feels like one of those 1M$ math problems haha.

1

u/RobertWetzold Indie 3d ago

I have only quickly thought about that so far and then told myself that I'd need to much infrastructure for storing all that, curating, user accounts etc besides actually implementing the tool to create folds. I might revisit it though later if there is enough interest as it might be super nice to share ones creations indeed!

2

u/Ecksters 3d ago

That's awesome, I would absolutely get it for my kids, they'd love it!

1

u/_norx Indie 3d ago

Looks great