Graphics

 View Only
  • 1.  Accessing Texture Blending modes via script?

    Posted 08-30-2017 20:53
    I am creating a scene for an L-Bar (Lower 3rd with a sidebar that extends the height of the screen) The sidebar will have room for 3 'topics' at a time, and each topic title has an image above it relating to the topic. As we move onto new topics, everything slides up, and so that the previously discussed topic sits in the top position. At that point, the top most image 'grays out', which in the mock-up I achieved by changing the texture blending mode to 'Dot-Product-3' and lowering the material's diffuse to L24. The look is nice, the client is happy, but now I need to figure out how to achieve this from a functionality standpoint, and I am not versed at all in scripting.

    Having said that, the entirety of the rest of the package was delivered and the scripting needs were handled by Ross personnel who were on site, but I would either like to work this part of it out here (I'm not a fan of pushing work down the pipe, I much prefer to deliver turn-key), or barring that know exactly what I need to do to set this up for whomever comes in behind me, so they aren't having to make changes to accomplish the goal.

    Any guidance on this would be very appreciated.

    Thanks in advance,

    - Willie

    TLDR - I need to know how to access a texture's blending modes / diffuse settings for functionality purposes.


  • 2.  RE: Accessing Texture Blending modes via script?

    Posted 09-06-2017 04:42
    I don't think it's possible to change the blending mode with a script.
    It looks like xpMaterial.ColorDiffuse is a read-only property so I don't think it's possible to change that either.

    I'm not much of a creative designer so my only suggestion would be to have two materials and swap them instead of changing the material itself.
    #XPression


  • 3.  RE: Accessing Texture Blending modes via script?

    Posted 09-06-2017 17:06
    What about linking 2 materials so that when an image is loaded into one, it also loads into the other? Since the texture is the same, only the blending modes and diffuse are separate, it seems like I could at least simplify the task of setting up by creating such a link. I have already, via VL tied the texture pos/scale values of the two quads for which the 2 materials are assigned.
    #XPression