Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intersection of parts of the mesh after generation
#1
Hello!
I want to use Curvy Splines 8 to create a road like in the game Hill Dash:
[Image: 90628a95e1a99411eef8a1d3bb91c70e.jpg]

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:
[Image: 956c848d5e90t.jpg]

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:
[Image: 330146406d06t.jpg]

Thanks!
Reply
#2
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
(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 Heart

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?
Reply
#4
Wink 
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#6
(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:
[Image: 73cba70efc12t.jpg]
Reply
#7
(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 Big Grin 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 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
Question Add Component to created mesh? HarvesteR 1 2 9 hours ago
Last Post: _Aka_
  Adding a CP breaks the mesh lethekun 3 2 Yesterday, 01:53 AM
Last Post: _Aka_
  I want to make the beginning and end of a mesh translucent. yanke 3 4 05-21-2022, 11:53 AM
Last Post: _Aka_
  How to create gaps in spline mesh? linkinballzpokemon 1 1 04-09-2022, 12:29 PM
Last Post: _Aka_

Forum Jump: