Author Topic: P colors and edges. What are they good for?  (Read 3704 times)

Borde

  • *
  • Posts: 891
    • View Profile
P colors and edges. What are they good for?
« on: 2005-07-08 08:56:03 »
Are p colors and edges actually used for something in FF7?

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
P colors and edges. What are they good for?
« Reply #1 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

Borde

  • *
  • Posts: 891
    • View Profile
P colors and edges. What are they good for?
« Reply #2 on: 2005-07-08 17:04:33 »
Thanks Alhexx. Now I'll stop spending time in usless code.

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
P colors and edges. What are they good for?
« Reply #3 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

Borde

  • *
  • Posts: 891
    • View Profile
P colors and edges. What are they good for?
« Reply #4 on: 2005-07-08 19:29:54 »
Jejeje! yeah, I kwno, It's just that I'm a bit lazy :-P

sfx1999

  • *
  • Posts: 1142
    • View Profile
P colors and edges. What are they good for?
« Reply #5 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.