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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 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: