playMaker

Author Topic: Multi Vertex Color [SOLVED]  (Read 1985 times)

T.P.Sparrow

  • Guest
Multi Vertex Color [SOLVED]
« on: March 13, 2014, 07:07:30 PM »
I have painted vertex colors into this cube from blender.



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.



How would this be done using Playmaker or a custom action?

Thanks!
« Last Edit: March 18, 2014, 10:05:11 AM by T.P.Sparrow »

parallel

  • Full Member
  • ***
  • Posts: 155
Re: Multi Vertex Color
« Reply #1 on: March 13, 2014, 07:12:45 PM »
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.

T.P.Sparrow

  • Guest
Re: Multi Vertex Color
« Reply #2 on: March 13, 2014, 07:30:37 PM »
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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Multi Vertex Color
« Reply #3 on: March 14, 2014, 07:03:48 AM »
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

T.P.Sparrow

  • Guest
Re: Multi Vertex Color
« Reply #4 on: March 14, 2014, 08:44:09 AM »
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!



jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Multi Vertex Color
« Reply #5 on: March 18, 2014, 08:30:38 AM »
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

T.P.Sparrow

  • Guest
Re: Multi Vertex Color
« Reply #6 on: March 18, 2014, 10:04:42 AM »
Yes, I don't see any other way, thanks for your time!