N64 Textures and TMEM Explination ================================== Any Link Below is truncated to the root of SDK Manual, This Link is not visible and I request it not be Spread. htt.../NINTENDO%2064%20SDK%205%20_CDROM/man/allman50/ Can Also be downloaded at romhacking Compiled By Trevor Credits to Zoinkity for Original Find |
Code: |
/*
* Animate River Texture */ flow++; if (flow == 64) flow = 0; gDPSetTileSize(glistp++, 1, // Tile1 (0 << G_TEXTURE_IMAGE_FRAC), //UpperleftT (flow << (G_TEXTURE_IMAGE_FRAC-1)), /* UperLeftS -1 to slow down the flow */ (32-1) << G_TEXTURE_IMAGE_FRAC, //LowerRightS (32-1) << G_TEXTURE_IMAGE_FRAC); //LowerRightT gSPDisplayList(glistp++, river_dl); //Call river_dl gDPFullSync(glistp++); gSPEndDisplayList(glistp++); // Water DL in GE have been found however I beleve there are missing parts which I will add here (wont have hex) /* * Animate water Texture */ flow++; if (flow == 64) flow = 0; F5480400 00014050 gDPSetTile(Type=8BitCI, Line=2, //words in Row.(64*2)/8=16 texels Tile=0 Maskt=5, // Specifies the wrap position of texel 32 (2^5=32) Masks=5) F5480400 01014050 gDPSetTile(Type=8BitCI, Line=2, Tile=1 Maskt=5, Masks=5) F2002002 00000000 gDPSetTileSize(UpperLefts=flow << (G_TEXTURE_IMAGE_FRAC-1), UpperLeftt=flow << (G_TEXTURE_IMAGE_FRAC-1), Tile=0, LowerRights=(32-1) << G_TEXTURE_IMAGE_FRAC, LowerRightt=0) F2002002 01000000 gDPSetTileSize(UpperLefts=flow << (G_TEXTURE_IMAGE_FRAC-1), UpperLeftt=flow << (G_TEXTURE_IMAGE_FRAC-1), Tile=1, LowerRights=(32-1) <<G_TEXTURE_IMAGE_FRAC>, LowerRightT=(32-1) <<G_TEXTURE_IMAGE_FRAC>) FA00000F FFFFFFFF SetPrimColour(min=00, LODF=0F, R=255, G=255, B=255, A=255) //force tiles to show at //0.05859375. Probably also increases and decreases for effect. // LODF=(Flow*4)/256 BA001102 00000000 SetTextureDetail(Clamp) BA000C02 00002000 SetTextureFilter(BiLERP) FC272C04 1F1093FF SetCombiner(TRILERP_Prim, ModulateRBGA2) B900031D 0C182078 SetRenderMode(AA, Z_CMP, Z_UPD, IM_RD, A_CVG, CLAMP, OPA CLR_IN*0 + CLR_IN*1 , CLR_IN*AIN + CLR_MEM*1-A) BA001001 00000000 SetTextureLOD(Tile) BA001402 00100000 SetCycle(2) B7000000 00002000 SetGeometryMode(CullBack) B8000000 00000000 gSPEndDisplayList(glistp++); |