different cam, different look

hello!

i created a displayregion-camera:

cam1 = base.makeCamera(base.win, displayRegion = self.reg1,
                             camName='normalCam'
                             )

with the standard camera, it looks like this:

what can i do to remove the weird black surroundings of the image?

greets, kampfgnu

ok, 5 seconds after posting, i found this:

cam1.node().getDisplayRegion(0).setClearDepthActive(1)
      cam1.node().getDisplayRegion(0).setClearColorActive(1)
      cam1.node().getDisplayRegion(0).setClearColor(VBase4(0.1, 0.1, 0.3, 1))

setClearColor removes the black stuff.
but could you please explain what setClearColor does and why (0.1, 0.1, 0.3, 1) is the correct value?

setClearColor() changes the initial, background color of the window, which is the color it holds before it draws any objects. (0.1, 0.1, 0.3, 1) is a dark blue color. The default background color for a new window is black.

There must be something transparent in your image that is showing through to the background color, right around the borders of your letters. There are other parts of your image that are this dark blue color. When the background color is black, you see black where it shows through your image. When you set the background color to the same dark blue color in the other parts of your image, it all looks the same to you.

Check the alpha channel in your image.

David

:slight_smile: good to see that the app is coming, what has change since im quit the job?? :smiley: