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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742340996a4425624.html
评论列表(0条)