Howdy, Stranger!

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

In this Discussion

how can i add mesh like entity

how can i add mesh() like entity object?
like. scene:add(mymesh)

Comments

  • Posts: 1,605

    @q313923011 - you can build a texture up in an image() and then use that as the texture for a .obj or a table of vertices. There are a few examples recently fro @dave 1707 where he builds up a table and uses tiling for the terrain - but you can build your texture as above - that uses Craft.

    Also, @LoopSpace - has some routines which convert a mesh into an obj file in situ - search recent posts for that.

  • SimeonSimeon Admin Mod
    Posts: 5,202

    @q313923011 this discussion is quite good:

    https://codea.io/talk/discussion/10382/add-shade-shader-to-2d-circle-object#latest

    It creates a mesh-like object as an entity in Craft in the shape of a circle with a shader attached. But once you get to this point you can create the mesh however you like

Sign In or Register to comment.