Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion


Mesh textures
  • I got a query. Is it possible to texturize a mesh object with an image object? I tried but failed to do. If its possible can some one give an example code to show how to do it?

  • SimeonSimeon
    Posts: 3,478

    @rashedlatif you can set the mesh.texture property to either a string (sprite name) or an image object. For example:

    myImage = image(400,400)
    -- Fill myImage with something
    m = mesh()
    m.texture = myImage
  • Thanks Simeon. That's exactly how I tried but nothing happened. Now realized where I made mistake. Thanks :)