Re: [Plib-users] texture on pui button
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2002-07-27 01:07:29
|
Rolf Jakob wrote: > Hello, > > I would like to draw a puButton with a texture on it. Somehow it reflects the > color of the texture, i.e. if I use a dark blue marble image the button has a > flat dark blue surface, but I cannot see the texture itself. > > What am I doing wrong ? It sounds like the U,V texture coordinates on the corners of the polygons are either all the same or are very large numbers - so you are either getting just one texel stretched over the entire polygon - or it's all dropping to the lowest level of detail. You should probably make sure your glTexCoord's are in the range 0..1 ----------------------------- 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 |