Differences

This shows you the differences between two versions of the page.

Link to this comparison view

graphics [2013/08/20 13:14]
graphics [2022/04/16 12:23] (current)
Line 1: Line 1:
  
 +  * http://mtpaint.sourceforge.net/# SoftWare
 +  * https://github.com/jagregory/abrash-black-book# LearN
 +
 +=== Texture===
 +
 +just make a simple applet that do texture mapping
 +
 +  int[[]][[]] texmap = {
 +  { 0x00FF ,0xFF00 , 0x00FF , 0xFF00 } ,
 +  { 0xFF00, 0x00FF , 0xFF00, 0x00FF } ,
 +  { 0x00FF ,0xFF00 , 0x00FF , 0xFF00 } ,
 +  { 0xFF00, 0x00FF , 0xFF00, 0x00FF } ,
 +  };
 +
 +  int[[]][[]] image = { .... }
 +
 +
 +  /**
 +    *            T                     Top
 +    * Source:   /\                     /|          Destination
 +    *          / .\ Middle     Middle / |
 +    *         /.                      \ |
 +    *       Bottom                     \| Botom
 +    **/
 +
 +  public void paintTriangleMapping
 +        ( Graphics,
 +         float dtx, float dty, float dmx, float dmy, float dbx, float dby,
 +         float stx, float sty, float smx, float smy, float sbx, float sby )
 +  {
 +  // top middle bottom // src @ dest
 +  }
 +
 +Let use a generated checkerboard first.
 +
 +look at this bugged source code :
 +  * http://groups.yahoo.com/group/rzr-en/message/35
 +  * http://groups.yahoo.com/group/rzr-en/message/24
 +
 +
 +
 +==== MORE ====
 +
 +@TaG: DesigN ArT GfX
 +
 +
 +{{http://sit.photos.wanadoo.fr/sitdriver?cid=643c54e69131c6f0&width=500&height=500&nocache&app=photoblog.wanadoo.fr:8080#.jpg?nocache}}
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki