Forums > Jitter

How to hide gl textures/objects together with syphone?

June 1, 2014 | 9:06 am

Hello Forum,

today i tried to make a patch ready to use with syphon and it worked great so far.
but i ran into problems with contexts:
in order to hide certain objects from the scene with a toggle switch i banged a "dratwo" message with my render context for on
and a "drawto empty" message for make it disappear.

as long as i didn’t use syphon it worked but now as soon as i want to hide the objects or the drawing from a gl.sketch the frame in syphon freezes until i press the toggle again…
is there another way to hide things?? i dont necesserely want to clear the drawing from the gl.sketch for example i just want to mae it disappear and appear again when i hit a button.

thanks in advance!


June 1, 2014 | 12:18 pm

what about the messages "enable 0" and "enable 1" straight to the gl.sketch ?


June 1, 2014 | 4:23 pm

Or just turn off the alpha data. So instead of color 1. 1. 1. 1. do 1. 1. 1. 0.


June 1, 2014 | 4:31 pm

Allows cool fade in and fade outs compared to enable 0. ;-)


June 2, 2014 | 5:50 am

Thanks a bunch for all your answers! overlooked it somehow in the attributes.
for my needs enabling works best so far, since i use buttons. but will look at the fade possibilty as well. could be interesting for certain things!!!
is there any difference concerning the cpu? cause probably when turning off the alpha data the object is still rendered?

  • This reply was modified 1 month by  Linden.

June 2, 2014 | 7:19 am

You can use a button to trigger a line signal which could make a very fast or smooth fadeout.
eg.
Button going to toggle.
use and expression or a gate like
if 1 trigger line
line go from 1.0 to 0. over 2 seconds.

if 0 then
message box with color 1. 1. 1. 1.

simple method for on off is
toggle going to a message box with
color 1. 1. 1. $1

either way you just just use one button to swap alpha on/off/

CPU shouldn’t be a problem either way.

  • This reply was modified 1 month by  Andro.

Viewing 6 posts - 1 through 6 (of 6 total)