[gameprogrammer] Re: issues with Calculating texture coordinates
- From: "Nick Howes" <nick@xxxxxxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Fri, 2 Jun 2006 07:48:58 +0100
By the way, reading the article in that link, it looks like an old article
(1997!) that discusses a hand-made software renderer. It looks like all
stuff that nowadays gets calculated by OpenGL and your graphics card. You
are looking at overly complicated material :)
An article like this explains texture mapping in a more up-to-date context
(using OpenGL)
http://www.gamedev.net/reference/articles/article947.asp
I'm sure there are many other articles that can help you calculate various
texture projections. Maybe there are even OGL helper functions that can do
it for you.
Nick
On 02/06/06, Gautam Narain <gautam_n_@xxxxxxxxxxx> wrote:
Hi,
In the most simple case this will be alright. But I am looking at how
those
values are calculated. Yes for a simple triangle its as simple as this -
just put 0,0, and 1, 1 and 0,1 etc appropriately. But lets say I had a 3d
model with 100 vertices and I wanted to calcluate the texture coordinates
then how would I do it ?
Hence I was looking at http://www.gameprogrammer.com/6-text.html and
PCGPE.
Thanks
Gautam
- References:
- [gameprogrammer] Re: issues with Calculating texture coordinates
- From: Gautam Narain
Other related posts:
- » [gameprogrammer] issues with Calculating texture coordinates
- » [gameprogrammer] Re: issues with Calculating texture coordinates
- » [gameprogrammer] Re: issues with Calculating texture coordinates
- » [gameprogrammer] Re: issues with Calculating texture coordinates
- » [gameprogrammer] Re: issues with Calculating texture coordinates
- » [gameprogrammer] Re: issues with Calculating texture coordinates
- » [gameprogrammer] Re: issues with Calculating texture coordinates
- » [gameprogrammer] Re: issues with Calculating texture coordinates
Hi,
In the most simple case this will be alright. But I am looking at how those values are calculated. Yes for a simple triangle its as simple as this - just put 0,0, and 1, 1 and 0,1 etc appropriately. But lets say I had a 3d model with 100 vertices and I wanted to calcluate the texture coordinates then how would I do it ?
Hence I was looking at http://www.gameprogrammer.com/6-text.html and PCGPE.
Thanks Gautam
- [gameprogrammer] Re: issues with Calculating texture coordinates
- From: Gautam Narain