Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SplinePathMeshBuilder : Shape Rectangle with complete UVs
#1
Hi Jake !

I have a little demand. I hope this is a little thing to do.
Into the SplinePathMeshBuilder script, we have the ability to chose a Rectangular shape. And the way it behaves is the best choice for my project.
Unfortunately, The UVs are only on the top and bottom. Not on the side of the rectangle.

Is there a way to add theses missing UV's ?
Thanks a lot
Seb
 
Reply
#2
You can alter the way UVs are generated in the code (CurvyMeshBuilder.cs):

UV's are added in Extrude() (line 594ff). mUV[] is the array that holds the mesh's UV data. We take U from the input mesh and V is calculated by getV() based on the inspector settings. With U coming from the Input mesh, you can also change the rectable input mesh generation (CurvyUtility.cs: MeshHelper.CreateRectangleMesh() ).

Jake

PS: I forgot the default answer: the new version will offer a lot of more options...

 
Reply
#3
Thanks a lot Jake !

I will have a look into that Smile
Do you know aproximately the date of your next release ?
Seb
Reply
#4
When it's done ™...seriously, I don't know. We're working hard on it, but it's too early to make a good guestimation.
Reply
#5
Okay no pb ! thank you jake !!!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Animating a shape on along a spline will not playback in scene or game views sam_bond 3 9 05-03-2023, 11:41 AM
Last Post: _Aka_
  Inaccuracies with offseted Shape Extrusions MichaelMenzi 6 15 12-14-2022, 10:22 AM
Last Post: _Aka_
  Shape extrusion scaling tairoark 5 19 06-07-2022, 05:35 AM
Last Post: _Aka_
Bug Shape Extrusion does not align with Input Spline Shape bit9labs 1 9 04-08-2022, 12:27 PM
Last Post: _Aka_

Forum Jump: