Graphics

 View Only
  • 1.  3D Objects Visual Logic Material

    Posted 10-09-2022 21:23
    Hi guys! Is there any way use visual logic change 3D object material ? Thanks a lot!Visual Logic


    ------------------------------
    Faber Shen
    ------------------------------


  • 2.  RE: 3D Objects Visual Logic Material

    Posted 10-11-2022 02:18
    Hi Faber,

    Judging by the screenshot you posted from the VL properties of a 3D object, you can't. However, if you just want several other images as material on the 3D object (as opposed to hundreds of images), you could play around with the Texture Coordinates.

    Suppose you would like to swap between 4 images, you could create 1 overall image as a quad containing all 4 images (so top left could be image 1, top right image 2, etc.) and use VL to manipulate the Texture Coordinates to cut out the desired section to use (don't forget to also adjust the Texture Scaling at design time).

    ------------------------------
    Gerard de Vries
    Solution Architect Live Graphics & Virtual Graphics
    EMG
    The Netherlands
    ------------------------------



  • 3.  RE: 3D Objects Visual Logic Material

    Posted 10-11-2022 10:17
    Hey Gerard, that's a great idea! Thank you very much!

    ------------------------------
    Faber Shen
    ------------------------------



  • 4.  RE: 3D Objects Visual Logic Material

    Posted 10-18-2022 11:10
    Hi Faber,

    You're welcome.
    Of course this work around shouldn't be necessary, so I will take the liberty to enter this into Ross Ideas so we can hopefully benefit from this in a future release of XPression.

    ------------------------------
    Gerard de Vries
    Solution Architect Live Graphics & Virtual Graphics
    EMG
    The Netherlands
    ------------------------------