Fitting copied geo to primitive size?

   4057   9   1
User Avatar
Member
1533 posts
Joined: March 2020
Offline
Hi

I'm trying to copy stamp geometry onto the center of the primitives and fit that stamped geometry to the scale of primitive it's stamped onto.

So getting the cntr of the prim isn't a problem, but my issue is getting the stamped geo to fit the size of the primitive.
If it was a 2d grid this would be simpler, but I have to apply it to a 3d model.

My original thought was to flatten out the geometry, run a For Each on the primitives to get the X and Y scale of every primitive, then transform the geometry back to it's original state. However I'm not having to much success with this one.

Any Ideas?
Edited by JasonSlab - March 31, 2017 11:30:50
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
User Avatar
Member
1533 posts
Joined: March 2020
Offline
Seem to be having trouble attaching a pic.
heres's a dropbox upload of it:
https://www.dropbox.com/s/xvi393f3yiyznrp/stamp_q.jpg?dl=0 [dropbox.com]
Edited by JasonSlab - March 31, 2017 11:36:09
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
User Avatar
Member
1533 posts
Joined: March 2020
Offline
After playing around with this some more, its become trickier than I first imagined.
The problem is that polygons are often skewed/sheared which means I cant simply copy stamp the shapes.I need to somehow deform or rebuild each shape to fit each polygon.. Not sure if this is even possible…

Maybe a totally different approach is needed. Is there a way to tile geometry over a surface based off UVs?

J
Edited by JasonSlab - April 2, 2017 05:57:48
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
i think primuv can be used for that.
https://vimeo.com/149419641 [vimeo.com]
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
1533 posts
Joined: March 2020
Offline
ahh thanks for the link, I'll look into it using primuv's, just got to brush up on my Russian first
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
User Avatar
Member
1533 posts
Joined: March 2020
Offline
mestela
Or Japanese if that's easier.

http://qiita.com/yone80@github/items/e373c104520c38bd9610 [qiita.com]
'0
O haha thanks, so much easier to understand
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
User Avatar
Member
387 posts
Joined: Nov. 2008
Offline
Sounds like a problem for NURBS + Project SOP:
(Convert each poly to NURBS then project your polygonal shape parametrically)

Quick to setup, but slower to compute for a lot of polygons.

Attachments:
project.PNG (439.4 KB)

User Avatar
Member
1533 posts
Joined: March 2020
Offline
pezetko
Sounds like a problem for NURBS + Project SOP:
(Convert each poly to NURBS then project your polygonal shape parametrically)

Quick to setup, but slower to compute for a lot of polygons.

Good idea thanks, I always forget about nurbs! Will test it out for my needs.
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
User Avatar
Member
1533 posts
Joined: March 2020
Offline
Hey all

I managed to hack together a file from the Russian video, it's not complete, but I built the part I needed, which seems to be working like a treat! I had a dig around in the Japanese version to, but found the Russian tut to be a bit more straightforward!

I've attached a hip with the basic setup, which also includes Pezetko's idea.

edit: Again I can't seem to attach files to the forum, so here's a dropbox link:
https://www.dropbox.com/s/trkfgck7m04uk35/fittoPrim_rnd_v01.hip?dl=0 [dropbox.com]

Thanks for the help.

Jason
Edited by JasonSlab - April 3, 2017 09:38:28
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
  • Quick Links