Graphics

 View Only
  • 1.  Changing the alpha of a group.

    Posted 06-27-2023 19:42

    Can the alpha be changed on a group to change the alpha of all the objects in the group.



    ------------------------------
    David Ball
    ------------------------------


  • 2.  RE: Changing the alpha of a group.

    Posted 06-28-2023 03:34

    Absolutely.  You can set the alpha of a group for the whole scene, or animate the alpha of a group (with keyframes in an animation controller), or control it with scripting or visual logic. Building scenes from the start with groups makes it easier to animate them that way, whether it's the alpha or the position etc..

    add: and just to be clear, each item still retains their own properties that are still animatable as well (so you could, for example, fade in each line of text in a lower third at different times, and then fade out the group of text items).   



    ------------------------------
    Paul
    ------------------------------



  • 3.  RE: Changing the alpha of a group.

    Posted 06-28-2023 09:20

    Fading a group and/or layer does not work as you would imagine. As Paul said the individual objects of the group inherit the fade.

    This means if you have an object/quad with a hidden object or text under it, as the fade happens you see it.

    This means masks become transparent which means what they were masking start to become visible. A mask at 50% alpha masks at 50%. The object it is masking is also then at 50% but that makes it 25% visible and is VERY noticeable.

    Sorry Ross, but you screwed the pooch on this one. Expected behavior is fading the rendered group, not inheriting the fade. Might be a speed issue for rendering to get it real time.



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 4.  RE: Changing the alpha of a group.

    Posted 06-28-2023 09:29

    One method I have found to get around this is to use a render view with "owner scene" and a camera pointing at those objects. 

    Then I fade the quad with the render view material on it. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 5.  RE: Changing the alpha of a group.

    Posted 06-29-2023 00:41

    Depending on what you're trying to achieve, a layer object will let you fade masked objects as you'd expect. But don't nest that layer object within a group or the vanishing mask problem reappears.  And sadly layer objects only have alpha as a parameter, can't change position size etc.



    ------------------------------
    Paul
    ------------------------------



  • 6.  RE: Changing the alpha of a group.

    Posted 06-29-2023 08:03

    is there a XpressionU video on this? I don't quite follow you, but I feel like this could be a useful technique I want to learn.



    ------------------------------
    Roger Heyward
    ------------------------------



  • 7.  RE: Changing the alpha of a group.

    Posted 06-29-2023 08:33

    Here I have put a sphere and a quad inside a camera and move it out of site of the main view port.

    here is what the camera sees

    in a material I make a render view 

    I set owner scene and the camera I want

    back at the front view I have a quad

    On that quad I put the render view, now that quad looks like this

     

    However if you look at it from the side it is 2D render image from the other camera.

    You can treat this quad like any other an fade it out on alpha or move it but the objects inside won't be affect by things like perspective etc and they will fade all together respecting any masks.

    For example the issue people are complaining about is this. 

    Here is my masked object

    at 50% I see this

    However, if I fade the quad with a render view on it I get this, which is the desired result for most people. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 8.  RE: Changing the alpha of a group.

    Posted 06-29-2023 09:35

    Neat.

    Learned something new.

    Is there a performance hit using multiple cameras?



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 9.  RE: Changing the alpha of a group.

    Posted 06-29-2023 09:47

    Like everything in real-time, it's a numbers game.

    You can control the size of the render view textures in the settings so you're not rendering multiple 1080 camera/textures if you only need a fraction of that. 

    Its a powerful feature but with great power comes.... :P 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 10.  RE: Changing the alpha of a group.

    Posted 06-29-2023 17:28

    Hello,

    Thank you for all the responses, I was able to accomplish this via an animation.  However, I did try it first in c# code and had no success.  The goal was a quick fade out then in using alpha when my data changed.  It worked if I directly changed the alpha on my two text objects but not if I tried to adjust the alpha on the group (I changed it to a layer and I was still unable to get it to work.



    ------------------------------
    David Ball
    ------------------------------