Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable mesh extrusion offset per segment
#1
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!

Best,
Marius
Reply
#2
Hi

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:
BuildShapeExtrusion.ScaleMultiplierX
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 4 01-17-2022, 01:39 PM
Last Post: _Aka_
  Bend mesh along spline quickytools 1 3 01-11-2022, 09:14 PM
Last Post: _Aka_
  Problem with combining shape extrusion and DistanceToTF kazlik 3 3 01-08-2022, 11:53 AM
Last Post: _Aka_
  Export Mesh? athos_k 1 16 12-13-2021, 11:50 AM
Last Post: _Aka_

Forum Jump: