Collada can produce a huge variety of vertex formats and material attributes applied to geometry, so there's simply no direct answer on "how to change the color of an object". That's probably an extremes of the range of possible 3D model formats. That example you're referencing can load "Wavefront OBJ" and "Collada" formats. The single model might be represented in multiple sub-meshes with different materials, involving different shaders and even vertex formats. There are tons of formats, each having different capabilities. The next broad thing is 3D models loaded. So we can't know what steps are required to change appearance of polygons being rendered within your app. Any "color" is a part of rendering pipeline used in exact app, it's either a property of a shader, or argument to shader, used in one or more rendering steps to get the final visuals of a groups of polygons. For the start, there's no such thing as a "color of 3D object in OpenglES 2.0".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |