Computer Graphics

Moderators: Sephiroth
Number of threads: 1241
Number of posts: 2641

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Perspective Texture maping Posted by kubow on 20 Apr 2011 at 2:53 AM
Hi

I'm trying to understand the algoritm to perspective texture maping for a poligonal mesh. Actualy i'm trying to understand about texture maping at all.

I get som sites which are presenting the algorithm but i have few questions about it.

Questions:
1.) In all the examples they are useing the u, v coordinates. I'm confused if they are the vectors which are representing texture or they are coordinates for vertex in the texture space.
2.) should i have the texture coordinates for every vertex setup before maping or compute it from the mesh vertex and texture coordinates.

concluzion:
let asume that i have convex polygon A[-10, -10, 10] B[0, 10, 0] C[10, -10, 0]
and texture coordinates are P[0,0,0] T[0,10,0] S[10,0,0]

How should i compute the u, v for the polygon vertex ABC and for the point X in the polygon plane?

I REALLY need help about it, pleas.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.