简体   繁体   中英

How to create a 3D effect with Raphael, in javascript?

I know that Raphael.js is a vector graphic javascript engine. However, I need to create cylinders in javascript and have text written on the round part of the cylinder. The text needs to follow the surface of the cylinder, which makes a 3D like effect.

Does anyone knows how to do this with Raphael? Otherwise, which other library should I use to achieve my goals?

Thanks in advance guys! Steve

The best 3d javascript library out there in my opinion is:

Three.js by mr doob

Head on over and look at the examples there and view the source code. If you do fancy getting in to three.js checkout the tutorials by aerotwist:

aerotwist tutorials

EDIT

Three.js also has a SVG Renderer I found this example on fiddle

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