WebGL FinalMesh API
文章推薦指數: 80 %
WebGL FinalMesh API ... Main goal of FinalMesh JS framework is to provide an ability to load and preview pre-processed, compressed 3d models in WebGL enabled ... Home Features WebGL 3DPDF Downloads Order Contact Help Components AboutUs WebGLFinalMeshAPI MaingoalofFinalMeshJSframeworkistoprovideanabilitytoloadand previewpre-processed,compressed3dmodelsinWebGLenabledbrowser. Loadinganddisplayingof3dfileisperformedautomatically,withoutsingle lineofextracode.Additionalcustomizationsofviewerormanipulations withobjectsarepossibleviaAPI,forinstance: switchnodeon/off changematerials changeview animate Classes iv.window 3dWindow/Viewport iv.space 3dSpace iv.node 3dNode iv.object Base3dobjectclass iv.mesh 3dMesh iv.light 3dLight iv.camera 3dCamera iv.material 3dMaterial mat4 3dMatrix TutorialsandSamples CreatingWebGLapplication. Mergingobjectstoalreadyloadedscene withextraparameters. Presentingdifferenttexturesonthe3dobject.Learnmore. Workwithselections. ZoomtoSelection. Mouseclick/hovernotifications andmetadatausage. Metadata Comments Traversing Wholescenetreemaybetraversedbycallingnode.traverse()method.In caseofrootnodeitwillbeview.space.root.traverse(); Thismethodinvokescallbackfunctionforeachnode.nodeandworldspace tmarepassedasarguments. ReferenceCounting Since3DsystemworkswithOpenGLresourcescodeshouldmangeOpenGL resourcesanddestroywhentheyarenolongerneeded.Forthispurposeall nodesshouldbeinsertedandremovedfromparentwithhelpofnode.insert /node.removeornode.clear.Objectshouldbeattachedorremovedvia node.setObject.Newnodehaszeroreferencecount.Afterinsertion referencecountwillbe1.Afterremovingitwillreachzeroandallsub nodesandobjectswillbedestroyed.Ifyouwanttokeepobjectornodein forfutureuseyoushouldcall.addRef()methodandcall.release()when itnolongerneeded. LoadData 3DSpaceisloadedfromfilespreparedbyFinalMesh.Thisgreatly improvesloadingspeedandreducesamountofrequiredmemoryonclient computer.Butthereareimportersfor.STL,.AMFandfewmorefileformats.
延伸文章資訊
- 1WebGL - Web APIs | MDN
WebGL (Web Graphics Library) 是一個透過瀏覽器渲染3D及2D圖像的 JavaScript API ,且不需要安裝任何插件。 WebGL 透過與OpenGL ES 2....
- 23D 網站開發入門筆記_WebGL 觀念
WebGL 基於OpenGL ES 2.0,OpenGL ES(OpenGL for Embedded Systems 的縮寫)是OpenGL3D 圖形API 的子集,針對手機、PDA 和遊戲主...
- 3WebGL Overview - The Khronos Group Inc
WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics API based on Ope...
- 4WebGL - 維基百科,自由的百科全書
它使用HTML5 Canvas並允許利用文件物件模型介面。WebGL 2.0基於OpenGL ES 3.0,確保了提供許多選擇性的WebGL 1.0擴充功能,並引入新的API。
- 5Day 9 : WebGL初探 - iT 邦幫忙
WebGL又是基於OpenGL ES而發展的函式庫,所以可以說只要是OpenGL 2.0版本運行ok的程式碼,應該就 ... WebGL 是JavaScript API, 內容都寫在HTML5 ...