Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making "gaps" in the generated spline mesh
#1
Greetings!

I have a setup, using Curvy 8, where I am generating a racetrack for a game I am making. I would like to make gaps in the racetrack, to represent jumps.

I would like to know if it is possible, and if so how, to define on my single spline points where the mesh won't be generated.

Essentially this:
[Image: HDgftnB]

So visually, it looks like there is a hole in the track. This is represented by a hole in the mesh and collider.
But, the spline stays complete.

Is that possible?

Thanks!
Reply
#2
Hi

Yes it is possible, in two different ways. Please check the documentations bellow, each related to one of the possible ways:

Range parameter of Shape Extrusion module:
https://curvyeditor.com/documentation/ge...sion#range
Range parameters in Input Spline Path module:
https://curvyeditor.com/documentation/ge...path#range

Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#3
(10-23-2023, 08:51 PM)_Aka_ Wrote: Hi

Yes it is possible, in two different ways. Please check the documentations bellow, each related to one of the possible ways:

Range parameter of Shape Extrusion module:
https://curvyeditor.com/documentation/ge...sion#range
Range parameters in Input Spline Path module:
https://curvyeditor.com/documentation/ge...path#range

Have a nice day

Thank you so much!
Reply
#4
One more question. I am making those gaps in my Curvy Spline, but I want to connect a closed spline at the end. However, when I am using multiple path ranges, it does not allow me to start from say the last point of my spline and go to the first point of my spline, to connect the last 2 points in a certain way.

How can I do that?

Here is the issue in Unity. I want to connect CP 12 (last point of the spline) to CP 00 (selected in the image here).
https://imgur.com/a/VzygExY

When I try to use CP 00 as the end CP in After Thin, I get:
[Curvy] Input module After Thin: EndCP has an index (0) less or equal than StartCP (9)

Which makes sense... But then how do I connect them?

Thanks!
Reply
#5
Hi
If you want to define a range between the last and first CPs of a closed spline, you will need to use the Range settings in Shape Extrusion. The ones from Input Spline Path are not compatible with such use cases for now.
I hope this helped.
Have a nice day.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#6
(11-22-2023, 12:56 PM)_Aka_ Wrote: Hi
If you want to define a range between the last and first CPs of a closed spline, you will need to use the Range settings in Shape Extrusion. The ones from Input Spline Path are not compatible with such use cases for now.
I hope this helped.
Have a nice day.

First, thanks for the reply! Really cool to see you giving support. It is very much appreciated.
The issue with Shape extrusion range is that it seems to not cut the range in the right orientation for me: https://imgur.com/a/svSxjFG

It goes from the left side of my track to the right side, instead of forwards and backwards.
Is there somehing I did wrong?

Thanks!

EDIT: I think I have figured it out! I need to not edit the Cross section range, but the Path Range. By setting the length of the Path in shape extrusion to less than 1, the range now works properly to do what I want.
This is solved. Thank you!
Reply
#7
You are welcome
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can Deform Mesh shrink as well as stretch? davelloyd 1 3 Yesterday, 11:16 AM
Last Post: _Aka_
  Method of scattering objects along spline joebain 1 3 11-26-2024, 03:20 PM
Last Post: _Aka_
  Is it possible to make the face at the end of mesh? Chanon 3 6 11-14-2024, 04:38 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 5 13 10-29-2024, 10:19 AM
Last Post: _Aka_

Forum Jump: