Advertisement

Multipass rendering ?

Started by March 25, 2002 05:41 PM
1 comment, last by stryx 22 years, 11 months ago
Hi, I''m very new to OpenGL (2 weeks). If I perform multitexturing with more than 2 texturelayers only 2 would be rendered. I know, that''s because my card only has 2 texture units. Now I heard that if I want more layers I have to use "multipass" rendering. Is there any tutorial or an explaination about how to do that , or an example ? 2nd qeustion: What''s the speed-issue ? if (multipass) then fps=fps/2 ??? Thanks anyway, StryX PS: email: stryx@gmx.at
Anything that requires finding convex hulls in realtime isstarting to sound like a bad idea. -- John Carmack
Just render the same polygons twice (make sure to have depth testing as LESS THEN OR EQUAL TO) for multipass rendering. Also making sure to set the required blending/alphatest modes.

-----------------------
"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else''s drivers, I assume it is their fault" - John Carmack
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack
Advertisement
quote:

2nd qeustion:
What''s the speed-issue ?

if (multipass) then fps=fps/2 ???


The fillrate is approx. cut by 2. This doesn''t necessarily mean that your fps will be affected. If you aren''t fillrate limited, then your fps won''t change at all. If you run on the limits of your HWs fillrate even with singlepass rendering, then fps will drop by a factor of two. Otherwise, it will be somewhere inbetween, depends on your HW.

/ Yann

This topic is closed to new replies.

Advertisement