Qhimm.com Forums

Miscellaneous Forums => Troubleshooting => Topic started by: Borde on 2005-07-08 08:56:03

Title: P colors and edges. What are they good for?
Post by: Borde on 2005-07-08 08:56:03
Are p colors and edges actually used for something in FF7?
Title: P colors and edges. What are they good for?
Post by: Alhexx on 2005-07-08 16:22:45
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
Title: P colors and edges. What are they good for?
Post by: Borde on 2005-07-08 17:04:33
Thanks Alhexx. Now I'll stop spending time in usless code.
Title: P colors and edges. What are they good for?
Post by: Alhexx on 2005-07-08 17:15:02
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
Title: P colors and edges. What are they good for?
Post by: Borde on 2005-07-08 19:29:54
Jejeje! yeah, I kwno, It's just that I'm a bit lazy :-P
Title: P colors and edges. What are they good for?
Post by: sfx1999 on 2005-08-20 17:56:39
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.