Message-ID: <39C9CA6F.1A9E992C@inwind.it> Date: Thu, 21 Sep 2000 10:44:31 +0200 From: Ivan Ferrara X-Mailer: Mozilla 4.5 [it] (Win98; I) X-Accept-Language: it MIME-Version: 1.0 To: Delorie Newsgroup Subject: Help!!! Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com I tried to contact Allegro newsgroup but my mail was rejected. Oggetto: Article rejected, un-authorized poster of ifalpsfun AT inwind DOT it Data: Thu, 21 Sep 2000 04:31:50 -0400 Da: allegro-owner AT canvaslink DOT com A: ifalpsfun AT inwind DOT it Article rejected, un-authorized poster of ifalpsfun AT inwind DOT it Received: from relay1.inwind.it [212.141.53.67] by canvaslink.com with ESMTP (SMTPD32-6.00) id A7751CAD016E; Thu, 21 Sep 2000 04:31:49 -0400 Received: from inwind.it (212.141.249.229) by relay1.inwind.it (5.1.046) id 39AFDC990032B44C for allegro AT canvaslink DOT com; Thu, 21 Sep 2000 10:31:38 +0200 Message-ID: <39C9C87F DOT 2C6801E7 AT inwind DOT it> Date: Thu, 21 Sep 2000 10:36:15 +0200 From: Ivan Ferrara X-Mailer: Mozilla 4.5 [it] (Win98; I) X-Accept-Language: it MIME-Version: 1.0 To: allegro AT canvaslink DOT com Subject: problem with allegro 3D function Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm trying to draw 3D polygons using allegro functions. Here's a piece of code; It should draw a shaded triangle but my screen looks white! Why? Thank you in advance for your support. Ivan ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include #include #include BITMAP *texture; V3D v1 = {30 , 20 , 10 , 0 , 0 , 9 }; V3D v2 = {30 , 40 , 10 , 0 , 0 , 9 }; V3D v3 = {30 , 30 , 80 , 0 , 0 , 9 }; int main() { allegro_init(); install_keyboard(); set_gfx_mode(GFX_AUTODETECT,800,600,0,0); set_palette(desktop_palette); triangle3d(screen,POLYTYPE_FLAT,texture,&v1,&v2,&v3); readkey(); }