View Full Version : Re-render for One object changing?
01-14-2002, 07:36 AM
If I have a scene composed of multiple objects, say a table top and a glass on the table, is it necessary to re-render the entire scene if I just want to change the color of the glass, from say blue to tan?
01-14-2002, 10:00 AM
Redraw the glass, it'll work. If the glass is transparent then redraw everything visible through the glass, then the glass.
Make sure you draw to the frontbuffer.
01-14-2002, 10:46 AM
The visible area seen through transparent object need cleared z-buffer or some other kind of depth sorting then ! Othervise it will be culled by the transparent object z-buffer values
01-14-2002, 11:12 AM
The better solution is to not write transparent objects to the depth buffer, just depth test them. You never want transparency to occlude stuff anyway, when that happens you're seeing something wrong.
As usual transparent stuff should always be drawn last in a depth buffered scene, and prefferably depth sorted.
01-14-2002, 11:22 AM
Excellent advise by all; I'll give it a try!
Thanks to all.
01-14-2002, 08:35 PM
[This message has been edited by Master Lolo (edited 01-14-2002).]
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.