From: iecheruo AT newstand DOT syr DOT edu (The Ice Man) Newsgroups: comp.os.msdos.djgpp Subject: Re: textures in Allegro Date: 5 Jan 1998 13:57:45 GMT Organization: Syracuse University, Syracuse, NY (USA) Lines: 21 Message-ID: <68qosp$sn8@newstand.syr.edu> References: <34a7b00b DOT 6942920 AT news DOT klippan DOT se> Reply-To: fake_iecheruo AT mailbox DOT syr DOT edu NNTP-Posting-Host: hydra.syr.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Olof Bjarnason (nv95olbj AT klippan DOT se) wrote: : I just wondered if anyone could help me on a little problem with : Allegro's texture handling. It would be very appreciated :). : I can't get Allegro's polygon3d() to work :(. Could anyone tell me : what is wrong with this code? Here's your problem the u and v coordinates specify what part of the bitmap a vertex corresponds to. : v3d[0].u = v3d[0].v = v3d[0].u = v3d[0].v = 0; the line above makes all the vertices of the polygon correspond to pixel (0, 0) of your texture. Try v3d[i].u = v3d[i].x; v3d[i].v = v3d[i].y; for all vertices of the polygon. --