Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gap between spline mesh segments
#11
Hi

The solution I see that will avoid the small gaps is to use a single spline for the extrusion, but:

(10-18-2022, 06:47 PM)dromo Wrote: The whole train network may end up being very big, so I cannot turn it all into a single spline to make a single mesh extrusion.

Is it for performance reasons? If so, you can still do the following:

Use the same spline for the whole track, but have multiple generators having shape extrusion. Each extrusion will be for a part of the track (using the Range parameter of the Shape Extrusion module). Then, when you update the spline, make sure only the relevant extrusion is refreshing, while the others do not refresh (by setting the Auto Refresh parameter to false for the generators that you don't want to refresh).

What do you think about this idea?

Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#12
Hello - thank you for your message. The reason I need more than one mesh is that the player can make branches to the railway, so that there will be connections between railway lines.

I have made models for the railroad switches, which have an animation for the track changing to switch onto the different rail paths. The models have two small splines with a connection, and are put on the map by the player. The player can then make the railway line splines to connect to the railroad switches, and join them with spline connections.

This way the player can make railway tracks that join each other, with an animated railroad switch.

This is the reason why I need to have separate railway spline meshes that can join each other without gaps, which I understand makes things rather complicated unfortunately.

As the gaps between meshes are quite small, all I might need is for the mesh to extend a bit after the spline finishes (by a few game world centimetres), so it overlaps with the mesh it is joining. Do you think this could be a solution? Perhaps by using the mesh cap generator, or just by moving the last control point back slightly?

Thank you for your advice!
Reply
#13
Hi
The idea of overlapping the railroad mesh with the switch mesh seems like a good idea. About which way to use to do that, I couldn't advise one over the other, both seem viable to me. Can you please keep me updated about which one you ended up preferring?
Thanks and have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#14
Hello - Yes I will let you know which option I use. 

Hopefully one of them will work Smile

Thank you for your help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 19 04-17-2024, 10:57 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_

Forum Jump: