Sonic and Sega Retro Message Board: GL shatter effect? - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked Forum

GL shatter effect?

#1 User is offline GerbilSoft 

Posted 13 May 2014 - 02:42 PM

  • RickRotate'd.
  • Posts: 2846
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:5,000 + one spin
I'm working on a new version of my Jeopardy! game, and I'm trying to improve the intro animation. Currently, the globe just fades out, which looks okay, but isn't even close to how it actually showed up on the original TV show.

Here's a clip of what I want it to look like:

In my game, the globe is generated using gluSphere(). What would I need to do in order to get a shatter effect similar to the one seen in the above video? (I'm thinking a vertex shader, but I don't know where to start.)
This post has been edited by GerbilSoft: 13 May 2014 - 02:43 PM

#2 User is offline winterhell 

Posted 13 May 2014 - 03:19 PM

  • Posts: 1158
  • Joined: 16-October 10
  • Gender:Male
This one would be hard to do with a shader, especially since different polygons are being transformed separately with a different value. It'd require writing noise, parsing and setting uniform values, generating matrices in the vertex and possibly the geometry shader.

However, an easier and fast enough approach would be when generating the sphere to split it into several(dozen?) meshes/vertex arrays/VBOs, and then for each mesh to calculate ahead of time a random Vector3/float3 velocity and rotation, and then generate rotMatrix*posMatrix based on those values at a given frame for each mesh. That way you don't even need to have shaders.

As for the model itself, you can make it easily in 3ds max, drop a texture on it, and then detach each group of polygons. As long as you can read any of the exportable formats, or even export the meshes yourself with maxscript. Of course other 3d modelling softwares can work as well.
This post has been edited by winterhell: 13 May 2014 - 03:21 PM

Page 1 of 1
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users