-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calc_tessface was removed from Mesh API in Blender 2.80 #33
Comments
If I remember correctly, then it computed triangles and quads from polygon meshes. Faces in Blender can have 3, 4, or more vertices but they need to be turned into triangles for Call of Duty. Tessfaces were an easy way to mostly get there. As they are either triangles or quads, the addon code takes care of turning the quads into triangles as well. So the end result is a triangulated mesh.There seems to be a drop-in replacement, loop_triangles:https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Mesh_API
|
Yes, I converted the code to use |
If memory serves, CoD2 supported vertex colors on map geometry, but not the later titles (CoD4/5). Not sure if it did for models too. The vertex colors were otherwise only used for carrying information for vertex shader effects, such as the wave shader. The colors aren't really used as colors in that case. Rather as weights, to move heavier vertices less and lighter vertices more in the wind for a realistic flag animation. Although, I can't tell for sure how that shader uses the code values as I've never seen its source code.
|
This is correct for CoD 5 at least. Trees, etc. used vertex colors as weights for the vertex shaders that were used to animate them if I remember correctly. |
calc_tessface
has been removed as of Blender 2.80https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Mesh_API
I'm not familiar at all yet with the Blender Python API so I'm still trying to figure out what this actually does and what the equivalent functions would be...
The text was updated successfully, but these errors were encountered: