Copy link to clipboard
Copied
I need to use "treejs."
But when I added to ANIMATE CC, I couldn't use it.
threejs
https://github.com/mrdoob/three.js/
How can I use it?
Please help me.
1. download three.js-dev.zip from GitHub - mrdoob/three.js: JavaScript 3D library.
2. unzip the files
3. start a new animate project and save it
4. open the include scripts panel use the add icon to navigate to and include Three.min.js in the build folder*
5. add the sample code to frame 1**
*
**
Copy link to clipboard
Copied
Hello!
I have attached the library. But the code that is here adds a separate canvas for THREE. And I would like to add 3D objects to the scene in the anime.
document.body.appendChild( renderer.domElement );
replace with something like -
exportRoot.addChild(scene);
Copy link to clipboard
Copied
I just want Animate and ThreeJS to have a common canvas
Copy link to clipboard
Copied
i'm not sure what you're doing, so you'll need to figure this out yourself, unless someone else can/wants to help
Copy link to clipboard
Copied
I don't think that's possible because both are graphic libraries that will take total control of the element and its context's drawing methods.
It may be better for you to overlay two canvases on top of each other.
Copy link to clipboard
Copied
You may want to take a look at how to associate/transform an instance inside of Animate/CreateJS canvas to an outer element using the DOMElement class. This outer element would contain your Three.js output.
Copy link to clipboard
Copied
Thanks a lot. I'll do so
Find more inspiration, events, and resources on the new Adobe Community
Explore Now