Project 3 FAQ
- Q: The demo doesn't seem to support the required day/night transition
A: It does, but you have to turn fog off (by pressing 'w') to see well enough
to tell whether it's day or night. It's like San Francisco.
- Q: When I look at the .3ds file in WinMeshView, there's color, but
when I export it and then load it in my program, it's [some solid color].
How do I force the vertices to draw in the correct color?
A: The mesh loader loads all the materials from the material file
(legoman.mtl) and associates each vertex with a material, using the
'm' variable in the 'vertex' structure (which is an index into an array
of materials). If you want legoman to show up in color, you'll need to
use that information to color each vertex, by calling glColor or glMaterial
before drawing each vertex.
- Q: I created a .tga file, but I can't get it to load using the tga
loader you provided.
A: First note that the tga loader we gave you doesn't support "compressed"
tga files. Some image converters give you an option to use compression; make
sure you _don't_. IrfanView saves all .tga files as uncompressed .tga files,
so it's a good converter for this loader.
If you have an uncompressed .tga file (or you're not sure), try using the
loadtexture.cpp example to make sure it's really a problem with the image
and not something else in your program that has changed the texture state.
If it works fine in the loadtexture example, you know you have a working
image and you can debug the differences between your program and the