www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/24/20:39:05

From: "Snowman" <idzy AT priv5 DOT onet DOT pl>
Newsgroups: comp.os.msdos.djgpp
References: <ojK84.2278$W3 DOT 54472 AT news DOT tpnet DOT pl> <38637BBF DOT CC5A0C04 AT maths DOT unine DOT ch>
Subject: Re: 3D Problem
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID: <BxR84.2831$W3.67845@news.tpnet.pl>
Date: Fri, 24 Dec 1999 21:25:53 GMT
NNTP-Posting-Host: 212.160.52.191
X-Complaints-To: abuse AT tpsa DOT pl
X-Trace: news.tpnet.pl 946070753 212.160.52.191 (Fri, 24 Dec 1999 22:25:53 MET)
NNTP-Posting-Date: Fri, 24 Dec 1999 22:25:53 MET
Organization: TPNET - http://www.tpnet.pl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thanks to Gautier !
I tried your site, but Im just a starting "programmer" :) and I was not able
to find the information, I need.
My Engine is really simple and there must also be a simple solution .
Mabe I'm making a basic error. So I will explain it nearer. (Remember that
Im using Allegro!)

    I've got an array FACE which includes a number of arrays QUAD, that
include
    the 4 vertex points (x,y,z,color) .(Actually I'm just using faces with 4
points)
    Let's say there are already the correct coordinates in the FACE array.
    (Because this is working properly).
    The main loop, calls the control_function, that checks for key input and
creates a transformation_matrix.
    then the matrix is applied to all the points.
    After that I use qsort() and sort the QUAD's in the FACE array.
    Then,with quad3d(..) i put everything to a bitmap and then to screen.
    First I was just checking the z-coordinate but it worked just partly. :(
    So I tried to calculate the distance from the (0,0,0) coordinate to the
points (using simply Pythagoras formula)
    But it was also bad. :(((.

I don't know what to do.

Sorry for the long letter. Pleaseeeee Help me .
Its Christmas !

P.S.: Merry Christmas and a Happy new Year to anybody who will try to help
me. :))







- Raw text -


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