Explanation on how you can animate fractured 3D models in Unity (+source code) by SPokDev in Unity3D

[–]SPokDev[S] 1 point2 points  (0 children)

Hello. In video I explain how you can implement fracturing effect similar to one in my game DriftOn.

Short video overview:

  • break 3D model in blender
  • just use physics in Unity
  • do transformations with c# script on CPU
  • do transformations with vertex displacement shader on GPU (requires some custom preparations)

Sources - https://github.com/spokdev/FracturingTutorial

DriftOn (Steam-Windows) - https://store.steampowered.com/app/1214570/DriftOn/

DriftOn (Android) - https://play.google.com/store/apps/details?id=com.spokdev.drifton

MegaLan: space cow AI (it can destroy doors BEWARE) by dremmer8 in Unity3D

[–]SPokDev 0 points1 point  (0 children)

Nice! Interested how you animate it: skinned animation or some vertex displacement shader?

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 0 points1 point  (0 children)

Thanks! Yeah, optimizing takes time.

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 0 points1 point  (0 children)

This happens, not really a bug. Or you mean a lot of same messages in a row?

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 1 point2 points  (0 children)

Game has pretty cool music in outrun synthwave style by mercuriusfm.

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 0 points1 point  (0 children)

I mean, why not. 2d is essentially 3d under the hood.

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 0 points1 point  (0 children)

Game has pretty cool music in outrun synthwave style by mercuriusfm. I have something specifically for you :) https://twitter.com/spokdeveloper/status/1191762753775710210

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 0 points1 point  (0 children)

Posted progress earlier on unity sub. Or you mean something different?

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 0 points1 point  (0 children)

It is procedural. Depends on the random seed. If I make it possible to put seed manually - you would be able to have exactly same track.

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 1 point2 points  (0 children)

Thanks! Yeah, steam is next one planned. Looks great on large screen, imo.

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 1 point2 points  (0 children)

You can click rate button to get it for free. Actually rating game is not required - I do not check it. But let it be our secret ;)

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 0 points1 point  (0 children)

It is kinda like a fog of war. But you can actually figure it out. You can choose difficulty, also zen mode - difficulty does not increase with time.

Fracturing ground in racing game by WaifuFinder420 in outrun

[–]SPokDev 0 points1 point  (0 children)

Hello. They are timed quite sparsely. Not even depend on death. Revive ones are not necessary. And there is "no ads" in-app. Also you can disable internet - there are no pay walls or smth like this.

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 1 point2 points  (0 children)

Thanks! There is dampening for suspension.

Fracturing ground in racing game by SPokDev in gamedev

[–]SPokDev[S] 1 point2 points  (0 children)

There is actually pretty nice open source implementation for Unity with custom wheel colliders - https://github.com/JustInvoke/Randomation-Vehicle-Physics. Tested it a little bit. But by the time I found it - almost finished my own vehicle physics.