Date: Thu, 8 May 1997 18:05:01 -0700 (PDT) From: KaRNaGE To: djgpp AT delorie DOT com Subject: triangle3d() and POLYTYPE_ATEX in Allegro Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk for some reason i'm having trouble with triangle3d() and POLYGON_ATEX. POLYGON_FLAT and POLYGON_GCOL work fine....this i-net account is very limited so, i'll try my best to explain, cuz uuencoded attachments are a major pain...but if no one can point out the problem (and i can't figure it out by then) i guess i'll have to do it somehow =).... 'buffer' is my virtual screen (double buffering system) 'texture' contains a 128x128 bitmap of my texture both of these are of type 'BITMAP *' i even put the 'blit' line before the triangle3d() line, to make sure the texture is going through ok...at runtime this blit function works fine..and shows my texture at the bottom corner of the screen...but the triangle3d() displays ALL black polygons...i know all the coordinates are right because when i use POLYTYPE_FLAT or POLYTYPE_GCOL...it looks real good (shading is correct and everything)..i'm problay forgetting something stupid....BTW V3D_temp[?].u and .v texture coordinates are set to 0....i also used create_rgb_table() and create_light_table(), before these calls to triangle3d()....according to the docs i'm doing everything right...well thankz in advance for any help....BTW please forward all replied to my e-mail address also, since my 'lynx' www browser, i can't quote messeges through lynx...thankz... blit(texture, buffer, 0, 0, 0, SCREEN_H - 128, 128, 128); triangle3d(buffer, POLYTYPE_ATEX, texture, &V3D_temp[0], &V3D_temp[1], &V3D_temp[2]);