Z-write on transparent - disambiguation help...?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
LoneKiltedNinja
Posts: 4
Joined: Wed Sep 24, 2008 5:39 am

Z-write on transparent - disambiguation help...?

Post by LoneKiltedNinja »

Alright. I just solved, with the help of some other threads here, the infamous transparent material z-buffering problem as it existed in my project. However, I'm kinda curious-

Driver->setAllowZWriteOnTransparent(true);

apparently did nothing, while

Scenemanager->getParameters()->setAttribute(scene::ALLOW_ZWRITE_ON_TRANSPARENT,true);

worked like a charm. What do the two approaches do differently, and is there a need for both in the engine?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There's documentation coming with those methods. You're simply not supposed to call the driver method, it's an internal propagation method which is exposed instead of being handled by the friend mechanism.
Post Reply