#1
12th February 2016, 01:26 PM
| |||
| |||
03D Open Source Details
hii sir, I wants to know about the 03D open source will you please give me the overview about the 03d open source ?
|
#2
12th February 2016, 01:37 PM
| |||
| |||
Re: 03D Open Source Details
As you asking for the 03D let me tell you that the 03D is the is an open source (BSD license) JavaScript API created by Google for creating interactive 3D graphics applications that run in a web browser window or in a XUL desktop application it is basically a plug-in based architecture which allowed 3rd party developers to integrate custom functionality such as pre and post render effects, particle systems, and or physics engines here I am providing you some Examples of the 03D that is as follow: var Vr = o3djs.math.subVector( o3djs.math.addVector(o3djs.math.cross(w2, r2), v2), o3djs.math.addVector(o3djs.math.cross(w1, r1), v1)); var Vrn = o3djs.math.mulScalarVector(o3djs.math.dot(Vn, N), N); var Vrt = o3djs.math.subVector(Vr, Vrn); is translated into WebSharper as: let Vr = O3DJS.Math.Sub( O3DJS.Math.Add(O3DJS.Math.Cross(w2, r2), v2), O3DJS.Math.Add(O3DJS.Math.Cross(w1, r1), v1)) let Vrn = O3DJS.Math.Mul(O3DJS.Math.Dot(Vn, N), N) let Vrt = O3DJS.Math.Sub(Vr, Vrn) Parameters: In O3D, the methods Pack.createObject, Pack.getObjects, State.getStateParam, Curve.createKey, Buffer.createField and ParamObject.createParam return an object whose type depends on the argument passed Therefore, these methods have been translated into series of individual methods, each of which handles one of the possible return types. For example, the following JavaScript snippet: var transform = pack.createObject('Transform'); transform.parent = root; var myParam = transform.createParam('objectCenter', 'ParamFloat2'); |