/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));
|
/external/jmonkeyengine/engine/src/test/jme3test/material/ |
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));
|
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));
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
cull.rs | 41 float4 sphere; 42 sphere.x = (maxX + minX) * 0.5f; 43 sphere.y = (maxY + minY) * 0.5f; 44 sphere.z = (maxZ + minZ) * 0.5f; 46 radius.x = (maxX - sphere.x); 47 radius.y = (maxY - sphere.y); 48 radius.z = (maxZ - sphere.z); 50 sphere.w = length(radius); 51 obj->boundingSphere = sphere; 53 //rsDebug("Sphere", sphere) [all...] |
/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/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...] |
TestKinematicAddToPhysicsSpaceIssue.java | 17 import com.jme3.scene.shape.Sphere; 37 // Add a physics sphere to the world 49 // Add a physics sphere to the world using the collision shape from sphere one 64 Node node2 = PhysicsTestHelper.createPhysicsTestNode(assetManager, new MeshCollisionShape(new Sphere(16, 16, 1.2f)), 0);
|
/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/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);
|
/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/chromium_org/third_party/skia/include/utils/ |
SkUnitMappers.h | 36 /** This returns cos(x), to simulate lighting a sphere, where 0 maps to the 37 center of the sphere, and 1 maps to the edge.
|
/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/skia/include/utils/ |
SkUnitMappers.h | 36 /** This returns cos(x), to simulate lighting a sphere, where 0 maps to the 37 center of the sphere, and 1 maps to the edge.
|
/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...] |
/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...] |
/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);
|
/packages/apps/Dialer/res/drawable/ |
seek_bar_thumb.xml | 19 <!-- First item is the outer transparent sphere. --> 33 <!-- Second item is the inner almost-opaque sphere. 35 Looks like using left, right, top and bottom on the item is best to fix inner sphere. -->
|
/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());
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
Sphere.java | 32 // $Id: Sphere.java 4163 2009-03-25 01:14:55Z matt.yellen $
50 * <code>Sphere</code> represents a 3D object with all points equidistance
56 public class Sphere extends Mesh {
87 public Sphere() {
91 * Constructs a sphere. All geometry data buffers are updated automatically.
93 * sphere.
100 * The radius of the sphere.
102 public Sphere(int zSamples, int radialSamples, float radius) {
107 * Constructs a sphere. Additional arg to evenly space latitudinal slices
114 * The radius of the sphere. [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
Sphere.java | 26 * Class for generating a sphere model for given input params 30 * Indices store vertex indices for the whole sphere. 31 * Formula for generating sphere is originally coming from source code of 36 public class Sphere { 49 * @param x,y,z the origin of the sphere 50 * @param r the radius of the sphere 52 public Sphere(int nSlices, float x, float y, float z, float r, int numIndexBuffers) {
|
/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/core-data/Common/ShaderLib/ |
Optics.glsllib | 11 // texel from a sphere map
|