PDA

View Full Version : book case plugin



vonpietro
11-04-2017, 11:48 AM
I think we can all agree how useful a bookcase interactive plugin can be.

https://www.youtube.com/watch?v=2NlcwLu44gQ&feature=youtu.be



nifty - make a book case in minutes - i liked the ability to adjust orientations.

jeric_synergy
11-04-2017, 12:14 PM
Bookcases, AND individual books.

raw-m
11-04-2017, 01:51 PM
Is it Bullet ready, so to speak or are there controls to tilt so they can be tilted to the left/right, do you know?

tischbein3
11-05-2017, 04:00 AM
Did something similar a few years back, never released it since there
was a strange bug when a image was assigned to a surface (crashed modeler on exit)
Books were simpler, but it got the option to do random rotations
to simulate staples of magazines
138461
138462
what I can say is, that you need _a lot_ of magazine covers for this
not to look repetitive..... around 80 was my guess when I did it

erikals
11-05-2017, 06:34 AM
Is it Bullet ready?

wouldn't Houdini the only app capable of adding Dynamics to Motion Graphics nodes ?
( not sure... )

raw-m
11-05-2017, 07:11 AM
wouldn't Houdini the only app capable of adding Dynamics to Motion Graphics nodes ?
( not sure... )

I wasn’t clear what I meant! If you took the model into Layout and applied Bullet to add a bit of variation where the books lean up again each other across a shelf, would it behave correctly?

erikals
11-05-2017, 07:37 AM
wouldn't think so. one could add a bullet "hold" object though.

https://i.imgur.com/4k7Vwhq.png

tischbein3
11-05-2017, 08:16 AM
Then again, setting up a bullet sim, and calculate it would need much more time than individually rotate a few books in modeler after creation. ;)

erikals
11-05-2017, 08:25 AM
come to think of it, a better way is to animate/envelope the gravity or mass.

-----

yeah, Bullet books Generator is probably a few years away   :)

tischbein3
11-05-2017, 08:31 AM
Yes, and the few times I used it here, I would not even want a
automatic book leaning: 2 or 3 to add some variation in a bookshelf is ok,
but more looks easily "messy"


....on the other hand running a bullet sim to see how a bunch of 2m staple of books
react when a mass hits it... been there done that :)

erikals
11-05-2017, 08:44 AM
if someone wants to give it a go, maybe a clothfx metalinked cage option could be of use  :)
they can be unlinked on impact by using clothfx sew function. needs a verify-test though.

https://i.imgur.com/ZtUr3nE.png

jeric_synergy
11-05-2017, 09:02 AM
It's not like a static bookshelf requires such advanced simulation: some simple (for programmers) trig would calculate how much one book would need to lean to contact the next, assuming every mesh is algorithmically produced.

Undoubtably, naive values would result in some ludicrously precarious arrangements, but some simple "reasonableness checking" would scotch that.

A fully dynamic bookshelf, populated dynamically with an eye towards knocking the bookshelf over and etc etc via bullet, would be a different kettle of fish.

erikals
11-05-2017, 09:26 AM
advanced dynamics bookshelf function > far from impossible, more a question of someone wanting to take the time to make it.

raw-m
11-05-2017, 11:02 AM
I do apologise! I seem to have derailed this thread, taking away from all the hard work that’s gone into what will be a very useful plugin (assuming it’s Mac compatible, of course!).

jeric_synergy
11-05-2017, 11:17 AM
Well, it's Sensei, isn't it? We could just ask him.

erikals
11-05-2017, 11:47 AM
yes, sorry.

should be a nice plugin.

MonroePoteet
11-05-2017, 01:49 PM
I wasn’t clear what I meant! If you took the model into Layout and applied Bullet to add a bit of variation where the books lean up again each other across a shelf, would it behave correctly?


I do apologise! I seem to have derailed this thread, taking away from all the hard work that’s gone into what will be a very useful plugin (assuming it’s Mac compatible, of course!).

Yes, a plugin to auto-generate the bookshelf would be great, especially for populating a library or book store.

However, for building a single bookshelf, or several, Bullet seems to do OK on a "hand made" set of books. Sample scene attached.

138469

The various objects used to create the set of books are included: a single "standing book", the points used to clone the single book in Layer 2 of Books_PointClonePlus (created using a mult-segment box with the polys Killed), and the set of books in Layer 1 before Bullet is applied.

Multiply=>Duplicate=>More...=>PointClonePlus was used to create the set of books, with the following parameters:

138470

The small random Bank, the Scale variations in X,Y and Z, and the +Y axis placement generates the initial "un-Bulleted" set of books.

This was brought into Layout, the BookShelf is a Bullet Static object and the set of books a Parts object with Convex Pieces. The Bullet settings for the set of books had a high Friction, low Bounce, and a ramped up Envelope on both Linear and Angular Damping to "settle" the books.

The frame above is frame 240 after the books have settled. For a final scene, I'd use Save Transformed Object to save the settled books.

IMO, the really tricky part is getting the covers / spines of the books to be different textures. In this scene, I used the DPKit Displacement=>Part Move to get the "part" index (i.e. individual books in the set) and used a Gradient color to assign random colors to each spine. The black text (very poorly done) was created by capturing 100 random phrases from this site:

https://randomwordgenerator.com/phrase.php?qty=1&rand_id=66&submit=+Generate+Random+Phrases+

cut-n-pasting them into an image editor and saving as a bitmap for planar mapping to the spines. As I said, not very well done, but OK for a distance shot maybe.

Anyway, just a fun project. Hope the plugin makes it really easy!

mTp

P.S. DPKit Displacement Part Move is available here:

http://dpont.pagesperso-orange.fr/plugins/nodes/Additionnal_Nodes_2.html

Remember to support Denis financially if you can!

samurai_x
11-05-2017, 07:43 PM
If you have access to max, tons of book plugin and scripts for free.
http://www.scriptspot.com/3ds-max/scripts/fill-my-bookshelves

http://www.scriptspot.com/3ds-max/scripts/bookmanager

Sensei
11-06-2017, 02:37 AM
If somebody wants to preorder Book Generator plugin, should write to me (PM here, or through Contact page on www.trueart.eu).. and you will be playing with it today.. ;)

Every book is separate mesh (for HardFX), with unique weight map value (index of book on shelf), so you can use it as source for Gradient, and then make Layout displacement (resize,offset) by yourself, or to color them differently, or map different image map..

erikals
11-06-2017, 02:48 AM
cool, just a note on HardFX, be careful using HardFX since it is basically broken, and always was. use Bullet.

( i should know, no one tested HardFX more than me )  (except perhaps Mr.Rid)

jeric_synergy
11-06-2017, 12:57 PM
If somebody wants to preorder Book Generator plugin, should write to me (PM here, or through Contact page on www.trueart.eu).. and you will be playing with it today.. ;)

Every book is separate mesh (for HardFX), with unique weight map value (index of book on shelf), so you can use it as source for Gradient, and then make Layout displacement (resize,offset) by yourself, or to color them differently, or map different image map..

Cool. I luvv that you include the weight mapping features, that's SUCH a good thing to have.

Everybody, you all DO know Sensei made a LAYOUT text generation tool, right? With weight map features that accommodate mograph operations without using DPKit, and include IIRC things like w.maps for LINES, which DPKit would have problems with (I think).

http://www2.trueart.pl/?URIType=Directory&URI=Products/Plug-Ins/TrueTypeText

Sensei
11-10-2017, 07:50 AM
Books with custom UV map, with randomized image maps, created by Book Generator:
http://forums.newtek.com/attachment.php?attachmentid=138502&d=1510325069
http://forums.newtek.com/attachment.php?attachmentid=138501&d=1510325069

138501

138502

ps. Not my book image maps..

jeric_synergy
11-10-2017, 12:22 PM
How does that work? Does the user make a giant image map, or a list of image filenames, or what?

I'm assuming the mapping is generated automagically.

daforum
11-10-2017, 01:53 PM
Books with custom UV map, with randomized image maps, created by Book Generator:
http://forums.newtek.com/attachment.php?attachmentid=138502&d=1510325069
http://forums.newtek.com/attachment.php?attachmentid=138501&d=1510325069

138501

138502

ps. Not my book image maps..

I have to say that looks like a very impressive and useful plugin.
I've built books in the past but a quicker solution looks great.
Keep up the good work Sensei.

tischbein3
11-10-2017, 02:52 PM
I have to say that looks like a very impressive and useful plugin.
I've built books in the past but a quicker solution looks great.
Keep up the good work Sensei.

Can't speak of sensei's plugin, but if you are in archviz tools like this is a no brainer / must have.

Sensei
11-10-2017, 09:10 PM
How does that work? Does the user make a giant image map, or a list of image filenames, or what?

I'm assuming the mapping is generated automagically.

ATM, user is loading covers to Image Editor (drag'n'drop folder with images to Modeler is enough), and plugin after running is randomly assigning them to books (if Multiple Surfaces, Split Surfaces (to cover surface and pages surface), and Generate Textures options are turned on).

CaptainMarlowe
11-10-2017, 11:47 PM
Looks really great. I have to consider this seriously !

jeric_synergy
11-11-2017, 12:58 AM
ATM, user is loading covers to Image Editor (drag'n'drop folder with images to Modeler is enough), and plugin after running is randomly assigning them to books (if Multiple Surfaces, Split Surfaces (to cover surface and pages surface), and Generate Textures options are turned on).

Cool. Thanks for explaining!

Sensei
11-23-2017, 09:42 AM
It's nearly finished.
Either covers and pages have custom UV maps generated.
In orientation Horizontal, books can lay one on another, so they are not anymore straight ("mess effect").
I will just add procedure disallowing often repetition of the same book covers.
Not sure what else can be much more added.
http://forums.newtek.com/attachment.php?attachmentid=138662&d=1511455096

138662

Gungho3D
11-24-2017, 12:50 AM
Sensei that is really clever, very useful.

Are you planning to allow for something thinner like magazines? Magazines seem to have reasonable presence in libraries, for example. And the way magazines are stacked is also a little different from books, as in they're stacked with the front cover facing forward, and the stacks are side by side ...

... just a thought. But already your plugin is looking impressive.

Lewis
11-24-2017, 01:43 AM
Interestign plugin, is there some set of covers that will come in as package ?
Also what is the resolution of covers (any specific ratio user needs to keep with custom covers) and is each book single surface for cover and pages or it has multiple separate surfaces ?

Thanks

Sensei
11-24-2017, 03:38 AM
and is each book single surface for cover and pages or it has multiple separate surfaces ?

User controls it in the plugin settings, and can decide what he/she wants.
You can split surfaces to separate books, and have Book 1, Book 2, Book 3, .... Book n-th
or you can have Book surface only for everything (and then use Weight map node and Gradient to texture them in Layout).
You can split surfaces to separate regions and have Cover 1, Cover 2, Cover 3, .... , Cover n-th
and Pages 1, Pages 2, Pages 3, ... , Pages n-th.
In such mode (Cover n, Pages n) BG Generate Textures button is assigning textures using traditional layering system (Texture Editor).

kopperdrake
11-24-2017, 09:30 AM
Cool! How much?