> Is it possible for a sinle face to have materials, while all the other > materials don't? While all the other _faces_ don't, you mean ? If you look into player.c, you see that every face might introduce a material change.
For efficient representation in a VBO, you would need to group all the faces/triangles that have a common material, and upload them at once. Besides, materials as an OpenGL concept are obsolete by now anyways, so when you already use VBOs, you might want to switch to shaders, too. That way, you could provide material parameters as an extra data channel, and thus upload all parameters at once. If you then use things like instancing in a smart way, see page 32 of ftp://download.nvidia.com/developer/presentations/2006/gdc/2006-GDC_OpenGL_NV_exts.pdf then you might even save yourself from repeatedly re-defining the same material parameters even if nothing changes. > Or is it like: 'If one face has materials, the whole mesh has it' ? > I'm hoping that if one mesh has materials, that all meshes have materials, > because that would be the easiest for sending data to the Vertex Buffer > Objects. > And any idea how to deal with multiple textures from meshes, in the vertex > buffer? > I thought of making one big texture, with all the textures of a model in it, > and then adjust the texture coordinates, to get the right texture. Are there > better/easier ways to do it? > Thanx in advance, > Hylke > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > lib3ds-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lib3ds-devel > Servus, Gernot -- T----------------------------W-E-L-C-O-M-E------------------------------T O The Austria <=> Sweden <=> Germany <=> Netherlands connection..... H | http://www.mpi-sb.mpg.de/~gziegler | http://www.lysator.liu.se/~gz E \-----------------------------F-U-T-U-R-E-------------------------------/ ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ lib3ds-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
