delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/08/21:10:13

Date: Thu, 8 May 1997 18:05:01 -0700 (PDT)
From: KaRNaGE <dlydiard AT linknet DOT kitsap DOT lib DOT wa DOT us>
To: djgpp AT delorie DOT com
Subject: triangle3d() and POLYTYPE_ATEX in Allegro
Message-ID: <Pine.GSO.3.96.970508174408.16999A-100000@linknet.kitsap.lib.wa.us>
MIME-Version: 1.0


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]);


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019