hello everyone
with the help of many threads i finally managed to replace teapot with banana 3d model but when i am replacing it one more time with different 3d models,,,the app hangs.
my question is that can i add 3d model .h file with missing any one of attribute---
vertrices,normals or texcoordinates? because many 3d models obj file when converted to .h file one of these attribute is missing in it.
.
thanks in advance..:o
- Sort Posts
- 1 replies
- Last post
replacing teapot,,,,but app hangs
February 21, 2012 - 9:00pm #1
Vertices are necessary, without these there will be nothing to draw! Texcoords are necessary if you want to map a texture onto your model. Normals are only needed for lighting calculations, you can often skip these. Be sure to remove the lines referring to normals in that case.
- Kim