aliasNIGMA
Technical User
I really need help with texture mapping.
Heres the scenario:
3 co-ordinates for a triangle on the screen. (the screen poly)
3 mapping co-ordinates that pertain to a 100 x 100 2d array.
A texture is stored in the 2d array.
I am trying to get the texture information in the mapped polygon to be transfered to the screen polygon.
My problem is, that this screen polygon can be any orientation as can the mapped one.
(This is an ISOMETRIC simulation)
I have tried to keep the example of the situation simple. Ive spent a good deal of time trying to build this code and came close numerous times.
Is there a piece of code or a library that can do this?
HOW?
Lol thanks for any help you might be able to provide.
Heres the scenario:
3 co-ordinates for a triangle on the screen. (the screen poly)
3 mapping co-ordinates that pertain to a 100 x 100 2d array.
A texture is stored in the 2d array.
I am trying to get the texture information in the mapped polygon to be transfered to the screen polygon.
My problem is, that this screen polygon can be any orientation as can the mapped one.
(This is an ISOMETRIC simulation)
I have tried to keep the example of the situation simple. Ive spent a good deal of time trying to build this code and came close numerous times.
Is there a piece of code or a library that can do this?
HOW?
Lol thanks for any help you might be able to provide.