Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I want to know how many times the texture repeats.
#1
Hello,
I am generating a mesh in Curvy Generator using Volume Mesh.

I would like to know how many repeats of the material texture I have assigned to the generated mesh.

[Image: light.dotup.org64565.png]

I know that the above would probably be about 6.5 repeats, but I am unable to calculate it properly.
The total length of the path is 240m, the total length of the shape is 19.14484m, and the texture is 512x512, but I don't know what I am missing in calculating 6.5 from this.

I have selected Scale V for Keep Aspect in the Volume Mesh material.
UV Scale is X=1,Y=1.

If you have any hints that might help us in our calculations, I would appreciate it if you could let me know.
(Aspect ratios used internally by Curvy Spline, etc)
Thank you in advance.

Edit:
Version is Curvy Splines 8.7.1.
The reason I am asking this question is because I am changing the mainTextureOffset of the material in a script to achieve UV scrolling.
I ask because I need to match the UV scrolling speed with the scrolling speed in Unity's 3D space, and this calculation is necessary in the process.
Reply


Messages In This Thread
I want to know how many times the texture repeats. - by yanke - 09-08-2023, 08:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to create a road texture at runtime? artsung 1 4 01-30-2024, 09:30 AM
Last Post: _Aka_
  Some times mesh distortion. mammuoils1 5 3,759 12-24-2019, 05:40 PM
Last Post: _Aka_
  How to properly set UV for extruded spline texture Pixel Flipper 3 3,110 09-05-2019, 11:55 AM
Last Post: _Aka_
Brick texture painting wont work well m_mov_sia3 1 3,879 04-28-2015, 01:12 PM
Last Post: Jake

Forum Jump: