Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: T.P.Sparrow on March 13, 2014, 07:07:30 PM
-
I have painted vertex colors into this cube from blender.
(http://forum.unity3d.com/attachment.php?attachmentid=91294&d=1394742894)
How can I change each piece of the square to a different color dynamically with vertex color?
I am getting terrible results and cannot figure out how to get a solid color per face.
(http://forum.unity3d.com/attachment.php?attachmentid=91295&d=1394743091)
How would this be done using Playmaker or a custom action?
Thanks!
-
As far as I know you can't get a solid color per face with vertex colors, at least not if you want the neighbor face to be a different solid color, because they share the vertices you want to color.
-
Thanks for the replay!
Yes, that is the issue I am trying to reconcile. You are able to get a solid color per side if you only have 2 triangles per side.
However, I want to have 4 or more sections on each side of the cube.
Is there anyways I can do this without building a prefab made up of x number of smaller cubes? Or is this really not that bad?
Thanks!
-
Hi,
You'll need to work with proper textures here, OR split your mesh into smaller chunk each representing a portion of your global shape and then they are treated as really separate mesh with each it own shader and therefore all will be very sharp.
bye,
Jean
-
Sine this game might go on mobile, what is the best way to keep it optimized?
I could have 300+ of these cubes in a single level (their walls).
I need their colors to be dynamically set because the walls closer to the end of the level will be more red and the walls further away more blue.
I guess the question is:
Would it really be that bad if I have 10+ smaller cubes per wall and maybe 300 or 400 walls per level since they all still would be in the same drawcall?
Thanks!
-
Hi,
I am not too sure actually. I think this would need to be tested.
however I think that studying texturing painting would be appropriate here,
Bye,
Jean
-
Yes, I don't see any other way, thanks for your time!