/external/jmonkeyengine/engine/src/test/jme3test/model/shape/ |
TestSphere.java | 39 import com.jme3.scene.shape.Sphere; 50 Sphere sphMesh = new Sphere(14, 14, 1); 55 Geometry sphere = new Geometry("sphere", sphMesh); local 56 sphere.setMaterial(solidColor); 57 sphere.setLocalTranslation(x * 2, 0, y * 2); 58 rootNode.attachChild(sphere);
|
/frameworks/base/opengl/java/android/opengl/ |
Visibility.java | 78 * world-space coordinates. R is the radius of the sphere. 82 * @param spheres a float array containing the sphere data. 83 * @param spheresOffset an offset into the sphere array where the sphere 107 * Compute a bounding sphere for a set of points. It is approximately the 108 * minimal bounding sphere of an axis-aligned box that bounds the points. 113 * @param sphere array containing the output as (x, y, z, r) 114 * @param sphereOffset offset where the sphere data will be written 118 * sphere is null, sphereOffset < 0, sphereOffset > sphere.length - 4 [all...] |
/frameworks/rs/scriptc/ |
rs_math.rsh | 152 * Checks if a sphere is withing the 6 frustum planes 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 168 if (distToCenter < -sphere->w) { 171 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 172 if (distToCenter < -sphere->w) { 175 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 176 if (distToCenter < -sphere->w) [all...] |
/prebuilts/sdk/renderscript/include/ |
rs_math.rsh | 152 * Checks if a sphere is withing the 6 frustum planes 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 168 if (distToCenter < -sphere->w) { 171 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 172 if (distToCenter < -sphere->w) { 175 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 176 if (distToCenter < -sphere->w) [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/material/ |
TestSimpleBumps.java | 44 import com.jme3.scene.shape.Sphere; 63 Geometry sphere = new Geometry("Rock Ball", quadMesh); local 65 sphere.setMaterial(mat); 66 TangentBinormalGenerator.generate(sphere); 67 rootNode.attachChild(sphere); 69 lightMdl = new Geometry("Light", new Sphere(10, 10, 0.1f));
|
TestUnshadedModel.java | 10 import com.jme3.scene.shape.Sphere; 22 Sphere sphMesh = new Sphere(32, 32, 1); 23 sphMesh.setTextureMode(Sphere.TextureMode.Projected); 27 Geometry sphere = new Geometry("Rock Ball", sphMesh); local 32 sphere.setMaterial(mat); 33 rootNode.attachChild(sphere);
|
TestNormalMapping.java | 43 import com.jme3.scene.shape.Sphere; 59 Sphere sphMesh = new Sphere(32, 32, 1); 60 sphMesh.setTextureMode(Sphere.TextureMode.Projected); 64 Geometry sphere = new Geometry("Rock Ball", sphMesh); local 66 sphere.setMaterial(mat); 67 rootNode.attachChild(sphere); 69 lightMdl = new Geometry("Light", new Sphere(10, 10, 0.1f));
|
/external/jmonkeyengine/engine/src/test/jme3test/stress/ |
TestLeakingGL.java | 42 import com.jme3.scene.shape.Sphere; 55 private Sphere original; 63 original = new Sphere(4, 4, 1); 83 Geometry sphere = new Geometry("sphere", sphMesh); local 85 sphere.setMaterial(solidColor); 86 sphere.setLocalTranslation(x * 1.5f, 0, y * 1.5f); 87 rootNode.attachChild(sphere);
|
/external/jmonkeyengine/engine/src/android/jme3test/android/ |
TestUnshadedModel.java | 10 import com.jme3.scene.shape.Sphere; 22 Sphere sphMesh = new Sphere(32, 32, 1); 23 sphMesh.setTextureMode(Sphere.TextureMode.Projected); 27 Geometry sphere = new Geometry("Rock Ball", sphMesh); local 32 sphere.setMaterial(mat); 33 rootNode.attachChild(sphere);
|
TestNormalMapping.java | 45 import com.jme3.scene.shape.Sphere; 61 Sphere sphMesh = new Sphere(32, 32, 1); 62 sphMesh.setTextureMode(Sphere.TextureMode.Projected); 66 Geometry sphere = new Geometry("Rock Ball", sphMesh); local 68 sphere.setMaterial(mat); 69 rootNode.attachChild(sphere); 71 lightMdl = new Geometry("Light", new Sphere(10, 10, 0.1f));
|
/cts/tests/tests/rsg/src/android/renderscriptgraphics/cts/ |
FileA3DTest.java | 31 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.sphere); 36 FileA3D model = FileA3D.createFromAsset(mRS, mRes.getAssets(), "sphere.a3d"); 41 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.sphere); 47 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.sphere); 54 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.sphere); 71 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.sphere); 81 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.sphere); 90 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.sphere);
|
/external/jmonkeyengine/engine/src/test/jme3test/texture/ |
TestTexture3D.java | 17 import com.jme3.scene.shape.Sphere; 39 //creating a sphere 40 Sphere sphere = new Sphere(32, 32, 1); local 42 sphere.updateBound(); 43 BoundingBox bb = (BoundingBox) sphere.getBound(); 46 //we need to change the UV coordinates (the sphere is assumet to be inside the 3D image box) 47 sphere.clearBuffer(Type.TexCoord); 48 VertexBuffer vb = sphere.getBuffer(Type.Position) [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/post/ |
TestFBOPassthrough.java | 41 import com.jme3.scene.shape.Sphere; 77 Sphere sphMesh = new Sphere(20, 20, 1); 80 Geometry sphere = new Geometry("sphere", sphMesh); local 81 sphere.setMaterial(solidColor); 82 fbNode.attachChild(sphere);
|
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
BoundingSphere.java | 49 * <code>BoundingSphere</code> defines a sphere that defines a container for a
50 * group of vertices of a particular piece of geometry. This sphere defines a
78 * the radius of the sphere.
80 * the center of the sphere.
88 return Type.Sphere;
92 * <code>getRadius</code> returns the radius of the bounding sphere.
94 * @return the radius of the bounding sphere.
101 * <code>setRadius</code> sets the radius of this bounding sphere.
104 * the new radius of the bounding sphere.
111 * <code>computeFromPoints</code> creates a new Bounding Sphere from a 386 BoundingSphere sphere; local 401 BoundingSphere sphere; local 471 BoundingSphere sphere = (BoundingSphere) volume; local 516 BoundingSphere sphere = (BoundingSphere) volume; local [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
PhysicsTestHelper.java | 24 import com.jme3.scene.shape.Sphere; 25 import com.jme3.scene.shape.Sphere.TextureMode; 71 //immovable sphere with mesh collision shape 72 Sphere sphere = new Sphere(8, 8, 1); local 73 Geometry sphereGeometry = new Geometry("Sphere", sphere); 76 sphereGeometry.addControl(new RigidBodyControl(new MeshCollisionShape(sphere), 0)); 103 Sphere sphere = new Sphere(16, 16, .5f) local 149 Sphere sphere = new Sphere(8, 8, 0.25f); local [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/scene/ |
TestSceneLoading.java | 44 import com.jme3.scene.shape.Sphere; 50 private Sphere sphereMesh = new Sphere(32, 32, 10, false, true); 51 private Geometry sphere = new Geometry("Sky", sphereMesh); field in class:TestSceneLoading 62 sphere.setLocalTranslation(cam.getLocation());
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
SimpleAppRS.java | 82 // Load a file that constains two pieces of geometry, a sphere and a cube 157 // Draw a sphere 158 Renderable sphere = mScene.appendNewRenderable(); local 159 // Use the sphere geometry loaded earlier 160 sphere.setMesh(mSphereMesh); 161 // Make a transform to position the sphere 165 sphere.setTransform(t); 169 sphere.appendSourceParams(new TextureParam("diffuse", new Texture2D("", "red.jpg"))); 170 sphere.setRenderState(diffuseRS);
|
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/ |
HelloPhysics.java | 48 import com.jme3.scene.shape.Sphere;
49 import com.jme3.scene.shape.Sphere.TextureMode;
76 private static final Sphere sphere;
field in class:HelloPhysics 87 sphere = new Sphere(32, 32, 0.4f, true, false);
88 sphere.setTextureMode(TextureMode.Projected);
202 Geometry ball_geo = new Geometry("cannon ball", sphere);
|
HelloPicking.java | 53 import com.jme3.scene.shape.Sphere;
70 initMark(); // a red sphere to mark the hit
148 Sphere sphere = new Sphere(30, 30, 0.2f);
local 149 mark = new Geometry("BOOM!", sphere);
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/ |
scenes.js | 143 name: 'sphere', 144 type: 'sphere', 169 body.shape = 'sphere';
|
world.js | 76 type != "sphere" && 87 if (type == "sphere") {
|
/external/jmonkeyengine/engine/src/test/jme3test/terrain/ |
TerrainTestCollision.java | 58 import com.jme3.scene.shape.Sphere; 72 * Left click to place a sphere on the ground where the crosshairs intersect the terrain. 158 Geometry sphere = new Geometry("cannonball", new Sphere(10, 10, r)); local 159 sphere.setMaterial(matWire); 163 sphere.setLocalTranslation(new Vector3f(x, 100 + y, z)); 164 sphere.addControl(new RigidBodyControl(new SphereCollisionShape(r), 2)); 165 rootNode.attachChild(sphere); 166 bulletAppState.getPhysicsSpace().add(sphere); 233 Sphere s = new Sphere(6, 6, 1) [all...] |
/external/eigen/demos/opengl/ |
gpuhelper.cpp | 122 static IcoSphere sphere; local 123 sphere.draw(level);
|
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/ |
BIHTree.java | 435 BoundingSphere sphere = (BoundingSphere) bv; local 436 bbox = new BoundingBox(bv.getCenter().clone(), sphere.getRadius(), 437 sphere.getRadius(), 438 sphere.getRadius());
|
/external/replicaisland/src/com/replica/replicaisland/ |
AnimationPlayerActivity.java | 127 View sphere = findViewById(R.id.animation_sphere); local 140 sphere.startAnimation(sphereAnim);
|