Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable mesh extrusion offset per segment
First of all, I just bought this asset and I have to say I'm amazed by the extensive example set you provide - awesome!

I'm working on a racing game, and want to use Curvy for the generation of road along a spline.
I've successfully used the Shape Extrusion template to get good initial results,
but now I want the extrusion to be variable based on some metadata for each point on the spline -
between each point, the track should smoothly grow wider/narrower based on this "width" metadata.

Can something like this be achieved with the Shape Extrusion module, or do I need to build a custom system for this?
If so, can you give me some pointers how to best approach this?

Thank you very much in advance, and again, thanks for the amazing asset you're providing!


Thanks for the compliment Smile

In the Shape Extrusion module, there is a Scale tab that allows for variable scaling. To make the link with the metadata, create a script that will reads the metadata and modifies the scaling curve accordingly.

Some members you will have to use:
CurvySpline.GetMetadata or CurvySpline.GetInterpolatedMetadata (used in an example script MetaDataController, which is used in example scene 01_MetaData)

I hope this helped
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.

Possibly Related Threads…
Thread Author Replies Views Last Post
  building game changes UV spaces for generated mesh scr33ner 9 11 01-18-2023, 09:16 AM
Last Post: _Aka_
  Spline mesh optimization itsGama 6 15 01-13-2023, 04:49 PM
Last Post: _Aka_
  How to make mesh appear only on curves? Vancete 2 11 01-09-2023, 09:10 AM
Last Post: _Aka_
  Volume Mesh bug based on whether input spline is closed GameJazz 2 10 12-15-2022, 08:32 AM
Last Post: GameJazz

Forum Jump: