2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
12th February 2016, 01:37 PM
Super Moderator
 
Join Date: Apr 2013
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');


Quick Reply
Your Username: Click here to log in

Message:
Options

Thread Tools Search this Thread



All times are GMT +5. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4