Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mesh vertex colors
#2
Hi
This feature is not implemented. If you need to implement it, here is how I see it can be done:
  1. Add a VertexColors to CGVMesh:
    I imagine something like this:         public Color[] VertexColors;
  2. Modify CGVMesh.ToMesh so tha it sets the vertex colors to the mesh
  3. If you combine/merge meshes, you will need to handle VertexColors in the CGVMesh.MergeVMesh(es) methods.
  4. In BuildVolumeMesh.Refresh, implement your logic that will define the colors for each vertice and assign CGVMesh.VertexColors
Did this help?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Mesh vertex colors - by Mattii - 05-31-2023, 10:46 AM
RE: Mesh vertex colors - by _Aka_ - 06-01-2023, 11:14 AM
RE: Mesh vertex colors - by _Aka_ - 06-01-2023, 11:19 AM
RE: Mesh vertex colors - by Mattii - 06-01-2023, 04:33 PM
RE: Mesh vertex colors - by _Aka_ - 06-01-2023, 07:33 PM
RE: Mesh vertex colors - by Mattii - 06-02-2023, 01:30 PM
RE: Mesh vertex colors - by _Aka_ - 06-02-2023, 04:52 PM

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_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_
  Trigger Zones along Spline Mesh dlees9191 1 5 01-05-2024, 10:18 AM
Last Post: _Aka_

Forum Jump: