Draw isometric cube

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
steVeRoll
Party member
Posts: 140
Joined: Sun Feb 14, 2016 1:13 pm

Draw isometric cube

Post by steVeRoll »

Hi everyone! After playing Ortho Robot (which, by the way, was made with löve :3 ) I wanted to start drawing isometric cubes with variable rotation, but I have no knowledge that can help. Do you have any resources that are related, or a function that can convert variable cube rotation to 2d points on screen? Thank You!
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Draw isometric cube

Post by raidho36 »

The way you do it is by transforming positions of all vertices of a cube by some function, usually being a pre-computed transform matrix. You're basically looking for projection matrix library - try CPML, it most definitely has what you're looking for.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests