Hello,
im having some issues with applying camera masks to each eye of stereo camera
i have two copies of a card that will receive different textures and they are masked to two cameras
but then the renderer only renders one of the cards but for both eyes
sdr = manager.buffers[0].getDisplayRegion(3)
sdr.camera.node().getLens().setNearFar(1,10000)
leftEye: DisplayRegion = sdr.getLeftEye()
rightEye: DisplayRegion = sdr.getRightEye()
leftEye.setClearDepth(1)
leftEye.setClearDepthActive(True)
leftEye.camera.node().getLens().setNearFar(1,10000)
leftEye.camera.node().getLens().setFov(69,55)
leftEye.camera.node().setCameraMask(BitMask32.bit(0))
rightEye.setClearDepth(1)
rightEye.setClearDepthActive(True)
rightEye.camera.node().getLens().setNearFar(1,10000)
rightEye.camera.node().getLens().setFov(69,55) # change to init var
rightEye.camera.node().setCameraMask(BitMask32.bit(1)) # change to init var
#"""
and then in other part of the code I hide the generated cards using the bitmask :
# set up a stereo cards to apply the numpy texture
#"""
cm = CardMaker('cardMaker')
self.background = NodePath("background")
# generate cards and attach them to the background node
self.cardL : NodePath = self.background.attachNewNode(cm.generate())
self.cardR : NodePath = self.background.attachNewNode(cm.generate())
# Set streams to render in respective camera views
self.cardL.hide(BitMask32.bit(0))
self.cardR.hide(BitMask32.bit(1))
self.background.reparentTo(self.xr_Cam.Head)
self.background.setPos(self.xr_Cam.Head.getPos())
and im getting the weird result (one of the card is visible with two eyes and the other is invisible)