I am looking for documentation on noesis python api
In particular, how to add a third UV channel to NoeMesh?
first - .uvs
the second is .lmUVs
third- ???
The rules have been updated, read them now: Rules!
Noesis python API
- PredatorCZ
- mega-veteran
- Posts: 282
- Joined: Mon Apr 21, 2014 8:32 pm
- Has thanked: 8 times
- Been thanked: 229 times
- Contact:
Re: Noesis python API
Sadly, Noesis supports only 2 UV sets (viz `rpgBindUV1BufferSafe`, `rpgBindUV2BufferSafe`).
You could try to store third UV (and possibly 4th set) as a vertex color (RG channels). For example, 3ds max loads vertex color as an uv set with index 0 (vertex alpha as -2, but only Alpha channel). Noesis stores vertex colors as a float, so I don't see any problem here, fbx should export them as float too.
However I do not recommend this, since it's not standardized, but it's a way to achieve what you want.
From my experience, I haven't seen much things with a 3rd UV set, surely I've seen ones with 4th set, but it was only for some cases (for certain materials, where you could switch uv sets for different textures, etc.) I could only imagine 3 UV sets for models, where first 2UV sets are texture coords, and 3rd is used for Lightmap, but never seen such.
You could try to store third UV (and possibly 4th set) as a vertex color (RG channels). For example, 3ds max loads vertex color as an uv set with index 0 (vertex alpha as -2, but only Alpha channel). Noesis stores vertex colors as a float, so I don't see any problem here, fbx should export them as float too.
However I do not recommend this, since it's not standardized, but it's a way to achieve what you want.
From my experience, I haven't seen much things with a 3rd UV set, surely I've seen ones with 4th set, but it was only for some cases (for certain materials, where you could switch uv sets for different textures, etc.) I could only imagine 3 UV sets for models, where first 2UV sets are texture coords, and 3rd is used for Lightmap, but never seen such.