只有在渲染時纔可以合併頂點嗎?我正在做一系列的變形,需要頂點列表保持不變,但是我想合併頂點以在立方體相機上獲得平滑的反射。任何一個知道類似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