Re: [Plib-users] Please help
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-12-04 04:59:29
|
Tengchiang Tsao wrote: > I am writing ssgLoadBGL.cxx, I test it on PPE. > Everything looks fine except my textures got tinted to > gray. If I try to render the same object in FGFS, they > got tinted to green. > Half year ago, Curtis told me I need to explictly > set the underlying color, otherwise my textures will > be biased. But how do I do this? > I tried state->setMaterial(GL_DIFFUSE, 1.0f, 1.0f, > 1.0f, 1.0f) and also tried glClearColor(1.0f, 1.0f, > 1.0f, 1.0f), but they are not helping. I have just finished writing a small FAQ about OpenGL lighting, I think it will help to explain your problem. http://www.sjbaker.org/steve/omniv/index.html ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |