TraceGeometry (VolumeData)

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

On 21/07/2011 at 04:59, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   12 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
Hello,

I use TraceGeometry within a ChannelShader. I want to figure out which polygon gets shaded at the moment. I thought that I could figure this out with using the VolumeDatas TraceGeometry method. But I always get the ID 1 returned, no matter which side (of a cube for example) gets shaded.

Does TraceGeometry work correctly? Is the "Face ID" really the polygon ID?

Maybe there is a better way of determining which polygon is currently shaded?

Thank you,
maxx

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

On 24/07/2011 at 08:45, xxxxxxxx wrote:

Push ...

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

On 31/07/2011 at 06:26, xxxxxxxx wrote:

Unfortunatly the shader/material part of COFFEE is rather limited. In C++ it's quite easy to retrieve the current shaded polygon index.

Via BaseVolumeData::lhit you can access the current shaded polygon ID.

cheers,
Matthias

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

On 31/07/2011 at 11:32, xxxxxxxx wrote:

Thank you for the hint.

But what is with the TraceGeometry function? Shouldn't this give me too the polygon-id?

Cheers,
maxx

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

On 31/07/2011 at 11:46, xxxxxxxx wrote:

I'm not sure. It could be a bug or maybe the documentation is just wrong. I have to ask our developers.

cheers,
Matthias