Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Vertex color data

Just a simple question:

What does vertex color data look like? I want to split and manipulate it in a material.

When we use a vertex color node in a material what is the format of the output? Is it like a matrix where the coordinates and color values are specified for each vertex. If this is the case what possitions in said matrices is for each and how would i split this data in a material graph?

Product Version: UE 4.21
more ▼

asked Apr 10 '19 at 04:59 PM in Blueprint Scripting

avatar image

6 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Vertex Color data (outputed by the Vertex Color node in the Material Graph as a Vec4) is just the RGB values equivalent to the ones you used when vertex painting the model in your DCC. If you want coordinates or more vert data there are some WorldPosition and VertexNormal nodes you can use. In the example image I am pulling the Red channel (equivalent to anything up to 255,0,0 vert paint on the mesh) to use as a mask for the texture in the Blue channel of that Param2D node). Oh, don't forget to change the Vertex Color Import Option in the FBX importer when bringing in your meshes as it's set to "Ignore" by default. vColMult

capture.jpg (49.1 kB)
more ▼

answered Apr 10 '19 at 08:18 PM

avatar image

503 2 9 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question