Page 1 of 3 123 LastLast
Results 1 to 20 of 60

Thread: [Addon] CubeSter

  1. #1
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288

    [Addon] CubeSter

    A while back an add-on called Cubify was released. It took and image and converted it into basically a height map. It was very slow once the image got above the size of about 32x32 though. CubeSter has the same basic ability, but runs about 1,600 times faster, meaning images with over 450,000 blocks can be generated in about 30 seconds.

    #Latest Update#
    - Image sequences can be used
    - Audio files can be used
    - Blender Internal can be used
    - Better time estimation

    Side note: if using a laptop, try plugging it in. In my experience this can decrease the time it takes to generate the mesh by around 140%.

    Website
    Download
    Bug Report
    Wiki
    Donate






    Block Based Mesh (46,656 blocks in 2.71 seconds)


    Plane Based Mesh (192,600 points in 1.92 seconds)
    Attached Images Attached Images
    Last edited by Jacob Morris; 30-Apr-16 at 13:52. Reason: added bug report link



  2. #2
    It looks very interesting



  3. #3



  4. #4
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Meta-Androcto View Post
    congrats, well done indeed.
    Thanks a lot!



  5. #5
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Nanomanpro View Post
    It looks very interesting
    Thanks a lot!



  6. #6
    Member Meta-Androcto's Avatar
    Join Date
    Aug 2006
    Location
    australia
    Posts
    4,045
    hi, a couple of bugs I noticed:
    The UI should be only in cycles mode or if in BI mode return message "Must be in Cycles Mode".
    2nd, the material created does not work, It's not creating a shader only an empty material, easy to work round by adding a new material, image, set to Generated & it's good.
    Thanks, nice fun script, maybe some slight randomization would be good.
    Grey Scale test:
    pix+dragon+ui.jpg

    Edit, it may be jpeg materials work, not .png



  7. #7
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    OK thanks for all these suggestions!
    I will implement the part about saying materials are only in Cycles. I forgot to put a message in the UI about that.

    Secondly, the material is working for me. Does it just create a blank material for you called "CubeSter" with no nodes? What it should do it be a material with an Attribute node that is set to "Col", which is a vertex color group that is generated. Then the color output of that node is led directly into a Diffuse Shader node. So what does the material it is generating look like for you?

    Thirdly, I haven't tested on files with an alpha channel, but I did write the code so that any point with an alpha value of 0 shouldn't be created. The alpha value is also factored in with the height of the block, with a 25% weight for the RGBA channels.



  8. #8
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Ok, quick update, I think the issue is, that you generated the mesh in Blender Internal first, which raised a KeyError because the default material was a BI material. Then, you changed to Cycles, but my code was already registering that the material "CubeSter" had been created, even though it was messed up. So basically, if you get rid of the current "CubeSter" material and then generate a mesh again in Cycles, all should work just fine. I will update the code so you just can't generate a mesh in Blender Internal.



  9. #9
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Meta-Androcto View Post
    hi, a couple of bugs I noticed:
    The UI should be only in cycles mode or if in BI mode return message "Must be in Cycles Mode".
    2nd, the material created does not work, It's not creating a shader only an empty material, easy to work round by adding a new material, image, set to Generated & it's good.
    Thanks, nice fun script, maybe some slight randomization would be good.
    Grey Scale test:
    pix+dragon+ui.jpg

    Edit, it may be jpeg materials work, not .png
    Ok, all of this should be working now, I just released a new version



  10. #10
    Member
    Join Date
    Oct 2013
    Location
    Belgium
    Posts
    317
    Exellent work , thanks for this nice script



  11. #11
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Benny G View Post
    Exellent work , thanks for this nice script
    No problem!



  12. #12
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    So I just made a new commit that allows you to do this as well as create blocks:
    cubester_mesh_sample_image.jpg

    It creates a plane instead of a bunch of blocks. I haven't updated the UI yet or officially released this, but the code is accessible here.



  13. #13
    Member
    Join Date
    Oct 2013
    Location
    Belgium
    Posts
    317



  14. #14
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Benny G View Post
    Awesome example! Thanks for sharing, I love to see how people use these add-ons.



  15. #15
    Member
    Join Date
    Oct 2013
    Location
    Belgium
    Posts
    317
    blender 00.jpg
    Another example with a fractal tree picture



  16. #16
    Member
    Join Date
    Oct 2013
    Location
    Belgium
    Posts
    317
    blender 01.jpg

    made with a eye texture and the verry nice addon cubester



  17. #17
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Benny G View Post
    blender 01.jpg

    made with a eye texture and the verry nice addon cubester
    These are fantastic! Great job!



  18. #18
    Member
    Join Date
    Oct 2013
    Location
    Belgium
    Posts
    317
    Thanks , maybe if have time i try the new version , is there a easy way to change the material with another texture or to mix this in the node editor for the materials for example



  19. #19
    Member MmAaXx's Avatar
    Join Date
    Jun 2008
    Location
    Tokyo
    Posts
    1,754
    wow, I'm gonna take a look on this very soon!
    thanks!



  20. #20
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Benny G View Post
    Thanks , maybe if have time i try the new version , is there a easy way to change the material with another texture or to mix this in the node editor for the materials for example
    I assume you mean changing the colors with different ones? Not currently, I will try to look around and see if I can come up with an easy way to change from the colors that the original image has. You can do color shifts and things like that just by putting nodes between the Attribute and Diffuse shader, but that is going to be limited.



Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •