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....
- 2Internet Explorer 11 中WebGL 呈現工具的改良功能
在硬體模式中Windows WebGL 呈現器之7 SP1 的Web 驅動程式更新。 關於WebGL 呈現器. WebGL 是JavaScript API,可讓開發人員為遊戲 ...
- 3WebGL FinalMesh API
WebGL FinalMesh API ... Main goal of FinalMesh JS framework is to provide an ability to load and ...
- 43D 網站開發入門筆記_WebGL 觀念
WebGL 基於OpenGL ES 2.0,OpenGL ES(OpenGL for Embedded Systems 的縮寫)是OpenGL3D 圖形API 的子集,針對手機、PDA 和遊戲主...
- 5WebGL Overview - The Khronos Group Inc
WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics API based on Ope...