HomeSort by relevance Sort by last modified time
    Searched refs:Tangent (Results 1 - 9 of 9) sorted by null

  /external/jmonkeyengine/engine/src/core/com/jme3/scene/
BatchNode.java 153 if (mesh.getBuffer(VertexBuffer.Type.Tangent) != null) {
155 VertexBuffer tvb = mesh.getBuffer(VertexBuffer.Type.Tangent);
487 } else if (VertexBuffer.Type.Normal.ordinal() == bufType || VertexBuffer.Type.Tangent.ordinal() == bufType) {
491 if (VertexBuffer.Type.Tangent.ordinal() == bufType) {
605 //Skipping 4th element of tangent buffer (handedness)
Mesh.java 263 * {@link Type#Position}, {@link Type#Normal}, and {@link Type#Tangent} buffers
285 VertexBuffer oldTang = getBuffer(Type.Tangent);
287 clone.clearBuffer(Type.Tangent);
336 VertexBuffer tangents = getBuffer(Type.Tangent);
    [all...]
VertexBuffer.java 89 * Tangent vector, normalized (4 floats) (x,y,z,w)
93 Tangent,
190 * Should have the same format and size as {@link Type#Tangent}.
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/util/
TangentBinormalGenerator.java 86 /** Keeps track of tangent, binormal, and normal for one triangle.
89 public final Vector3f tangent; field in class:TangentBinormalGenerator.TriangleData
93 public TriangleData(Vector3f tangent, Vector3f binormal, Vector3f normal) {
94 this.tangent = tangent;
161 //if the mesh has a bind pose, we need to generate the bind pose for the tangent buffer
164 VertexBuffer tangents = mesh.getBuffer(Type.Tangent);
315 Vector3f tangent = new Vector3f(); local
337 tangent.set(edge1);
338 tangent.normalizeLocal()
438 Vector3f tangent = new Vector3f(); local
673 Vector3f tangent = new Vector3f(); local
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/animation/
SkeletonControl.java 177 //reseting bind tangents if there is a bind tangent buffer
180 VertexBuffer tangents = mesh.getBuffer(Type.Tangent);
280 VertexBuffer tb = mesh.getBuffer(Type.Tangent);
393 * Also the iteration has additional indexes since tangent has 4 components instead of 3 for pos and norm
397 * @param tb the tangent vertexBuffer
470 //skipping the 4th component of the tangent since it doesn't have to be transformed
509 //once again skipping the 4th component of the tangent
  /external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/
MeshLoader.java 413 vb = new VertexBuffer(Type.Tangent);
459 VertexBuffer tangentBuf = mesh.getBuffer(Type.Tangent);
624 } else if (qName.equals("tangent")) {
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
TerrainPatch.java 320 getMesh().getBuffer(Type.Tangent).updateData(newTangentBuffer);
324 private void setInBuffer(Mesh mesh, int index, Vector3f normal, Vector3f tangent, Vector3f binormal) {
326 VertexBuffer TB = mesh.getBuffer(Type.Tangent);
329 BufferUtils.setInBuffer(tangent, (FloatBuffer)TB.getData(), index);
368 Vector3f tangent = new Vector3f(); local
385 averageNormalsTangents(null, rootPoint, leftPoint, bottomPoint, rightPoint, normal, tangent, binormal);
386 setInBuffer(this.getMesh(), s, normal, tangent, binormal); local
387 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); local
391 averageNormalsTangents(topPoint, rootPoint, leftPoint, bottomPoint, rightPoint,normal, tangent, binormal);
392 setInBuffer(this.getMesh(), s, normal, tangent, binormal); local
393 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); local
406 setInBuffer(right.getMesh(), (s+1)*(s), normal, tangent, binormal); local
411 setInBuffer(right.getMesh(), (s+1)*s, normal, tangent, binormal); local
412 setInBuffer(bottom.getMesh(), s, normal, tangent, binormal); local
423 setInBuffer(right.getMesh(), (s+1)*(i), normal, tangent, binormal); local
439 setInBuffer(this.getMesh(), 0, normal, tangent, binormal); local
440 setInBuffer(left.getMesh(), s, normal, tangent, binormal); local
445 setInBuffer(this.getMesh(), 0, normal, tangent, binormal); local
446 setInBuffer(left.getMesh(), s, normal, tangent, binormal); local
447 setInBuffer(top.getMesh(), (s+1)*s, normal, tangent, binormal); local
458 setInBuffer(this.getMesh(), (s+1)*(s), normal, tangent, binormal); local
464 setInBuffer(this.getMesh(), (s+1)*(s), normal, tangent, binormal); local
466 setInBuffer(bottom.getMesh(), 0, normal, tangent, binormal); local
477 setInBuffer(this.getMesh(), (s+1)*(i), normal, tangent, binormal); local
500 setInBuffer(this.getMesh(), i, normal, tangent, binormal); local
501 setInBuffer(top.getMesh(), (s+1)*(s)+i, normal, tangent, binormal); local
524 setInBuffer(this.getMesh(), (s+1)*(s)+i, normal, tangent, binormal); local
525 setInBuffer(bottom.getMesh(), i, normal, tangent, binormal); local
    [all...]
LODGeomap.java 96 m.setBuffer(Type.Tangent, 3, tanb);
655 Vector3f tangent = new Vector3f(); local
669 tangent.set(normal.cross(new Vector3f(0,0,1)));
672 BufferUtils.setInBuffer(tangent.normalizeLocal(), tangentStore, (r * getWidth() + c)); // save the tangent
713 calculateTangent(new Vector3f[]{v1.mult(scale), v2.mult(scale), v3.mult(scale)}, new Vector2f[]{t1, t2, t3}, tangent, binormal);
714 BufferUtils.setInBuffer(tangent, tangentStore, (r * getWidth() + c)); // save the tangent
726 * @param tangent that will store the result
727 * @return the tangent store
    [all...]
  /external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
GeometryBatchFactory.java 212 }else if(Type.Tangent.ordinal() == bufType){

Completed in 795 milliseconds