Graphics

 View Only
  • 1.  Using c# adding new textures to more than one material and then updating

    Posted 06-23-2023 14:01

    I am using c# to change the image in a material's texture.  I do this for a number of materials.  The issue I am having is that the updates visually happen sequentially.  Is there a way to have them update and then get drawn to the screen at once?  The way I currently do it is fine with the development Xpression version but when we run in production, we can see each update sequentially.

    thanks in advance.



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


  • 2.  RE: Using c# adding new textures to more than one material and then updating

    Posted 06-24-2023 13:12

    It shouldn't really do that someone like @Garner Millward might be able to speak to that.

    What you could do depending on number you are dealing with is have a hidden object for each that you right to from C# and then trigger a scene director with a script on it the does the copy within XPression which should do it all in one go. You shouldn't need to do this but it might be a solution if no one else has a better idea. 



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



  • 3.  RE: Using c# adding new textures to more than one material and then updating

    Posted 06-24-2023 19:05
    Hello,
    thanks for your response.  I don't understand what you are saying but I partially solved the problem.  We have a system where we change the assets at any point while the graphic is online.  I had always been told to have that happen as soon as we get the signal to update.  This would happen separately from the rendering.  If I switch to have it happen when it renders, it works.  However, then there is a huge delay before the assets update.  They do appear all at once but it is seconds.  I would understand if it was a frame or maybe two (it was happening immediately but not all at once).  Unfortunately, these are show stoppers.  I'm a big fan of Xpression and how we can use it but this might be the last straw for my company.
    thanks for your help.






  • 4.  RE: Using c# adding new textures to more than one material and then updating

    Posted 06-25-2023 05:56

    I think I'd need one of the dev's to have input on this conversation because I haven't done much with C# and XPression personally. 



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