PDA

View Full Version : v3f/t2f/t2f/c4ub and lighting: how ?



Julien Cayzac
02-21-2002, 05:13 AM
How can I do lighting when using the only CVA-accelerated vertex format v3f/t2f/t2f/c4ub ? Normals aren't enabled !!?!

In a vertex program, does using this format means I'll only have access to v[OPOS], v[COL0], v[TEX0] and v[TEX1] ?

thanks.

chowe6685
02-21-2002, 03:24 PM
I would assume that you ignore the entire openlgl lighting subsystem, and manually calculate the the color of each vertex based upon proximity to various lighting sources, all the equations are in the red book, so you may want to check that

Nutty
02-23-2002, 02:25 AM
Are you sure thats the only CVA accelerated format? Wheres you source for that info?

You can still access the other v[??] registers in the VP, they will contain the last data that was sent to those registers.

Nutty

Korval
02-23-2002, 06:01 PM
That format is accelerated because it's the format Quake 3 uses. That document is somewhat old (as it also says that only certain formats are accelerated with VAR, which is not true), so the matter with CVA's may be better now.