只有在渲染时才可以合并顶点吗?我正在做一系列的变形,需要顶点列表保持不变,但是我想合并顶点以在立方体相机上获得平滑的反射。任何一个知道类似unmerge顶点的命令?geometry.mergeVertices()only only at render time
0
A
回答
-1
好吧,这不是在文档部分,但你需要使用的证明在这个例子中爆炸修改:http://threejs.org/examples/#webgl_geometry_tessellation
var explodeModifier = new THREE.ExplodeModifier();
explodeModifier.modify(geometry);
geometry.computeFaceNormals();
geometry.computeVertexNormals();
//This will undo the geometry.mergeVertices();
0
你试过这样做呢?它应该工作。 你需要调用
geometry.verticesNeedUpdate()
geometry.elementsNeedUpdate()
告诉three.js所的顶点和面,分别发生了变化。还有其他更新函数可能需要调用(例如,如果法线已更改)。更多详细信息,请访问:https://github.com/mrdoob/three.js/wiki/Updates
请注意该页面上的顶点总数不能更改的注释。这可能需要您在临时几何体上进行合并,然后将顶点复制到您的渲染几何体中。
相关问题
- 1. Jquery Time Ago only days in
- 2. Javascript only only below
- 3. Spring Security Authenticated only only
- 4. Ajax only only first record?
- 5. Core Graphics drawing only only
- 6. the_excerpt only only last post
- 7. mysql sum only only 1
- 8. display:table-cell only not in IE11 only
- 9. elasticsearch deletebyquery return only only found
- 10. Delta Indexing Only Only in Console
- 11. ValueConversion only only when not selected
- 12. ASP.NET页面POST only only
- 13. MapReduce:Map-only还是Reduce-only?
- 14. Java list only only addition删除
- 15. Google Contacts only only(OAuth 2.0)
- 16. Threejs raycaster only only close close
- 17. Click Event Works Only Only Last Marker
- 18. Javascript only only on first listview item
- 19. Google maps direction renderer only only
- 20. OneToMany Relationship Only Only 1 Row
- 21. handontable undoes only only last cell changed
- 22. HTML to PDF conversion only only javascript
- 23. Javascript field only editable only to admins
- 24. NoClassDefFoundError:org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration only API 19
- 25. UnknownHostException only on Bluemix
- 26. MDX错误“Subselects only only the COLUMNS axis”
- 27. “undefined function exif_read_data()”error only only via Cron
- 28. @ Symbol In Object Key Name Only Only in Chrome?
- 29. sql order by not only with group by by only
- 30. Restkit Objective-C:Post request only only once once