How create 3d object with canvas in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How create 3d object with canvas in html?

I need

9th Jan 2021, 2:43 PM
Amirreza Khoshmaram
Amirreza Khoshmaram - avatar
3 Answers
0
Plz answer 🙏
9th Jan 2021, 2:43 PM
Amirreza Khoshmaram
Amirreza Khoshmaram - avatar
0
Gordon answer suggest the easiest way (wich doesn't mean absolute easy, but relative): use of library/framework to handle Mirielle answer without deep diving inside webgl and 3d maths... Also, less efficient than using webgl engine, you could implement one by yourself with 3d maths, matrix and so on... with a 'classic' 2d canvas context (instead of a 3d one when using webgl) but if it's an very interresting subject to study, it's the hard way to do ;P However, if your purpose is to purely 'create' and not 'render/display' 3d object, you should use a 3d modeler (or define it 'manually' -- only realistic for very simple object/scene) and not canvas ;)
10th Jan 2021, 4:20 AM
visph
visph - avatar