简体   繁体   中英

Javascript: How to draw a simple line on canvas (in 3d) and make it rotatable (in 3d)?

因此,我想在画布上绘制一条线(在3d中),并在鼠标拖动该线(拖动它的一些点)时使其可旋转(在3d中)(更好地使用任何类似专用的lib - 纯粹没有libs JS。 ..)?

A good choice is the "Three.js" library; the README has a simple example of how to create a simple canvas-rendered scene. The "Voxels" example has mouse rotation; for fun, see the "spikeball" demo.

我认为c3dl文档 )会对你有所帮助。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM