playMaker

Author Topic: Camera - Culling mask [SOLVED]  (Read 5064 times)

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
Camera - Culling mask [SOLVED]
« on: December 13, 2011, 04:10:45 PM »
Hey there, Has anyone managed to adjust the camera's Culling set in real-time using Playmaker?

I need to adjust the culling set via GUI buttons, to hide/show sets of elements based on layer.

Thanks for any advice
Matt.S
« Last Edit: January 14, 2012, 08:25:09 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Camera - Culling mask
« Reply #1 on: December 13, 2011, 04:42:39 PM »
You can use Set Property. Drag the Camera Component into the Target Object field then select the cullingMask Property.

Unfortunately, cullingMask is exposed as an int so you'll have to convert the layer mask yourself...

Alternatively you could make a simple custom action with a LayerMask property to set the Culling Mask.

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
Re: Camera - Culling mask
« Reply #2 on: December 13, 2011, 05:22:00 PM »
Thanks Alex,
I'll look into the first option, custom actions are probably beyond my skill at the moment.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Camera - Culling mask
« Reply #3 on: December 13, 2011, 05:30:19 PM »
If the first option doesn't work for you, let me know and I'll post a SetCameraCullingMask action...

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
Re: Camera - Culling mask
« Reply #4 on: December 13, 2011, 05:31:18 PM »
wow, Ok much appreciated.
Will let you know.

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
Re: Camera - Culling mask
« Reply #5 on: December 18, 2011, 03:59:35 PM »
Hey Alex, I had some trouble getting the first option working as I'd like. Close but no cigar.
If you could post that custom action I would VERY much appreciate it.

Thanks


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Camera - Culling mask
« Reply #6 on: December 19, 2011, 12:19:49 PM »
Sure, I'll post it later today.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Camera - Culling mask
« Reply #7 on: December 19, 2011, 12:34:43 PM »