URP stencil sample not exporting correct

I am also using URP, Unity 2022.2 Lts

by user 373346625025736705

Which Needle Engine version are you using?

I downloaded it today again. so it should be 3.9. 0. I used this video to make the stencil buffer

Also another question, if I put it on AR, that should also work, right? Like for WebXR image target

by user 373346625025736705

Automatic stencil export works with URP + RenderObject settings. You can see an example in our samples. When you write a custom shader it wont be exported (we export unlit shaders but stencils will most likely not be working there as well)

For AR: you can setup image tracking for WebXR. There’s also an example in the samples package if you need a reference but it’s basically just adding the WebXRImageTracking component next to the WebXR component.

Note that for this to work on android you need to enable the chrome incubations flag. You can find more about this in our docs

Thanks for such detailed answer.
So my custom shader may not work, but the example provided by needle should work.

I think the problem was that I imported the demo stencil project into my custom stencil shader project and the layer and some other setting got messed up. I will start with a fresh one and see.

Will try out things and let u know tomorrow. It’s 1am here and I can’t sleep. Mediapipe, stencils everything everywhere in my head :woozy_face: good night and thanks a lot :pray:

by user 373346625025736705