Request – Mojo3d – Addtriangle example

About Monkey 2 Forums Monkey 2 Programming Help Request – Mojo3d – Addtriangle example

This topic contains 1 reply, has 2 voices, and was last updated by  Mark Sibly 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9216

    Pakz
    Participant

    I have been trying but failing into understanding on how to create a simple triangle. I want to start building things with meshes( I think that is what i need)

    With blitz3d there was an example where it showed how to make a ramp. I was always able to go back to that to study how to make walls ect myself.

    Would anyone who understands this already place some barebones code on how to make a wall or triangle?

    #9218

    Mark Sibly
    Keymaster

    Just added this to tests!

    The easiest way to go is to create an array of vertices and an array of indices and just use New Mesh( vertices,triangles ).

    Also, have a look at the source code for Mesh.CreateBox, Mesh.CreateSphere etc in modules/mojo3d/graphics/meshprims.monkey2

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.