简体   繁体   中英

THREE JS Morph Different Geometries

I'm using the EdgesGeometry to render my objects. Right now I'm looking for a way to morph Tetrahedron into Octahedron, Octahedron into Box, Box into Sphere and in the reverse sequence. Went through a lot of documentations and discussions and videos - everything is either outdated, deprecated or just miser text explanations. I found a way to morph BufferGeometry objects using TWEEN.js , but in my case I need to morph EdgesGeometry objects. I'd be very grateful if someone gave me some good links or even code examples of how to do this. Thanks

Morph targets has great results. Otherwise, loop the vertices and lerp to a corresponding Vertex3. You could use a Post-Processing Effects shader to soften the transition, such as Bokeh or metaballs.

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