7 Replies Latest reply on Aug 31, 2011 8:58 PM by fearless0ul

    <RenderTextureObj>.image doesn't work

    fearless0ul

      hi , Dose anybody know the New feature: "rendertotexure"
      my script like this:

       

      prite3D = sprite("3D World")
      myRT = member("3D World").newTexture("MyRT1",#renderTexture, 512, 512)
      sprite3D.renderToTexture(sprite3D.camera, myRT)
      member("bitmapRT").image = myRT.image

       

      it can't work correctly,the value of myRT.image(like width,height) is void

      the member("bitmapRT") change to white

      But I can give myRT to other object texture in the scene; like this;

      scene.shader("tex").texture = myRT

       

      who can tell me how to do it?