vd->lhit.GetPolygon() and RenderInstances

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

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

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

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

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

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/10/2009 at 00:23, xxxxxxxx wrote:

Ah, ok. That is a limitation. Render instances point all to the same polygons.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 08/10/2009 at 02:01, xxxxxxxx wrote:

ok, thanks for clearing this
cheers,
Ello