THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/09/2011 at 08:30, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ; Mac ;
Language(s) : C++ ;
---------
I've read numerous threads here about this, and lots of things in the SDK docs, and now I'm thoroughly confused.
Say I have an object with a grayscale texture (bitmap or procedural) applied to it. The texture has UVW projection. I can get the polygons making up the object, and from that any point on the surface of that polygon. What I want to do is sample the texture at that point. Not at render time, but during a GetVirtualObjects call.
It seems clear that I need to use BaseChannel::Sample for this. I am assuming that in this case the *VolumeData parameter be NULL. My first question is, is that correct?
Secondly, I can get/calculate all the other parameters *except* for the UVW coordinate of that point. What I'm looking for is how I can calculate/get the UVW coordinate for the surface point I already have. I just can't figure out how to do that, but it looks as if it ought to be easy! Any help or pointers on how to do this would be much appreciated.
Many thanks,
Steve