WebGL FinalMesh API

文章推薦指數: 80 %
投票人數:10人

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.    



請為這篇文章評分?