nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.22k stars 233 forks source link

Sverchok Object In and Dupli #338

Closed enzyme69 closed 10 years ago

enzyme69 commented 10 years ago

I just realized something: Sverchok Object In currently is not respecting the Dupli Clone Objects.

While Array Modifier + Curve Modifier will be read into Sverchok, but DupliFrame is not read.

Do you think we can have additional option so that we can also use the Dupli?

Blend is here: https://www.dropbox.com/s/t2tyj0i3c8cj1i5/array_modifier_sverchok_005.blend

zeffii commented 10 years ago

It might help for you to think of the Object In node was a convenience node that we can use to import profiles for lathe / extrusion / donor shapes / building blocks which you don't want to waste time constructing from scratch inside Sverchok.

At present it is not Dupli aware, this is perhaps also not the most urgent thing on our list of things we should be doing.

zeffii commented 10 years ago

in my Zen of Sverchok, 'avoid using object in unless you can't' is high on the list.

nortikin commented 10 years ago

Yes, Sverchok's concept operates inner clones factory. Sverchok uses concept, according to which any data can be multiplyed in process of doing it. In moment when you join matrix and vertices - you create clones. not earlyer. matrix == object; vertices+edges+polygons == data You simply making your own addon with tools of sverchok, not with pyhton

zeffii commented 10 years ago

what it might be able to do is get the Matrices for the dupli frames, but this still isn't ideal. We should be able to calculate the matrices inside Sverchok from a given 2d/3d Curve, Cycle, or point list. This is essentially what you are using dupliframe for anyway.

nortikin commented 10 years ago

ideal usage of object in is to insert external attractor point to manipulate distances or other case simulate crowds transit (i.e. particles that represents cars, peoples, etc.), or curve points to manipulate surface.

enzyme69 commented 10 years ago

Many convenient from Dupli. Such as Curve along path with twist and scaling. if Sverchok has that, then I can skip Dupli.

In my latest blog post, I use modifier Array and Curve which Sverchok can read.

If Sverchok never gave ability to read Post Modifier, the function would be less flexible, in my opinion. the fact that it was unlocked early, it became very powerful.

and curve itself is nicer when user have direct control over the spline point , which is inside edit mode.

what the most ideal is to have empty at object level that become the spline control for DV node-tree.

If not urgent, we can put this request to sleep. I will find another way maybe using Particles instancing.

nortikin commented 10 years ago

post modifier now called just post flag in object_in node

@enzyme69, manage object's matrices instead of object and output one object binded to those matrices

zeffii commented 10 years ago

Agreed, Sverchok could utilize 3d view more beyond drawing BGL geometry. This definitely deserves a topic of its own and thorough discussion and prototyping.