Jump to content

Sweep Texturing Corners


Recommended Posts

Does anyone have an ellagant solution to the Corner UV Problem when working with sweep surfaces.

I've attached two images illustrating the problem and a Hip File.

I build the UV's using rows and collumn approach, but when creating things like corners I need to pinch separate the inside corner verts.

a Procedural solution is needed as I don't know what the corner angle may be.

thanks in advance for your thoughts.

Cheers,

kni

uv_sweep.hip

post-522-0-76909400-1364434335_thumb.jpg

post-522-0-91080400-1364434346_thumb.jpg

Link to comment
Share on other sites

I guess I should re explain this as , texturing the sides with out interpolation on the corners. I am building a window maker otl for a proof of concept. and am building the frame via a sweep texture.

For wood frames where I want the textures to look like the wood is cut together I guess I should try to actually cut the wood. rather than doing it through textures.

but a way to do the uv split as illustrated in the image would be pretty usefull.

post-522-0-81673900-1364504227_thumb.jpg

Link to comment
Share on other sites

can't you just use a planar projection and then move/rotate all the pieces on top of each other. or in the same area as your NURBS-like UVs?

Since I think you want to emulate separate planks for your windows, I would say you could approach it in this actual way (plank by plank/ polygon by polygon)

Also you can poly-split as well, just use a fuse node and set it to unique, convert the Uvs to point uvs (attrib promote),

move/scale/skew your pieces, convert the uvs back to vertex uvs and fuse everything back together.

Edited by acey195
Link to comment
Share on other sites

thanks acey but the solution only works for this simple example. My fault for not providing you guys with more.

That gets harder when the profile shapes are more complex - like attached image -

But what I might have to do is Create individual planks from the profiles, longer than what is needed and use a clip on the edges. then move them to the correct location.

or just live with the texture stretch !

:-P

post-522-0-74270700-1364518046_thumb.jpg

post-522-0-39907000-1364518056_thumb.jpg

Edited by kni8_2k
Link to comment
Share on other sites

What you could do is calculate the orientation of each piece from the backbone curve using something like a VOPSOP with dotproducts.

That way you could procedurally rotate the pieces, you can also use attrib promote to find the minimum and maximum values of a certain UV patch so you can place them correctly.

in a similar way you could calculate the amount you need to stretch certain uvs. These methods are slightly more advanced though.

There multiple ways to do this essentially, though some simpler and others more accurate.

The clip method may also work just fine, but would probably slower than a more mathematical approach.

But this only becomes important for when you want to do 100+ windows.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...