Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Fragmentum - Mesh fragmentation shader

Discussion in 'Assets and Asset Store' started by Arkhivrag, Apr 16, 2013.

  1. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Fragmentum is 100% GPU accelerated mesh fragmentation shader.
    Initially made for Unity DirectX 11 contest (2nd Runner Up).

    Support shader types: Mobile, SM2, SM3, DX11.

    https://www.assetstore.unity3d.com/#/content/8264










    • Before start Fragmentum script prepares mesh for shader - generating some additional data and thus rebuilds it (only once).
    • Shader fragments(displaces) objects using only their polygons(triangles). No new triangles are generated.
    • Shader is not dedicated for Skinned Meshes, but still can be used with some restriction. Works only with DX11
    • Fragmentum does not work with meshes, with more then 21.000 vertices. (Can be changed in the future)
    • Fragmentum should be the only material on object.
    • Shader does not require Unity Pro.
    • DirectX11 version shader requires SM5 and Compute Shaders support.
    • Package (Pro) contains all scenes from demo video - without cinematic animations. Epic Citadel not included.
    • Demo scenes can not be used in any commercial or non-commercial projects.



    Update info:

    Update 2.4
    • Works better with procedurally generated meshes.
    • Fixed incompatibility with iPad2.
    • Fixed bug with meshes without normals and uv1.

    Update 2.3
    • Global optimization and improved performance

    Update 2.21
    • Fixed: Fragmentum editor controllers were not visible in Unity Free.

    Update 2.2
    • New Mobile shaders for mobile devices.
    • Unity 4.5 support. Shaders compile mush faster.

    Update 2.1 beta
    • Fragmentum has been completely redesigned and rewritten.
    • New Fragmentum script prepares and rebuilds mesh for Fragmentum faster and much more accurate, according mobile shaders request
    • New improved Fragmentum shader generator.
    • Added shader auto recompile option.
    • Added multiple object editing support.
    • New improved Framgentum material editor.
    • Added Fragmentum Influence global controller.
    • Added Fragmentum Influence randomizer.
    • Added Displace amount randomizer.
    • Added new rotation type: Around custom point.
    • Improved Radial Displace and Fragments scale.
    • Added option to switch shader to double sided.
    • Added option to calculate light per vertex, instead of per pixel.
    • Pow function for Fragmentum Area Texture now is optional.
    • Added easy shader type changer.
    • Shader type now is visible inside material editor and inspector.
    • Added Fragmentum Influence slider inside material editor.
    • Main Color and Reflection Colors now are optional.
    • Fixed main bugs for mobile shaders:
    • Fixed Fragments stretching when using Fragment Area texture.
    • Fixed Light calculation for sm2 shaders.
    • Fixed Reflection vector calculation for sm2 shaders.
    • Fragmentum native shaders now are hidden and does not require compilation when importing into new project.
    • Many other micro optimizations and improvements.
    • Added example scenes and new updated documentation.

    Update 2.0 beta
    • Added SM2 and SM3 support
    • Added Fragmentum shader generator
    • Compiled shader file size reduced 10x
    • All options of shader now are optional and can be turned on/off


    Update 1.2
    • Memory used by StructuredBuffers reduced -60%
    • Compiled shader size reduced -50%
    • New Extrude3D shader (converts fragments into volumetric 3D objects)
    • Added two new displace types (Directional and Radial)
    • Added fragments scale randomizer
    • Lightmapping supports Unlit shaders and Unity built in primitives
    • Dissolve shader effects only fragments

    Update v1.1
    • Added lightmapping support
     
    Last edited: Mar 18, 2015
  2. Mihai93

    Mihai93

    Joined:
    Jul 14, 2012
    Posts:
    213
    about price?
     
  3. ronan-thibaudau

    ronan-thibaudau

    Joined:
    Jun 29, 2012
    Posts:
    1,722
    Are you going to release this on the asset store and if so:
    - when?
    - what price?
    - will it include all the demos in the video?
     
  4. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    When - I have to make sample scenes, write documentation and make some polishing work. I hope it will be ready for the Monday (4/22/2013).
    Price - I have not decided yet. May be 30$. (still thinking)
    Scenes - All scenes in demo video will be in package, without cinematic animations.
     
  5. ronan-thibaudau

    ronan-thibaudau

    Joined:
    Jun 29, 2012
    Posts:
    1,722
    Any chance they could be with animation? They're really nicely done so it makes a nice learning ressource if they are.
    Price sounds very fair :)
     
  6. ronan-thibaudau

    ronan-thibaudau

    Joined:
    Jun 29, 2012
    Posts:
    1,722
    Also will you release other packages based on your DX11 entry? I'd like to see something on the asset store like your point cloud rendering solution
     
  7. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    I have not thought about that. Why not.
     
  8. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Hi
    I planed to submit package today, but I still have some tasks to finish, so 24th of April is final date.
     
  9. ronan-thibaudau

    ronan-thibaudau

    Joined:
    Jun 29, 2012
    Posts:
    1,722
    Don't forget to bump when you submit! :)
     
  10. SevenBits

    SevenBits

    Joined:
    Dec 26, 2011
    Posts:
    1,953
    Yeah, this is cool, I'd like to know more about it.
     
  11. growling_egg

    growling_egg

    Joined:
    Sep 2, 2012
    Posts:
    60
    Hey, just saw the Fragmentum video and am excited to try it out. Let us know when it's up!
     
  12. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    I have already submitted it, waiting for approval.
     
  13. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,646
  14. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    I have added lightmapping support.
    New version 1.1 is available.
     
  15. Mihai93

    Mihai93

    Joined:
    Jul 14, 2012
    Posts:
    213
    WoW Arkhivrag is one of the best asset on the store i love how it works looks compless to use but is realy realy to use it i whant to see more staff from you thanks for you made it.
     
  16. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
     
    Last edited: Jun 23, 2013
  17. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Waiting approving of new price from Asset Store. Will notify as soon as the sale begin.
     
  18. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
  19. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,545
    dx11 only or?
     
  20. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Only DX11
     
  21. imsonar

    imsonar

    Joined:
    Jun 24, 2013
    Posts:
    1
    Hi i am very new to Unity and was really impressed with your defragment shader so i purchased it from the asset store... it seems though that there is a problem running it on my laptop (gtx560m)... there are effects i can t render ( the lines effect on the car demo) and for every demoscene i can t see the defragment happening... i am running on windows 7. do i have to assign something to the meshes ( i do get messages and errors like the main camera is not supported, the fragmentum shader is not assigned as material etc) but i would think that i should not be getting these messages on the demo scenes... as i ve said i just started with unity and would appreciate a more detailed description on how to at least run the demo scenes... cheers...
     
  22. manGo29

    manGo29

    Joined:
    Feb 14, 2013
    Posts:
    8
    Why am I getting this error, and why does the script not appear to identify itself as a C# extension?

    $Vaccum1.jpg

    Even in the packaged demo scenes, this is all I get.
     
  23. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191

    Hi,
    Fragmentum is DirectX11 powered shader. To use it, switch Unity on Direct3D 11 in player settings:

     
  24. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    621
    @ Arkhivrag

    Any chance you could post Fragmentum's documentation somewhere?
     
  25. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Documentation is inside package - ReadMe.pdf.
     
  26. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    621
    Actually, wanted to read the documentation to see if it would suit my project's needs. There's not much info in this thread on how to use these shaders, which shaders are included, etc. Information I just assumed would be in the documentation.

     
  27. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Here is documentation, which is inside package: Fragmentum ReadMe.pdf
    Package contains all scenes from promo video, with explanations.
     
  28. lod3

    lod3

    Joined:
    Mar 21, 2012
    Posts:
    621
    Thank you!

     
  29. CaptainChristian

    CaptainChristian

    Joined:
    Apr 3, 2013
    Posts:
    97
    The file Fragmentum.Shader causes my OS to BSoD (bad_pool_caller on hal.exe) either on loading the project or running the game. For the time being I removed the Vacuum folder and all its traces from my project folder. I am using Win8 64bit and Radeon HD 7870. If you need more info, please ask away.
     
  30. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Hi.
    1. Does the BSoD appear in the clean project, containing only Fragmentum?
    2. Run this script in Unity, to check - SystemInfo.graphicsShaderLevel and SystemInfo.supportsComputeShaders.
    3. If BSoD appears in the clean project, containing only Fragmentum, can you send me - Editor.Log file

    Shader itself can not be the cause of BSoD , it may compile or not.
    I have built and tested it only on my GTX 660M with Win8 x64.
     
    Last edited: Jul 8, 2013
  31. CaptainChristian

    CaptainChristian

    Joined:
    Apr 3, 2013
    Posts:
    97
    1. Not yet, tested all examples. Encountered a lot of Fragmentum warnings in all of them.
    2. Shader level is set to 50, compute shaders is set to true
    3. Still testing.

    The crashes appeared first when I changed the particle system Fragments into a box emitter.
     
  32. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Fragmentum warnings may appear only if shader is not compiled.



    Particles used in scenes are not part of Fragmentum package, you can delete them.


    Please, run Fragmentum in clean project with DirectX11 enabled, and if there are any warnings send me Editor.log file. Unity's editor log (Console -> Open editor log). From here I can not determine warnings reason.
     
    Last edited: Jul 8, 2013
  33. CaptainChristian

    CaptainChristian

    Joined:
    Apr 3, 2013
    Posts:
    97
    In a clean environment examples work without warnings or errors.

    I will try to reproduce the BSoD in my working project.
     
  34. JARA-A-I

    JARA-A-I

    Joined:
    May 15, 2013
    Posts:
    8
    Hello, I have a doubt, does Fragmentum changes the mesh? or is it only a visual effect?

    Thanks in advance.
     
  35. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Fragmentum does not change mesh, it rebuilds mesh to generate additional data necessary for the shader. Mesh remains the same.
     
  36. CaptainChristian

    CaptainChristian

    Joined:
    Apr 3, 2013
    Posts:
    97
    I just tried to import Fragmentum into my game project and it crashed my OS with a wonderful BSoD (same as above).
     
  37. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Send me Editor.log file.
    And can you send me your scene, (with minimum data). I will see what is the problem there.
     
  38. CaptainChristian

    CaptainChristian

    Joined:
    Apr 3, 2013
    Posts:
    97
    Do you need anything specific(like conflicting includes) from the log file? I got two log files located in my AppData/Local/Unity/Editor folder: editor.log and editor-prev.log and the prev is really big. Do you need both of them and all data ?

    Since most of the stuff is procedurally generated it won't do much to send a specific scene. The architecture looks like this: empty game object which holds most game logic, a terraincomposer file, multiple terrains that are parented under a common empty object and a unistormparent. Everything else is generated at runtime.
     
  39. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Check PM
     
  40. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,646
    What is the difference with the full version?
     
  41. Gamershaze

    Gamershaze

    Joined:
    Jan 8, 2013
    Posts:
    9
    Hey, Arkhivrag.

    I was heavily considering purchasing Fragmentum the other day as it may (with some modification) fit an old project idea I had. However when I cracked open up the Free version to take a look, I got various errors and could not get it to work. I've tried it on multiple computers with different versions, with both Free and Pro versions of Unity, however I only got the same result. Here's a screenshot of what the sample scenes look like for me, straight out of an import to a fresh project.



    As I said, it might just be me, but I doubt it. If you could please send up update to Unity or a fix, that'd be great. I'd love to get this working, but I don't want to pork out thirty bucks on the chance it might not work. I'd have just sent you an email as-well, but I couldn't find it anywhere. Thanks either way.
     
  42. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Fragmentum Free contains 1 diffuse shader without lightmapping support , two demo scenes, documentation and has watermark. Does not support fragment rotation, fragment randomization and SkinnedMeshes.
    Full version contains 13 shaders with controlling - diffuse, bump, reflection, transparency, dissolving effects with lightmapping support and all scenes from promo video. Also Free version will not be updated with further improvements, except bug fixing, if there are any.
     
    Last edited: Aug 7, 2013
  43. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    @Gamershaze

    Fragmentum is DirectX11 powered shader. To use it, check Use Direct3D 11 in player settings:
     
    Last edited: Jul 28, 2013
  44. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,646
    Thanks for the reply.
     
  45. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    New version is available

    Update 1.2
    • Memory used by StructuredBuffers reduced -60%
    • Compiled shader size reduced -50%
    • New Extrude3D shader (converts fragments into volumetric 3D objects, unlit)
    • Added two new displace types (Directional and Radial)
    • Added fragments scale randomizer
    • Lightmapping supports Unlit shaders and Unity built in primitives
    • Dissolve shader effects only fragments
    • Separate control of dissolve, gloss, reflection and emission through InfoTexture
     
    Last edited: Aug 13, 2013
  46. Gamershaze

    Gamershaze

    Joined:
    Jan 8, 2013
    Posts:
    9
    Have you ever thought of converting this over to an OpenGL/DirectX equivalent? Not quite sure how this works, so excuse me if this is a ridiculous question. I just ask as I'm developing on Mac and would prefer to have the project support Mac, which isn't really an option at this point in time as this shader is DirectX11 only.
     
  47. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    Already working on SM3 version. But it has several limitations. If I have successes, it will be part of the package.
     
  48. im

    im

    Joined:
    Jan 17, 2013
    Posts:
    1,393
    i just downloaded the free version and opened the demo village scene and am getting nothing but errors running latest unity3d indie dx11 and textures are not showing up


    Material doesn't have a texture property '_FragTex'
    UnityEditor.DockArea:OnGUI()

    Material doesn't have a float or range property '_FragTexStrength'
    UnityEditor.DockArea:OnGUI()

    Material doesn't have a float or range property '_FragPow'
    UnityEditor.DockArea:OnGUI()

    Material doesn't have a float or range property '_DistanceToPlane'
    UnityEditor.DockArea:OnGUI()

    Material doesn't have a float or range property '_DisAmount'
    UnityEditor.DockArea:OnGUI()

    Material doesn't have a float or range property '_Lock'
    UnityEditor.DockArea:OnGUI()

    ...

    i mean it goes on and on and one

    the models are like all in pink... :(

    when i click on a model Fragmentum (Script)

    gives me Warning : Not FranctumMaterial
    ?

    But its this asset and nothing more clean project!

    please help, thanks in advance!
     
    Last edited: Aug 9, 2013
  49. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,191
    @im
    Pink model means that shader is not compiled.
    Fragmentum requires DirectX11, SM5 and Compute Shaders support.
    Run this script to check hardware capabilities. Script will print your shader model level (it should be 50 or more) and your ComputeShaders support.

    I have submitted Fragmentum Free v1.0.2 which will fix some bugs, maybe yours too.
     
    Last edited: Aug 10, 2013
  50. 3

    3

    Joined:
    Sep 16, 2012
    Posts:
    387
    So I assume this means Fragmentum won't work on mobile or macs?

    I was going to buy it but I'm developing a multi-platform game, just a suggestion. It would be awesome if you could create a mac/ios compatable game, I would pay much more for it too, and I'm sure many others would too.

    Besides that, its awesome, when I tested it on my windows laptop, it looked awesome, i highly recommend it and I would get it if it wasn't for that limitation.

    Thanks, and good luck.