Detonator Update for Unity 4.x

Detonator has been dormant for a couple years but I’m starting to resurrect it. First step was to resolve some build and import problems that have cropped up as Unity itself has been updated underneath Detonator’s really old codebase. Version 1.2 is now live in the Asset Store. It unfortunately is set to use minimum version of Unity 4.5.3, which is my bad. I’m resubmitting today but you can just grab the proper version from here: Detonator 1.22 on my Dropbox.

Asset Store Link   |    Unity Forum Link
  • All of the supporting files have been converted to C#.
  • Fixed issue with a few textures getting interpreted incorrectly as normal maps on import.
  • Tuned up prefabs to look better
  • New skybox in test scene
Demo Scene (Unity Web Player) :

20 thoughts on “Detonator Update for Unity 4.x

  1. Pingback: Gametopia: Crazy Box | Jose Luis Armesto

  2. Hey, the detonator stuff has a bug. I’m seeing a pink texture on the heatwave material thing.

    I’m a noob, but check it out. I just downloaded the code in Unity 4.6 and it’s obvious once you try the Test Scene.

    -steve

  3. Hey Steve,

    Thanks for the heads up. I am unable to repro over here but am interested in helping you out.

    Which beta are you using? Also, is the background of the test scene blue or black? I did a test download from the Asset Store and one time got an old build… hopefully that was just something cached on my end.

  4. Pingback: Gametopia: Crazy Box - Jose Luis Armesto Jose Luis Armesto

  5. Hi, I just downloaded 1.22, but I get the error below when compiling to an exe (not when running in the editor though). Any thoughts? Am I doing something wrong? Other than that, its a good package, thanks!

    Shader error in ‘HeatDistort': ‘tex2Dproj': no matching 2 parameter intrinsic function; Possible intrinsic functions are: tex2Dproj(sampler2D, float4|half4|min10float4|min16float4) at line 37

  6. Ben, yes the exe still runs and stuff explodes nicely. I wasn’t sure if it was a sign of an unseen problem. I’ve built about a dozen times and the message appears every time. Should I just ignore it?

  7. I’ve been seeing this for a while now, at least since upgrading to Unity4.5.2f1 but it may have started before that. I’ll try installing 1.22 to see if that works.

  8. No luck, the error is still there after updating to 1.22 and Unity 4.5.5. The sounds associated with my explosions are now much quieter too and I can’t seem to find an explanation. Everything else seems great, though.

  9. The tex2dproj needs a float 4, and it is only given a float 3 (i.uvgrab.xyw). When i change it to i.uvgrab.xyzw, it compiles and the shader shows, but the center of the explosion is skewed to the left. I have tried this with both 4.5.4 and 4.6 beta 20.

  10. I found a solution for it.
    Replace these two functions in your vert with this:

    o.uvbump = TRANSFORM_TEX( v.texcoord, _BumpMap );
    o.uvmain = TRANSFORM_TEX( v.texcoord, _MainTex );

    and before the vert declare
    float4 _BumpMap_ST;
    float4 _MainTex_ST;

  11. Pingback: The Story of Independent Ben | Ben Throop

  12. Hi there,

    Thanks very much for the library, it’s been very useful for making explosions quickly!
    Unfortunately I’m encountering an issue when compiling with Visual Studio (in order to debug). The error states that “EllipsoidParticleEmitter reference cannot be found”.

    I started getting this error when I imported my project from Unity 4 to Unity 5. I’ve tried changing the UnityEngine.dll reference to what I assume is the most recent one (from the Unity install folder) but the compile issue is still there. Oddly enough Unity runs the game without complaining, but now I cannot debug :(

    Any ideas?

    • It appears to be because of Unity 5’s auto-updating of API calls. AddComponent(string) is obsolete and cannot be used, while EllipsoidParticleEmitter presumably has been made private/internal and isn’t exposed *sigh*.

      It still works when playing but I guess I’ll have to abandon Detonator until I get some time to update it.

  13. Hey! Sorta new to the game development world. These explosions look great in Unity, however they don’t work on mobiles. Are they only meant for PC/Mac/Consoles?

  14. Alright, never mind… solved it and it looks great! Sorry for the spam. You can delete these useless comments.

    Great work though! Hope your VR game is coming along nicely!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>