Hi,
first of all I´m not a real expert in using 3D-Modelling software so please excuse my lack of knowledge ;-)
In order to add some vertex specific properties to my 3d-modells I´m using 3Ds Max internal Vertex-Paint modifier, which allows direct painting of a color onto geometries.
Later on I´m exporting the vertex color and use it in my renderer.
Due to the complexity of some models this 'direct-paint' approach is very difficult to use so I´m trying to do this via texture mapping. The texture itsefl now contains the colors I previously painted onto the geometry manually.
My question is whether there is a way to map the colors from the texture which is applied to the model to the corresponding vertex colors.
I hope I explained it as clear as possible.
Ralph
3Ds Max - Texture color to Vertex color
Just a first idea for an approach (not necessarily the best): you could iterate through all polygons in the exporter and calculate barycentric coordinates for points you want to sample your texture. Then you could calculate which vertex this point is closest to and apply the property value from the texture to it.
Thanks for your input.
Yeah, that´s what I tried to avoid ;-)
Writing MaxScript is a real pain, I´ve never seen anything worse to write some code...
But if there´s no built in functionalty for that it seems there is no other choice.
Ralph
Yeah, that´s what I tried to avoid ;-)
Writing MaxScript is a real pain, I´ve never seen anything worse to write some code...
But if there´s no built in functionalty for that it seems there is no other choice.
Ralph
I thought there was a way to call maxscript functions and use the returned values in your exporter. But I don't know if it's difficult or easy but my guess is that it's difficult.
assainator
assainator
"What? It disintegrated. By definition, it cannot be fixed." - Gru - Dispicable me
"Dude, the world is only limited by your imagination" - Me
"Dude, the world is only limited by your imagination" - Me
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement