Qhimm.com Forums
Miscellaneous Forums => Troubleshooting => Topic started by: Borde on 2005-07-08 08:56:03
-
Are p colors and edges actually used for something in FF7?
-
I am not sure, but I suppose that FF7 uses p colors to display models on the world map (?).
As for the edges: I don't think that they are used for anything.
- Alhexx
-
Thanks Alhexx. Now I'll stop spending time in usless code.
-
Why useless? It's not that hard.
You can recalculate the polygon colors by taking the given vertice colors, adding all 3 colors from the polygon together and dividing them by 3. Then you have your poly color. Quite simple algorithm.
The edges can be recalculated, too, by going through all polygons and creating an edge array.
That's the way I handles those two parts in ultima...
- Alhexx
-
Jejeje! yeah, I kwno, It's just that I'm a bit lazy :-P
-
It would be faster to multiply it by 0.3333, if you are doing the calculation a lot.
Wait, make it 0.33334, because all threes won't allow you to get 255.