Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/10/2009 at 12:49, xxxxxxxx wrote:
User Information: Cinema 4D Version: r11.5 Platform: Windows ; Language(s) : C++ ;
--------- Hi there,
after compiling my plugin for r11.5 and using render instances i found that vd->lhit.GetPolygon() doesnt work with renderinstances (i guess thats just because of what renderinstances are).. is there a way to get something similar information from those renderinstances??
thanks,
ello
On 06/10/2009 at 01:23, xxxxxxxx wrote:
What do you mean with it doesn't work? Render instances give back the same polygon ID as the instanced object.
cheers, Matthias
On 06/10/2009 at 12:04, xxxxxxxx wrote:
hi, sorry for being not precise enough.. I have a shader which is changing the color for every polygon.
i used this line: LONG id = vd->lhit.GetPolygon();
it workes as long as i use normal instances but when i set the INSTANCEOBJECT_RENDERINSTANCE for those instances, it doesnt work anymore.. all instances have the same colors for the according faces...
hope you understand
cheers, ello
On 07/10/2009 at 00:23, xxxxxxxx wrote:
Ah, ok. That is a limitation. Render instances point all to the same polygons.
On 08/10/2009 at 02:01, xxxxxxxx wrote:
ok, thanks for clearing this cheers, Ello