Jump to content
Sign in to follow this  
kiryha

Reconstruct combined objects

Recommended Posts

Hello!

I need to recreate combined objects from Maya.
In this particular case — roads. So I delete all edges but the center line and build a curve on points. But I need to process this algorithm for each separate geometry piece, not the whole object and I don't know how to do it. 
Probably for each block will work here, but I don't know how to setup it...
 

ROADS.jpg

ROADS_001.hipnc

Share this post


Link to post
Share on other sites

Exactly! Thanks, Hernan!

Any idea how to sort point order to avoid wrong "loops"?

 

pointOrder.jpg

Share this post


Link to post
Share on other sites

That "convertline" option is a better solution, thanks, Noobini! Now I need to figure out how to avoid missing points...

Share this post


Link to post
Share on other sites

here it is.....COMPLETE version.

The fuse IS needed. If you disable it and explode you'll see the ends come away....

ROADS_001_fixed_complete.hipnc

(I also added a flatten Y so all is completely flat...but you may disable that to return to the orig road if you prefer)

Edited by Noobini
  • Like 1

Share this post


Link to post
Share on other sites

Despite the wire looks fine, if I use sweep SOP (which I planned to use for road construction) the problem with "convert line" becomes obvious:

convertLine.jpg

So I am thinking to return to the initial solution (inside for loop) and the tasks I need to solve are:
- how to get middle edge loop (now I get it without endpoints)
how to sort out points (they have messed numbers sometimes) in that loop

Edited by kiryha

Share this post


Link to post
Share on other sites

Polyexpand will give one polygon, how to replicate the source topology? 
Also, how to unwrap UVs for such shapes if I wish to get NURBS style UVs (straight rectangular shape of UV instead of what i will get after planar projection)?

Edited by kiryha

Share this post


Link to post
Share on other sites

want sweep ? here...go in and play with carve. I've made the road with a raised profile, you can of course use a simple flat line instead.

(You can add a convert after the polypath and convert it to NURBS curve if you want, you may want to do this to help UV...pls ask other experts around re: auto UVs...I don't know jack on this subject)

ROADS_Sweeper.hipnc

Road_Sweeper.jpg

Edited by Noobini
  • Like 1

Share this post


Link to post
Share on other sites

poked around a bit with UV...it's a bit squishy...

(guess it's because the path is not 1 continuous fixed length path but made up of multi paths...there's probably a way to do it properly by dividing sub path lengths by grand total length...your turn to poke around)

ROADS_Sweeper_UV.hipnc

Edited by Noobini

Share this post


Link to post
Share on other sites

Cool. A bit longer way that I could imagine at the beginning :)

What the purpose of Angle parameter in uvtexture node? It works not as you can expect from its name...
And if I understand correctly, you divide the length of each curve on a total length of all curves (32*arclen("../carve1",0,1,0)/detail("../attribpromote1","perimeter",0)).
It gives you a normalized length of each individual curve? And you use this value to scale U for each curve by the same amount?

And what the difference between BLAST, DELETE and DISSOLVE nodes?

And how to make Polyexpand outline with round ends?

 polyExpand.thumb.PNG.ccb903f177687b7e8f01f05b424744f2.PNG

Edited by kiryha

Share this post


Link to post
Share on other sites

in UV editor...the path goes as a flat line at the bottom...for the profile...if you don't turn it 90deg...it goes parallel to the path and so won't give you proper UV.....like you draw out a grid...one dimension is perpendicular to the other...

Old school Jeff says Blast is waaaaaaay faster than Delete coz it has less options (Delete allows things like expressions)..

Delete edges lead to holes, Dissolve edges tries to fill holes

The last picture is very rude...not touching that...

  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×