Jump to content

How to control the colors of a Font COP using point colors?


Recommended Posts

Hi,

I use a simple Font COP that outputs digits from 0 to 9. I use these as textures for my grid objects copied onto a set of points with point colors.

How can I change the color of the fonts based on the point that's being used as the template for the grid geometry to be copied on?

I just don't know how I can retrieve this kind of info in COPs so each font would have the same color as the point it's copied on.

Thanks :)

Link to comment
Share on other sites

Thanks anim, I could. But is this not what the mantra surface shader does by default by point color tinting? Also I want to try if I could use the inverted point color for each letter while having the background of the grid the same color as the point color later on.

So passing info to COPs is not possible that I should manage these in the shader?

Link to comment
Share on other sites

I would say just make font textures white with alpha

then background texture and in shader multiply font texture with Cd attribute (or inverted Cd or however you want that) and composite over the unchanged bg texture

  • Like 1
Link to comment
Share on other sites

there is one way how you may be able to do it in COPs

simply take the value you need from template points(color, ptnum, anything) based on frame in COPs and use it to alter the COPs for that frame so each frame will correspond to one point then just reference different frame for each copied grid and that should be it (in theory, I haven't tried it yet)

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...