admin管理员组文章数量:1332697
My application returns the relative positions between two lines and I want draw this lines with Javascript. The line is defined with a director vector, a point and is three dimension.
Is there any library available which can do this? I found only Victor.js but does not help in my case
My application returns the relative positions between two lines and I want draw this lines with Javascript. The line is defined with a director vector, a point and is three dimension.
Is there any library available which can do this? I found only Victor.js but does not help in my case
2 Answers
Reset to default 6Three.js: "The aim of the project is to create a lightweight 3D library with a very low level of plexity — in other words, for dummies. The library provides canvas, svg, CSS3D and WebGL renderers."
Processing.js: "Processing.js is the sister project of the popular Processing visual programming language, designed for the web. Processing.js makes your data visualizations, digital art, interactive animations, educational graphs, video games, etc. work using web standards and without any plug-ins."
Both are very mature and have an active munity. There are plenty of resources to learn from, for example three.js's Getting Started and Processing.js's Learning.
Here, you have a really easy guide to draw a 3D shape on a 2D surface (With ProcessingJS)
Its a guide by Khan Academy to make 3D shapes with ProcessingJS
You might want to read THIS too.
Its the original article, by Peter Collingridge
Draw 3d shapes on html5 canvas
本文标签: Drawing 3D elements with JavascriptStack Overflow
版权声明:本文标题:Drawing 3D elements with Javascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742340995a2456600.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论