enzyme69 / blendersushi

Blender Sushi related scripts. Mostly about Sverchok, Geometry Nodes, Animation Nodes, and related Python scripts.
242 stars 33 forks source link

LIVENODING 728 / Book and Book Shelf Challenge #91

Open enzyme69 opened 6 years ago

enzyme69 commented 6 years ago

Was inspired by Squircle Art he made this cool setup of book rack and books in AN: https://squircleart.github.io/animation-nodes/procedural-bookshelves-in-animation-nodes.html

I think... I should be able to do this in Sverchok.

enzyme69 commented 6 years ago

My first attempt for the book, a little bit silly, I don't quite like it. ![Uploading image.png…]()

prtscr capture_2

enzyme69 commented 6 years ago

prtscr capture_6

Then I did this, a bit hacky, with box and Solidify, but sort of okey.

https://gist.github.com/dca8d38a9ad06941e9861fbd0caad507

Can be improved.

We can really build from profile...

enzyme69 commented 6 years ago

prtscr capture_8

enzyme69 commented 6 years ago

prtscr capture_10 prtscr capture_9

image

Hmmmm..... this is also not satisfying...

Sverchok has LOTS of convenience over AN for modeling, but it requires some kind of clever thinking too.

enzyme69 commented 6 years ago

Book rack, for example, with Sverchok, can be as simple as doing this:

https://gist.github.com/35b147452eaf4ee1c4bb3c12d6149486

Wouldn't go about any complicated than this. prtscr capture_11

enzyme69 commented 6 years ago

To make the book rack standing.. https://gist.github.com/4d06b165ef7c7345dac1bd123bcc4099 prtscr capture_12

enzyme69 commented 6 years ago

Based on this: https://github.com/nortikin/sverchok/pull/1312

Accidentally made this... was not intended to.

https://gist.github.com/42b75fd48cb24ffd565353b93e8ffd9d

prtscr capture_13

enzyme69 commented 6 years ago

At this point, it gets totally weird and wrong: https://gist.github.com/c971073b331ebc0b9b2d6e2a3e254a9e

prtscr capture_14

enzyme69 commented 6 years ago

Melbourne Beach Houses... nope prtscr capture_15

enzyme69 commented 6 years ago

This is a fix, kind of okey, but hollow book. https://gist.github.com/61d4bb4a3e7b016db9bca662e62385f3

prtscr capture_16

enzyme69 commented 6 years ago

Maybe something like this: https://gist.github.com/93b4530c9651d0f26043b5bfd1e124d5

But somewhat there is instability.... perhaps the Extrude Separate Faces...

This does not work well: https://gist.github.com/1f3e9eded1a1b99a3f0cf8ea4d4d89fd

prtscr capture_18

enzyme69 commented 6 years ago

I have a feeling that I can just simplify this.......

enzyme69 commented 6 years ago

Hmm.... prtscr capture_19

https://gist.github.com/2facbdf5b07506fbcda0f1bca24489b1

enzyme69 commented 6 years ago

I decided to simplify the setup and here is 3D Procedural Book. This one has extra bevel details. prtscr capture_108

book_005_2017_09_12_12_11.zip

enzyme69 commented 6 years ago

For the book layout and stacking, I have to use the accumulative numpy setup. I think I was overthinking this one, it can be simplified.

I started with edges, and goes all the way to extruding. Since we have the book setup above, maybe I only simply need to pass in the Matrix Positions etc to stack the book or arrange it into the book shelf. prtscr capture_109

book_stack_002_2017_09_12_11_59.zip

enzyme69 commented 6 years ago

I think combining the two setup will be next thing to do.