THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2006 at 10:44, xxxxxxxx wrote:
Cinema 4D Version: 9.6
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
I would like to use an own preview scene for my material preview. Can somebody tell me how to accomplish that? The Material Preview message system is very confusing.
The standard scene contains an environement object. In the according message call MATPREVIEW_PREPARE_SCENE, I copy my material into the scene and assign it to the according texture tag.
I already did this in a former material of mine, but the old material created a hardcoded environement and doesn´t use a custom scene from a scenefile.
It´s unclear to me which messages must be handled in such situation which don´t and what the flags are set to, to simply add my custom scene file to the list and remove all other standard scenes and make it actually work.
because I see no result. I tried several combinations of the according flags. Am also using AddUserPreviewScene.
To summarize: I have a custom scenefile, want this one to be used in the material preview and I want to copy over my material to the preview cache scene.
Thanks very much for any help!
On 27/11/2006 at 11:18, xxxxxxxx wrote:
Argh, got it. Too stupid to simply load the scenefile instead in MATPREVIEW_MODIFY_CACHE_SCENE. Doh!