Posts: 3
Threads: 1
Joined: Feb 2022
02-14-2022, 03:49 PM
(This post was last modified: 02-14-2022, 04:24 PM by IvanDev.)
Hello!
I want to use Curvy Splines 8 to create a road like in the game Hill Dash:
But I ran into a problem that I don't know how to solve. When generating a road, the direction of the polygons on the sides of the road coincides with the normals of the curve itself. And this leads to the fact that the side parts of the road are layered on top of each other:
How can I do so to get a road grid like in this screenshot(I used a different asset for this example)? So that the sides of the road do not intersect regardless of the curvature of the curve:
Thanks!
Posts: 2,114
Threads: 92
Joined: Jun 2017
Hi
I modified the Path Relative Translation module to allow to do what you need. This is just a quick and dirty modification. A proper implementation will be release in an upcoming update. I will send you via email in a moment the modified module's code, and a scene with an example usage.
Did this help?
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.
Posts: 3
Threads: 1
Joined: Feb 2022
02-14-2022, 05:20 PM
(This post was last modified: 02-14-2022, 05:50 PM by IvanDev.)
(02-14-2022, 05:09 PM)_Aka_ Wrote: Hi
I modified the Path Relative Translation module to allow to do what you need. This is just a quick and dirty modification. A proper implementation will be release in an upcoming update. I will send you via email in a moment the modified module's code, and a scene with an example usage.
Did this help?
Have a nice day
Thanks! I'll be looking forward to an example
Correcting this "problem" would allow us to use Curvy Splines in the further development of the game, as a basis for creating roads.
(02-14-2022, 05:09 PM)_Aka_ Wrote: Hi
I modified the Path Relative Translation module to allow to do what you need. This is just a quick and dirty modification. A proper implementation will be release in an upcoming update. I will send you via email in a moment the modified module's code, and a scene with an example usage.
Did this help?
Have a nice day
Thanks for the example! Yes, it helps a little.
But unfortunately, this method is less convenient than generating a road along a curve, which we create by specifying points on the scene. And if I understand correctly, then with this approach it will not be possible to use optimization in the Shape Extrusion module?
Posts: 2,114
Threads: 92
Joined: Jun 2017
02-14-2022, 10:24 PM
(This post was last modified: 02-14-2022, 10:53 PM by _Aka_.)
You are right, you can't use the Optimize option of the Path tab with that solution. But don't worry, I have another solution that solves this issue plus is editable with scene nodes. It is a modification of the Shape Extrusion module that will allow to override the used tangent and orientation (up vector) with a fixed value instead of using those of the spline. Here is the result:
https://postimg.cc/HrPNcVbP
vs
https://postimg.cc/9RygnbKv
I will send via email modified code and example scene
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.
Posts: 2,114
Threads: 92
Joined: Jun 2017
Also, and I feel dumb asking this question: how did you insert the images in your post? I usually can, but now couldn't, and haven't yet found what the problem is.
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 3
Threads: 1
Joined: Feb 2022
02-15-2022, 06:38 AM
(This post was last modified: 02-15-2022, 06:44 AM by IvanDev.)
(02-14-2022, 10:24 PM)_Aka_ Wrote: You are right, you can't use the Optimize option of the Path tab with that solution. But don't worry, I have another solution that solves this issue plus is editable with scene nodes. It is a modification of the Shape Extrusion module that will allow to override the used tangent and orientation (up vector) with a fixed value instead of using those of the spline. Here is the result:
https://postimg.cc/HrPNcVbP
vs
https://postimg.cc/9RygnbKv
I will send via email modified code and example scene
Have a nice day
Thanks! This seems to be exactly what I wanted!
(02-14-2022, 10:29 PM)_Aka_ Wrote: Also, and I feel dumb asking this question: how did you insert the images in your post? I usually can, but now couldn't, and haven't yet found what the problem is.
I uploaded a picture to https://radikal.ru/ and used these tags in the message:
Code:
[img]https://a.radikal.ru/a15/2202/b7/73cba70efc12t.jpg[/img]
Maybe you need the full path to the image on the server? With image name and filename extension?
Example:
Posts: 2,114
Threads: 92
Joined: Jun 2017
(02-15-2022, 06:38 AM)IvanDev Wrote: Thanks! This seems to be exactly what I wanted!
Glad to read that. I will implement that feature properly at some point in the future. When that will be done, you will find a reference to it in the release notes
(02-15-2022, 06:38 AM)IvanDev Wrote: Maybe you need the full path to the image on the server? With image name and filename extension?
That's exactly it. I thought I was pasting the full path to the image, but I wasn't. I feel dumb
Thanks for correcting me.
Feel free to ask if you have any other question.
If and when you feel like it, please leave a review for the asset, that helps a lot.
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.