delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: a 3D displaying question |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <rcehhso02soe3nu3m3qsn4ggr68kqcbqbu@4ax.com> |
References: | <0a7b6164 DOT 75f878ed AT usw-ex0103-018 DOT remarq DOT com> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 22 |
X-Trace: | /KtlGVH5fX/dAvhpzv0uzzITfmr9tvLZ5zBVM+yxZEMBIwR7i28TdN94VCjA2HlKItjh/t9QzInV!hmb/S3d18lIo51GXT/RS6Olhjh7A5zLVKc/9DK86bI76S7mWnSDRYHdhajRKEBs5+5dDBHXeib+8!ejDfo/8= |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Wed, 10 May 2000 01:23:11 GMT |
Distribution: | world |
Date: | Wed, 10 May 2000 01:23:11 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Tue, 09 May 2000 16:11:51 -0700, Pyros <yagodaNOyaSPAM AT netvision DOT net DOT il DOT invalid> wrote: >I have a array of trios of 3d points that makes 3d triangles. i >also have a 3d point+an angle which is the >camera. i'm having trouble with sorting the triangles by drawing >order, meaning: the triangle that is drawn first might be >covered by a triangle that is closer to the camera Try sorting them by maximum Z value. That's a simple algorithm that fails in many cases, but it works most of the time. If you need more help, check the comp.graphics.algorithms FAQ for "painter's algorithm". -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |