Jump to content
Bruce Kieffer

Cupcake Sprinkles?

Recommended Posts

Our user group is modeling a cupcake for our annual solid model challenge. I have the liner, cupcake and frosting modeled. I'm at the stage of adding sprinkles. Once I create a few different sprinkle shapes, Is there a way to randomly drop them onto the frosting?"

Share this post


Link to post

Someone (DomC maybe?) wrote a Marionette network that adds random symbols from a specified folder inside of a control object. It works really well. You could make a set of sprinkle objects of different colors and use a circle as the control object. 

Share this post


Link to post

I've looked around at the tools in Vectorworks, and I don't see any way to essentially drop the sprinkles on to the cupcake icing. I could do it manually, but that would take way too much time.

 

Screen Shot 2020-01-25 at 11.48.54 PM.png

Edited by Bruce Kieffer

Share this post


Link to post
47 minutes ago, Stephan Moenninghoff said:

Here's the file. Play with randomization along the generated curves and add more symbols as you require. Some manual nudging may be required to get this to look the part. 

image.thumb.png.a049c319ef6ff2d91b6fc7220fa2cbc9.png

  • Love 1

Share this post


Link to post

Beautiful and fast. I will play with it, but it really isn't how they would land in actuality. They would sit on top of the frosting, not embed partially.

Share this post


Link to post

Also, never underestimate the value of good textures. From a recent job I did. No, it's not real. It's about 1,2 meters and with a skin of fabrics. 

  Edited by Claes Lundstrom
  • Like 1
  • Love 1

Share this post


Link to post

Another possibility would be to make the frosting as a Digital Terrain Model. Then you could use the Send to Surface command to put the sprinkles on the frosting.

Share this post


Link to post
2 hours ago, Pat Stanford said:

Another possibility would be to make the frosting as a Digital Terrain Model. Then you could use the Send to Surface command to put the sprinkles on the frosting.

I tried that.  The frosting has overhanging cliffs, depending on the degree of twisting and the depth of the ridges. I don't think the DTM is meant to handle such conditions. 

image.thumb.png.bd158d707fb9d0224fabf2b6ea578806.png

Share this post


Link to post

FWIW, the way I went about placing the sprinkles via Marionette was to generate curves from the model and getting the points on each curve by subdivision. Each sprinkle-symbol is then placed on one of those points and rotated randomly. That is why they get embedded. If there was a way to generate random points on each surface of the frosting model and getting the normal's orientation at that point, the sprinkles could be placed perpendicular to the surface and then be rotated randomly. Unfortunately I don't know of a way to do that with Marionette.

Edited by Stephan Moenninghoff

Share this post


Link to post

That worked.

Create a drape surface. U and V iteration = 100. 

Name it "test2".

Run the Marionette.

Adjust level of embedding by changing the insertion point of the symbol and the rotation values in the Marionette.

Ungroup.

Reference a different symbol and repeat.

Delete the symbol instances that are outside the icing and those that collide with others. Max. 10 minutes clean-up work.

You could try and expand the Marionette to go looking for symbols that are placed too closely to others but it's hardly worth the effort, I don't think.

Sprinkle.thumb.png.316d518846a40578b183d044d01c2324.png

Sprinkle v 2.0.vwx

  • Like 3

Share this post


Link to post

Stephan, these are very cool solutions! I have completed my cupcake model and I will present it next Wednesday at our user group meeting. It's a group exercise, so at this point I am done experimenting, but that does not mean I am done learning, so thanks. You can see my method to create the model here:

https://vwxgroup.com/bk/cupcake.html 

Share this post


Link to post

@Stephan Moenninghoff I love it. I would bet that VW never expected the best use for Drape Surface would be to decorate cupcakes.

 

@Bruce Kieffer Thanks for posting this originally. Probably the best way for us old-timers to learn is to do out fo the box challenges like this. Makes my head hurt. In a good way.

  • Like 1

Share this post


Link to post
36 minutes ago, Pat Stanford said:

 I would bet that VW never expected the best use for Drape Surface would be to decorate cupcakes.

 

Yeah. Unfortunately, there is no node for that but I may file a VE 🙂

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...