playMaker

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

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
    • View Profile
Camera - Culling mask [SOLVED]
« on: December 13, 2011, 02: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, 06:25:09 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Camera - Culling mask
« Reply #1 on: December 13, 2011, 02: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
    • View Profile
Re: Camera - Culling mask
« Reply #2 on: December 13, 2011, 03: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: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Camera - Culling mask
« Reply #3 on: December 13, 2011, 03: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
    • View Profile
Re: Camera - Culling mask
« Reply #4 on: December 13, 2011, 03:31:18 PM »
wow, Ok much appreciated.
Will let you know.

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
    • View Profile
Re: Camera - Culling mask
« Reply #5 on: December 18, 2011, 01: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: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Camera - Culling mask
« Reply #6 on: December 19, 2011, 10:19:49 AM »
Sure, I'll post it later today.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Camera - Culling mask
« Reply #7 on: December 19, 2011, 10:34:43 AM »