On Saturday 11 February 2006 12:40, Josef Grunig wrote: > Here come some (few) questions... > > Is MaterialSwitch a good choice to switch fast from a shader to > another?
A MaterialSwitch is a simple switch on materialbasis like the regular node switch within the scenegraph. When traversed it simply renders the the desired material specified by the choice field. > Could MultipassMaterial be a better choice? A multipass material renders the geometry x times, where x is the number of materials it contains. There is no "switch" behaviour. > When inheriting ShadowMapViewport class must I inherit the base class > too? or extend directly the base class? ( I'm quite new to C++ and > OpenSG ) Ooh, well that ain't a picknick for you. And of course there is no simple answer, it depends on exactly what you want to do and how "good" and "extensible" the base classes have designed. Typically you do not inherit the base class, because your new class knows everything about of all derived classes. If you are not sure where this voyage will lead it may be a first step to extend the base classes and redo once the functionality is complete. Good luck Matthias -- +---------------------+----------------------------+ | VREC GmbH | | | Matthias Stiller | | | Robert-Bosch-Str. 7 | tel: +49 6151 4921034 | | 64293 Darmstadt | web: http://www.vrec.de | | Germany | mail: [EMAIL PROTECTED] | +---------------------+----------------------------+ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
