Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Apply tracesets to lights and secondary rays in c++ shader

0 ANTWORTEN 0
Antworten
Nachricht 1 von 1
Fred_Blueroom
230 Aufrufe, 0 Antworten

Apply tracesets to lights and secondary rays in c++ shader

Hi,

I'm trying to achieve an effect to make a 'trace set filter' and am currently using a surface shader on a plane in front of my camera and triggering rays that I attach trace sets to, when I hit that plane.


This is part of my surface shader for that plane,


AtRay wi_ray = AiMakeRay(AI_RAY_CAMERA, sg->P, &sg->Rd, AI_BIG, sg);
wi_ray.traceset = trace_set;
wi_ray.inclusive_traceset = true;

 if( !AiTrace(wi_ray, AI_RGB_WHITE, scrs))
        AiTraceBackground(wi_ray, scrs);
 }


It works as I was hoping in that it removes non trace set tagged objects from being primary visible.

But the problem is the objects are still visible to shadow rays and also visible in reflections.


How could I make it so that the object also doesn't show up in reflections or casts shadows?


Cheers

Tags (1)
Beschriftungen (1)
0 ANTWORTEN 0

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report