delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/05/11:06:12

From: Thomas Harte <T DOT Harte AT btinternet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: PTEX polygon mapping - how are u/v coordinates written?
Date: Sun, 05 Sep 1999 14:38:53 +0100
Organization: BT Internet
Lines: 10
Message-ID: <37D2726D.C0D84AA5@btinternet.com>
References: <7qtr2g$ng4$1 AT cubacola DOT tninet DOT se>
NNTP-Posting-Host: host5-171-235-135.btinternet.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.6 [en-gb] (Win95; I)
X-Accept-Language: en-GB,en,en-*
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> However, the texture mapping just gives weird results. Does anyone have any
> clue as to why this? Could it be that I am missing some requirement put upon
> the declaration of u and v coordinates?

	As far as I remember, PTEX differs in Allergo from ATEX in that for each
vertice, you must pass a V3d with z correct as well as x, y, u and v. Is it
possible that you are filling your screen space V3d structures with only x, y,
u and v?

		-Thomas

- Raw text -


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