Hey guys,
I'd like to use the raytrace through pixel method in the SDK to select objects in the preview. I get the TRACE_DONE_MESSAGE but how do I go on? Feels like there should be a class 'TrayceDoneMessageInterface' that I can cast to which contains the hitpoint, object or material UID...
Btw I'm wondering if this is he right place in the Forum to ask..? I feel it's generally linked to the SDK but not necessarily to the Public Beta, so I'm creating new posts every time...
How to handle the trace_done_message?
Re: How to handle the trace_done_message?
Hi,
You want something like this:
I think this is the right forum yeah
You want something like this:
Code: Select all
else if(message->getType() == Indigo::MessageInterface::TRACE_DONE_MESSAGE)
{
Indigo::TraceRayDoneMessageInterface* m = static_cast<Indigo::TraceRayDoneMessageInterface*>(message.getPointer());
I think this is the right forum yeah

Re: How to handle the trace_done_message?
Oh my god I feel stupid - yes, this is exactly what I've been looking for. Turned out the header file wasn't linked correctly in my project so this class didn't show up anywhere
Sorry

Sorry

Who is online
Users browsing this forum: No registered users and 1 guest