Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (777)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Dynamically produce a shatter pattern  (Read 1523 times)
0 Members and 1 Guest are viewing this topic.
Offline quew8

JGO Knight

Medals: 53

« Posted 2016-10-25 16:50:11 »

So over the past few weeks I've been working a lot on overlaying the shatter pattern you get from something like glass. Example:

Now you can mess around a lot with these types of images to produce nice effects in static imagery but I'd quite like to produce a more dynamic experience where you can see the shatter grow over time - I've experimented with expanding/shrinking the image and clipping it off with expanding circles but you can only do so much particularly with regards to directing the shatter.

With this in mind does anyone know of any material on procedurally generating similar patterns? It strikes me that it is a similar pattern to lighting or spider webs and I have definitely seen this generated.

Any ideas would be greatly appreciated. Thank you
Offline Catharsis

JGO Ninja

Medals: 75
Projects: 1
Exp: 21 years

TyphonRT rocks!

« Reply #1 - Posted 2016-10-25 17:46:28 »

I like the only answer on this forum post. It brings up BSP trees and links to a discussion from the developer of Smash Hit. You can start playing around with things in 2D as far as choosing arbitrary planes near an impact point.

A seemingly nice tutorial on BSP trees for Java; page 1, 2, & 3 (with 2D BSP Java source).

So from the point of impact you can choose some semi-random planes and continue subdividing and creating polygons and perhaps continue to draw outward and perhaps apply some unique shader effects to the edges.. I'm sure a bit of experimentation would be necessary. Then from there it's kind of going the route of the Smash Hit info above for 3D.

Not a glass shatter video, but something someone made with Java2D.

Check out the TyphonRT Video Suite:

Founder & Principal Architect; TyphonRT, Inc.
Pages: [1]
  ignore  |  Print  

hadezbladez (331 views)
2018-11-16 13:46:03

hadezbladez (172 views)
2018-11-16 13:41:33

hadezbladez (329 views)
2018-11-16 13:35:35

hadezbladez (80 views)
2018-11-16 13:32:03

EgonOlsen (2171 views)
2018-06-10 19:43:48

EgonOlsen (2199 views)
2018-06-10 19:43:44

EgonOlsen (1375 views)
2018-06-10 19:43:20

DesertCoockie (2001 views)
2018-05-13 18:23:11

nelsongames (1643 views)
2018-04-24 18:15:36

nelsongames (2294 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!