The rules have been updated, read them now: Rules!

Noesis python API

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
Posts: 252
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 46 times
Been thanked: 114 times

Noesis python API

Post by erik945 » Tue Feb 11, 2020 10:48 pm

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- ???

User avatar
Posts: 282
Joined: Mon Apr 21, 2014 8:32 pm
Has thanked: 8 times
Been thanked: 229 times

Re: Noesis python API

Post by PredatorCZ » Mon Feb 17, 2020 8:40 am

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.

Post Reply