THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/03/2004 at 13:16, xxxxxxxx wrote:
Cinema 4D Version: 8.503
Platform: Mac OSX ;
Language(s) : C++ ;
I'm trying to get the new SampleBump()-Method to work...
My test shader sets CHANNEL_DIRECTBUMP_EX in GetRenderInfo, and links to another shader (which is a simple noise shader)
Output() basically reads as:
Vector n_src, n_dst; n_src = sd->n; if (!shader) return n_src; //no shader available, return normal n_dst = !(n_src + shader->SampleBump(sd, 0)); // ! = normalize result // the PLUS after n_scr... is swallowed by the forum software! return Vector(n_dst);
shader ->Sample(sd) works just fine, so I guess that shader is initialized correctly. However, SampleBump doesn't change a thing :-(
Any ideas anybody? My two recent questions stayed without any comment, let's hope that somebody cares for this one. It's incredible frustrating crumbling on such basic stuff due to very basic documentation and no examples for this new function at all :-(
P.S.: Even if it is a silly question: How to get the UV orientation of the map at the sample location?