Jump to content


Growing lines from a point ( import .ai )


  • Please log in to reply
9 replies to this topic

#1 strages

strages

    Peon

  • Members
  • Pip
  • 22 posts
  • Joined: 19-October 11
  • Location:Netherlands
  • Name:Dimitrie Hoekstra

Posted 17 August 2012 - 07:33 AM

Dear community,

Having imported an illustrator .ai file ( say for example a spiderweb ), I want to let it grow from the center. However the spiderweb is imported (this can't be changed) now i have a lot of lines, points primitives vectors etc. How can I grow them like with the carve tool ;) but really from the center.

right now i made a construction with various carve sops, however for each web, every line begins at the same time, wherever it starts. Also i want all lines to grow in the same direction as they are randomly growing in direction ( i know i can change this by reversing u and v with a prim node, however i haven found a procedural way to select only those going in the wrong direction)

help is appreciated!

thank you!

#2 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 17 August 2012 - 12:44 PM

Can you post the AI file?

I'd like to give a crack at it.
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#3 zarti

zarti

    Illusionist

  • Members
  • PipPipPip
  • 304 posts
  • Joined: 21-February 10
  • Location:39th parallel
  • Name:CTRL-C CTRL-V

Posted 17 August 2012 - 04:14 PM

View Poststrages, on 17 August 2012 - 07:33 AM, said:

..

.. . How can I grow them like with the carve tool ;) but really from the center.

..

hi ,

i believe you somehow you have to rebuild the web in houdini so the Carve SOP can do what you want .

with rebuild i mean clean prims but keep points with some attribs maybe to later reconnect those and bring back original design .

at least that is wat i did lately in a similar situation ..

carve seems to respect vertices .



.cheers
keep walking .

#4 strages

strages

    Peon

  • Members
  • Pip
  • 22 posts
  • Joined: 19-October 11
  • Location:Netherlands
  • Name:Dimitrie Hoekstra

Posted 19 August 2012 - 11:48 PM

View Posthopbin9, on 17 August 2012 - 12:44 PM, said:

Can you post the AI file?

I'd like to give a crack at it.

Hey thanks for your time, however I can't post the ai file as it is not mine to share ( part of the project at the company i work at ;) )

Edited by strages, 19 August 2012 - 11:49 PM.


#5 strages

strages

    Peon

  • Members
  • Pip
  • 22 posts
  • Joined: 19-October 11
  • Location:Netherlands
  • Name:Dimitrie Hoekstra

Posted 19 August 2012 - 11:53 PM

View Postzarti, on 17 August 2012 - 04:14 PM, said:

hi ,

i believe you somehow you have to rebuild the web in houdini so the Carve SOP can do what you want .

with rebuild i mean clean prims but keep points with some attribs maybe to later reconnect those and bring back original design .

at least that is wat i did lately in a similar situation ..

carve seems to respect vertices .



.cheers

cheers indeed :) I got a clean import of the data out of illustrator. However rebuilding is hard, because if i delete all primitives and only have points and so left. Houdini doesn't know which points to connect.

got an idea maybe: to sort primitives on some sort of proximity to the middle. ( as in a board to shoot arrows in to at archery ) and then use the carve tool setup i made.. will try!

#6 zarti

zarti

    Illusionist

  • Members
  • PipPipPip
  • 304 posts
  • Joined: 21-February 10
  • Location:39th parallel
  • Name:CTRL-C CTRL-V

Posted 20 August 2012 - 12:41 PM

View Poststrages, on 19 August 2012 - 11:53 PM, said:

cheers indeed :) I got a clean import of the data out of illustrator. However rebuilding is hard, because if i delete all primitives and only have points and so left. Houdini doesn't know which points to connect.

got an idea maybe: to sort primitives on some sort of proximity to the middle. ( as in a board to shoot arrows in to at archery ) and then use the carve tool setup i made.. will try!

here i did something ..

- in my file 'imported_web' node assumes that it is the imported vector file in the network .
- before playing with carve_Final , try the carve_test node
- the re-building procedure appears more simple than i thought ( black netbox )

--

zpiderWebCarvedFromCenter.png

--

Attached File  zpiderWebCarvedFromCenter.hipnc   91.84K   53 downloads ( H11 file )

--



hope this works for you too ..

.cheers
keep walking .

#7 Ole

Ole

    Peon

  • Members
  • Pip
  • 53 posts
  • Joined: 10-November 07
  • Location:Oslo, Norway
  • Name:Ole G.

Posted 20 August 2012 - 11:47 PM

View Poststrages, on 19 August 2012 - 11:53 PM, said:

cheers indeed :) I got a clean import of the data out of illustrator. However rebuilding is hard, because if i delete all primitives and only have points and so left. Houdini doesn't know which points to connect.




To circumvent this, perhaps you could group your primitives using partition (or assemble sop) and run the sort and rebuild within a for-each sop based on groups.



Gimpville.no

#8 stabby

stabby

    Peon

  • Members
  • Pip
  • 18 posts
  • Joined: 15-January 07
  • Name:. .

Posted 22 August 2012 - 06:51 PM

This should work with arbitrary geo.

The nodes you might have to tweak are in yellow.  Pick you start points with ROOTS, adjust the max number on GET_DISTANCE so the mesh has no yellow, and use the Distance channel on ANIMATE to carve away the mesh.  

There are three carve nodes because sometimes just using one doesn't totally cut all the poly edges into separate prims - three usually does the job.  
The network relies on every prim having only two vertices.

Also, there are occasions when an edge should be carved away from both ends,  this network doesn't deal with that.  Instead, the edge will be carved from one end only, but too quickly...

Attached File  carve.hip   150.98K   56 downloads

ps. to make it grow, not shrink, change the expressions in delete1 to $CUT == 0, and delete2 to $MAPU > $CUT

Edited by stabby, 23 August 2012 - 02:43 PM.


#9 petz

petz

    Initiate

  • Members
  • PipPip
  • 213 posts
  • Joined: 30-June 07

Posted 23 August 2012 - 03:46 PM

View Poststabby, on 22 August 2012 - 06:51 PM, said:

This should work with arbitrary geo.

The nodes you might have to tweak are in yellow.  Pick you start points with ROOTS, adjust the max number on GET_DISTANCE so the mesh has no yellow, and use the Distance channel on ANIMATE to carve away the mesh.  

There are three carve nodes because sometimes just using one doesn't totally cut all the poly edges into separate prims - three usually does the job.  
The network relies on every prim having only two vertices.

Also, there are occasions when an edge should be carved away from both ends,  this network doesn't deal with that.  Instead, the edge will be carved from one end only, but too quickly...

Attachment carve.hip

ps. to make it grow, not shrink, change the expressions in delete1 to $CUT == 0, and delete2 to $MAPU > $CUT


nice one!
here is another try.

petz

Attached Files



#10 Joker386

Joker386

    Peon

  • Members
  • Pip
  • 23 posts
  • Joined: 10-December 11
  • Location:Iran
  • Name:Sadjad Rabiee

Posted 28 August 2012 - 07:03 AM

You can use point Clouds !

Resample your Web's curve to make too many point near together.

put center point in group for example Group1.

use point clouds and dop network to put neighbor points in the group1 in each frame.

delete points except group's points.

for learn to use point cloud see cmiVFX tips and tricks 4 tutorial .




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users