0
$\begingroup$

I was wondering if / how this is possible in Blender.

Shaders in game engines like unity and unreal read texcoords (aka UVs) as Vector4 properties. Blender seems to deal with these mostly as Vector2.. however this can be quite useful. For example I have packed a different set of vertex normals into the UV2 texcoord using code in unity but that approach is quite cumbersome and not as flexible as doing it in blender when really working the model.

How can I put a Vector3 information into a uvmap / texcoord? (this would also allow multiple vertex color sets in an exported fbx). thanks for your answers.

$\endgroup$
1
  • $\begingroup$ You can use two UV maps and combine them: UV4 = (UV1.x, UV1.y, UV2.x, UV2.y). $\endgroup$
    – Nathan
    Feb 17, 2023 at 15:10

1 Answer 1

0
$\begingroup$

UV coordinates in Blender are 2d vectors. As far as I can tell, they can only be 2d vectors and it' not possible to change that. You can have a few of them. But you should probably find a more appropriate place to store the data you need. Blender supports various vertex attributes:

enter image description here

You can manipulate them from the Python API:

enter image description here

There are formats meant for exchanging data between different software like Alembic that do support custom attributes. You could look into this for exporting and importing the data.

$\endgroup$
1
  • $\begingroup$ Thank you for the reply. Unfortunately I am bound to fbx as export format and I need a solution for that. I don't know if generic named attributes are exported through fbx (I believe they are not), but I will try that. Thanks :) $\endgroup$
    – fleity
    Feb 20, 2023 at 15:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .