11-14-2022, 08:25 PM
(11-14-2022, 10:01 AM)_Aka_ Wrote:(11-11-2022, 05:27 PM)tairoark Wrote: Using the X Multiplier under Scale of the Shape Extrusion module is a great solution for me. Much better than using the Variable Mixed Shape module with more control.
Turning off Optimization helps get ride of the darkened bands but only if I set Cross Resolution to 100. Anything less starts to show the darkened bands just like turning on Optimization. This is a solution not great as I will be running my App on Mobile and having the maximum number of triangles created is not preferable.
Is the issue not in the triangle count, but how the the texture is spread among the triangle. Is there another way to handle this to lower my triangle count but still have proper texture mapping that doesn't cause this darkened bands?
Is this a problem with how I specify my CG Meta data on the profile?
In the end, my profiles will not all be simple rectangles but will likely have this flat top surface that I need to have nicely textured without the darkened bands.
I've attached a simple project where you can adjust the Shape Extrusion parameters to see what I mean.
Your generators not having Auto Refresh set to true gets me everytime, I am always like "why my changes are not applied, is this a bug?"
I attached the corrected scene. The correction is to set Hard Edge to true in the Meta CG Options of the control points. Details about those options available here: https://curvyeditor.com/documentation/splines/curvysplinesegment?redirect=1#meta_cg_options
I am familiar with and had tried to use Hard Edge in my project. However, when ever I did, I received the following error:
Looking into it, it seems to be an issue/bug with using Hard Edge and Variable Mix Shape. But now that I am switching over to using Scale under Shape Extrusion to control the start and end widths, I can avoid the issue.
You may want to look at it for others. It is easy to reproduce using the start of the graph in the photo above.