Skip to main content
gamedev.net
🔒 Locked

radiosity question

Started by IStrikerI Oct 3, 2002 at 9:09 AM 1 replies 750+ views
Original Post
IStrikerI
IStrikerI
to calculate the form factor i need to know the area of the two current patches. what is exactly meant by area ? if i understood it correctly in the tutorials, it must be scalar value.
netrion
netrion
You can use the magnitude of the cross product to calculate area as well.
Eg. From my radiosity code

float area = (v1 ^ v2).length();
if ( currPolyCount == 3 )
{
area /= 0.5f;
}

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.