Hello Guest

Author Topic: Clipped camera problem  (Read 3344 times)

Clet_

  • Newbie
  • *
  • Posts: 9
    • View Profile
Clipped camera problem
« on: December 12, 2013, 12:44:58 am »
I am attempting to draw a certain portion of the screen (scissor test) and I tumbled upon the viewportClippingEnabled property of a tk2dCamera.
I realized it did exactly what I was looking for, but I just can't seem to figure out how the Rect works.

I have a main tk2dCamera, that fits the screen entirely, which my clipping cam inherits from, but as I modify the X/Y/Width/Height value of my clipping cam, it modifies the viewport rect of my main cam too. I don't seem to grasp everything that goes behing the clipping cam and I can't seem to find documentation on this feature.

Could you enlighten me as of how it is supposed to work?

Clet_

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Clipped camera problem
« Reply #1 on: December 12, 2013, 12:50:07 am »
I went full retard.
I realised that some children of the gameObjects that I was attempting to clip were on a layer renderered by my main camera.

Problem solved. I need to go to sleep