1
$\begingroup$

I see that code-golf is very popular in SA. There is even a community related to it: https://codegolf.stackexchange.com/ So inspired by tutorial about making donuts using volume shader https://www.youtube.com/watch?v=eJLsr3boqWY I think it would be great to try this format in Blender.

So you have to make a donut with uneven glaze, and 2 types of sprinkles, just like Blender Guru's one:

enter image description here

You can use Geometry Nodes or Shader Nodes, (or any other node system) it should be nice to compare. Nice that Geonodes haven't torus primitive, so there's no head start here.

Here are basic rules:

  • Use a default cube, do not edit mesh or UV
  • Using any additional geometry is not allowed
  • Grouping nodes is not allowed
  • Reroutes doesn't count
  • Materials are not required, but you should color each part (torus, glaze and sprinkles) of the mesh in a different color, sprinkles - random color.
  • Post the number of nodes (including input and output), screenshot of the nodes, resulted donut and blend file (https://blend-exchange.com/)
  • Node setup with minimum number of nodes wins!

This is a first time that node golf is starting, so rules may be corrected

You can count your nodes by typing this in Blender console:

len([n for key, n in D.node_groups['Geometry Nodes'].nodes.items() if n.type!='REROUTE'])

enter image description here

$\endgroup$
10
  • 5
    $\begingroup$ Never thought a day would come where I'd be actually happy to see a donut post. $\endgroup$ Aug 8, 2022 at 15:03
  • 1
    $\begingroup$ Someone should finally set a somewhat healthier trend in the world, with all the obese people. How about fresh fruit or vegetables? ...Therefore, I do not participate. $\endgroup$
    – quellenform
    Aug 8, 2022 at 15:12
  • 1
    $\begingroup$ Well the form is quite simple and difficult in the same time, and all features are appealing. So I believe it is one of the best form as for learning blender as for nodleing $\endgroup$
    – Crantisz
    Aug 8, 2022 at 15:17
  • 3
    $\begingroup$ And your question is?? :^)) $\endgroup$
    – John Eason
    Aug 8, 2022 at 16:29
  • 1
    $\begingroup$ @JohnEason the question is who will earn 500 reputation points! $\endgroup$
    – Crantisz
    Aug 9, 2022 at 8:46

6 Answers 6

5
$\begingroup$

Out of score due to rule changes (randomly colored sprinkles)!

17 Geometry nodes, 3 shader nodes

...no comment...

enter image description here


(Blender 3.2)

$\endgroup$
9
  • $\begingroup$ @Crantisz ...I think it can't be less nodes, but it's actually a pity that we two are the only ones participating in this challenge. ...I like this new tag ;-) ...At least once this donut question is clarified. $\endgroup$
    – quellenform
    Aug 10, 2022 at 20:15
  • 1
    $\begingroup$ It would be nice if this nice little bounty attracts more people $\endgroup$
    – Crantisz
    Aug 10, 2022 at 20:19
  • $\begingroup$ @Crantisz You created this tag didn't you? ...I'm sure we'll have some great ideas for it as time goes on :D $\endgroup$
    – quellenform
    Aug 10, 2022 at 20:22
  • 1
    $\begingroup$ you could attract more people easily by offering real donuts.... :D :D :D $\endgroup$
    – Chris
    Aug 13, 2022 at 18:55
  • 1
    $\begingroup$ Na geht doch! Warum denn nicht gleich so?!๐Ÿ’๐Ÿปโ€โ™‚๏ธ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ‘๐Ÿป $\endgroup$
    – Chris
    Aug 13, 2022 at 20:41
4
$\begingroup$

27 Shader nodes

This donut made without using Geometry nodes:

enter image description here

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Wow! And this should fix it for @quellenform's diet! All he needs to do is turn the density down, and he gets a Vapo-Nut. $\endgroup$
    – Robin Betts
    Aug 11, 2022 at 8:43
  • 1
    $\begingroup$ Haha, cool! ...this looks like a "Geometry vs. Shader" battle to me :D $\endgroup$
    – quellenform
    Aug 11, 2022 at 9:33
3
$\begingroup$

32 Geometry nodes, 3 shader nodes

Try to beat this!

enter image description here

enter image description here

Blender 3.3 required

$\endgroup$
3
$\begingroup$

30 Shader nodes

This method uses Vector displacement

enter image description here

enter image description here

$\endgroup$
4
  • $\begingroup$ ....You're probably dreaming of donuts by now, right? :D $\endgroup$
    – quellenform
    Aug 12, 2022 at 12:36
  • $\begingroup$ For now, I have 4 styles to do one particular thing using nodes. This is called diversity. $\endgroup$
    – Crantisz
    Aug 12, 2022 at 12:38
  • $\begingroup$ wow amazing! but just for understanding, why won't eevee support displacement? it stays cubic in eevee. $\endgroup$ Aug 16, 2022 at 8:21
  • $\begingroup$ @HarryMcKenzie Displacement seems to not work in EEVEE $\endgroup$
    – Crantisz
    Aug 16, 2022 at 8:25
2
$\begingroup$

28 Geometry nodes, 3 shader nodes

...one more to go:

enter image description here


(Blender 3.2)

$\endgroup$
2
+500
$\begingroup$

19 Geometry nodes, 3 shader nodes

Challenge accepted, this is the first and last donut I build. Disgusting stuff...

enter image description here


(Blender 3.2)


Important notice from the Ministry of Health:.

Donuts are NOT food, but sweets!

They contain a disproportionate amount of sugar and fat, which can lead to significant health risks and even premature death if consumed excessively and regularly!

For a balanced and healthy diet, the abandonment of sugared foods and a return to organic farming and the consumption of food grown sustainably and as natural as possible should be sought.

$\endgroup$
5
  • $\begingroup$ 2 types of sprinkles - it is important because affects on node count. Please add them and update node count $\endgroup$
    – Crantisz
    Aug 9, 2022 at 13:00
  • $\begingroup$ @Crantisz ...there are two types of sprinkles: spheres & cones ;-) $\endgroup$
    – quellenform
    Aug 9, 2022 at 13:04
  • $\begingroup$ Oh. yes... but... :-) $\endgroup$
    – Crantisz
    Aug 9, 2022 at 13:06
  • $\begingroup$ you could save one node by using Sverchock -> which has a torus node ;) and with that result you could add your GN modifier without the 3 nodes to create the torus...so in total it would be one node less....but...no default cube. [1]: i.stack.imgur.com/p66tk.png $\endgroup$
    – Chris
    Aug 13, 2022 at 19:27
  • $\begingroup$ @Chris Haha, yes, that would be the solution! ...but I guess then Crantisz would have to adjust the rules again :D $\endgroup$
    – quellenform
    Aug 13, 2022 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .