karmacomposer Posted July 31, 2014 Share Posted July 31, 2014 I am creating a game where the main character uses a variety of weapons to destroy things and when he hits something, it explodes into fragments. I don't want to explode just the polygons, I actually want chunky explosions. Now, I have this working in Unity, but Unity is a pain in the butt overall and I am having to work around so many things that I am looking at Leadwerks more seriously for our project. Critical to the game is these explosions - so the questions is, can it be done and if so, how hard is it to do so? Any input is welcome. Mike Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
Rick Posted July 31, 2014 Share Posted July 31, 2014 One option would be to have multiple models. 1 model of the thing complete and multiple pieces of the model put together (via a prefab). When the model gets hit by the weapon you swap out the normal model with the prefab that has all the pieces put in place and then apply come force(s) to make the explosion. 1 Quote Link to comment Share on other sites More sharing options...
karmacomposer Posted July 31, 2014 Author Share Posted July 31, 2014 Very interesting. That means I would need to have some kind of ability in my 3D modeling software to 'crack' the model ahead of time. You are suggesting that I then use physics to complete the explosion of the 'cracks'? Is that what you mean? Mike Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
Rick Posted July 31, 2014 Share Posted July 31, 2014 Yes, use physics once you have all the pieces put in place. Quote Link to comment Share on other sites More sharing options...
karmacomposer Posted July 31, 2014 Author Share Posted July 31, 2014 Great - now to find a really good cracking plugin for my modelling software. Mike Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
shadmar Posted July 31, 2014 Share Posted July 31, 2014 You can also explode faces aling their normal using a geo-shader (and animate it), but they wouldn't have any physics. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Ma-Shell Posted July 31, 2014 Share Posted July 31, 2014 You can also explode faces aling their normal using a geo-shader (and animate it), but they wouldn't have any physics. Though this is a nice idea, it would be quite hard, getting it to look like the objects have a real volume (the video looks like it's only a thin sphere-surface). Quote Link to comment Share on other sites More sharing options...
karmacomposer Posted July 31, 2014 Author Share Posted July 31, 2014 Yes - too much like exploding the faces (polygons). I need volumetric chunkiness. Mike Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
macklebee Posted July 31, 2014 Share Posted July 31, 2014 xtreampb did a decent demo in LE2 showing exactly what you are wanting: http://www.leadwerks.com/werkspace/files/file/387-castle-defense-demo/ Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
dennis Posted August 8, 2014 Share Posted August 8, 2014 Use Nvidia Apex Sdk free to use. It will convert your models into fragmented ones. And with a simple code they provide you, you are able to make it work. They also have tutorials for it --Dennis Quote Link to comment Share on other sites More sharing options...
Guppy Posted August 8, 2014 Share Posted August 8, 2014 Great - now to find a really good cracking plugin for my modelling software. Mike Blender has this, I have actually been meaning to try the two model approach for LE for some time now. This video shows the blender part. Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
YouGroove Posted August 8, 2014 Share Posted August 8, 2014 This video shows the blender part. Is Blender capable of generating concave collision meshes named "collision" for each broken pieces of the broken model ? Manually it will be painfull each time when there are plenty of meshes. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Guppy Posted August 9, 2014 Share Posted August 9, 2014 Is Blender capable of generating concave collision meshes named "collision" for each broken pieces of the broken model ? Manually it will be painfull each time when there are plenty of meshes. Select the pieces hit shift-D to duplicate them and then rename them manually. Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Guppy Posted August 15, 2014 Share Posted August 15, 2014 Is Blender capable of generating concave collision meshes named "collision" for each broken pieces of the broken model ? Manually it will be painfull each time when there are plenty of meshes. Randomly stumbled across a batch renamer for blender http://adaptivesamples.com/2013/09/07/batch-renamer/ and remebered this thread Here is a test blend file; https://drive.google.com/file/d/0B7B0hlkpWcYWcWl3ajNHbjdQb3M/edit?usp=sharing Layer 1 has the unbroken object Layer 2 has the broken object ( made a lot of space between to make sure the physics engine doesn't stick them together ) Layer 3 has the collision shapes ( renamed duplicate of layer 2 ) It occurs to me that the the shards and collision shapes must somehow be associated ( child ? ) and each shard should have a mass Can that be done in blender or does it have to be done in LE ? Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.