PDA

View Full Version : Applying materials



rogerdv
08-20-2003, 12:22 PM
Im programming a 3ds file loader, but I have a doubt in some details. If Im not wrong, material info is composed of an RGB color (3 bytes) and sometimes also contains an image file name. The problem is that I dont know how to apply a texture and then a color to the same polygon. Can somebody ilustrate this with a simple code or something?

JanHH
08-20-2003, 04:08 PM
maybe you should learn some basics about lighting and texturing. It would take a lot of space to explain this here, and there is a lot of documentation about it.