NVIDIA / VisRTX

NVIDIA OptiX based implementation of ANARI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide Geometry?

dwlcj opened this issue · comments

commented

How to Hide a geometry with Emissive Material?
like Light SetVisible.

That is currently not possible, sorry! No support for invisible mesh lights at this stage.

However, if your scene layout permits, you could place the emitting geometry behind a primary rays-only clipping plane.

Can you give some more details of your use case? (We can also take this offline if you prefer).

commented

Hello, Tim.
My Code:

VisRTX::BasicMaterial* springMaterial = context->CreateBasicMaterial();
springMaterial->SetEmissive(Vec3f(1.0, 1.0, 1.0));
springMaterial->SetLuminosity(2.0);
springMaterial->SetOpacity(0.0);//????
//set Emissive Material
triangleGeo->SetMaterial(springMaterial);
springMaterial->Release();

In This Code triangleGeo is hide,But Emissive Material failure.

commented

Another question:
Do VisRTX Support IES lighting?

Yes, that’s currently expected behavior. In the basic material, emission is only added if there is a hit. But the lower opacity, the lower the probability for a hit (it’s cut-out opacity).

Actually it should be possible to rearrange the cut-out opacity code a bit to still have emission, which should serve your needs. Can’t promise this will happen soon, though.

VisRTX does not support light profiles.

commented

Thanks, Tim.