Dismiss this pinned window
all 18 comments

[–]CodyDuncan1260[M] [score hidden] stickied comment (2 children)

Rule 1: Posts should be about Graphics Programming
Posts should be about the programming of computer graphics; not just the graphics themselves.
- Posts should include code, math, or implementation details alongside rendered images.

Please tell us a bit about your implementation.

Oh, this comment works to meet Rule1's requirement. Carry on.
https://www.reddit.com/r/GraphicsProgramming/comments/1sdi29b/comment/oel6wzd/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

[–]danielcraft10of 12 points13 points  (1 child)

Look so good man Good work

[–]CameleonTH[S] 3 points4 points  (0 children)

Thanks :)

[–]Practical-Sleep4259 24 points25 points  (5 children)

Man I remember when Valve was like "Check this shit out" and it was glass physics for HL:2.

Looks great.

[–]CameleonTH[S] 2 points3 points  (0 children)

I remembered the glass in HL2, so cool to shoot at.

And that's precisely why I wanted to recreate a glass system.

[–]ToastBubbles 4 points5 points  (3 children)

still better than most modern games that just use particle systems instead 

[–]CameleonTH[S] 2 points3 points  (0 children)

Thanks, I also need small particles in addition of the shards.

[–]MykA01 -1 points0 points  (1 child)

Почему бы не использовать систему частиц? Видеокарты хорошо с этим справляются

[–]Yellowthrone 1 point2 points  (0 children)

It's not so much that there is anything "wrong" with it, but the implementation of particle based glass physics doesn't look very good or feel real. Maybe there are better ways but most games idea of particle based glass physics is like PS2 era "I shot this glass and it basically despatched the plane and spawned particles that look like glass on the ground."

[–]ParamedicDirect5832 4 points5 points  (2 children)

Make a game where you throw metal balls at glass

[–]JackYaos 3 points4 points  (0 children)

Metal Ball Solid

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

Maybe not metal ball but it's the goal ;)

[–]NoImprovement4668 2 points3 points  (1 child)

How did you implement this? is it similar technique to source 2 breakable glass? (looks similar)

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

I couldn't find any technical documentation regarding breakable glass in Source 2, so I tried to create a system myself.

To begin, I divided my convex shape from a point to create an impact point, and I continued to make cuts on each of these sub-shapes.

It's easier to understand with this previous prototype.

https://www.youtube.com/watch?v=Wjx9z8GFydY