Package nu3a.material.texture

Examples of nu3a.material.texture.N3TexCoord2D


      N3Vector2D n2 = null;
      N3Vector2D n3 = null;
      N3ColorRGBA c1 = null;
      N3ColorRGBA c2 = null;
      N3ColorRGBA c3 = null;
      N3TexCoord2D uv1 = null;
      N3TexCoord2D uv2 = null;
      N3TexCoord2D uv3 = null;
      vertexData.clear();
      normalData.clear();
      colorData.clear();
      texCoordData.clear();
      for (int i = 0; i < geometry.polygonCount(); i++) {
View Full Code Here


      p.addVertex(vertexes[0], c);
      p.addVertex(vertexes[1], c);
      p.addVertex(vertexes[2], c);
      p.addVertex(vertexes[3], c);
    } else {
      p.addVertex(vertexes[0], c, new N3TexCoord2D(0, 0));
      p.addVertex(vertexes[1], c, new N3TexCoord2D(1, 0));
      p.addVertex(vertexes[2], c, new N3TexCoord2D(1, 1));
      p.addVertex(vertexes[3], c, new N3TexCoord2D(0, 1));
    }

    p.generateNormal();

    return mesh;
View Full Code Here

    float wd2 = width / 2;
    float hd2 = height / 2;
    float ld2 = height / 2;
    N3GeometryData mesh = new N3GeometryData();

    N3TexCoord2D uvs[] = new N3TexCoord2D[4];
    uvs[0] = new N3TexCoord2D(0, 0);
    uvs[1] = new N3TexCoord2D(1, 0);
    uvs[2] = new N3TexCoord2D(1, 1);
    uvs[3] = new N3TexCoord2D(0, 1);

    N3Point3D vertexes[] = new N3Point3D[8];
    vertexes[0] = new N3Point3D(-wd2, -hd2, ld2);
    vertexes[1] = new N3Point3D(wd2, -hd2, ld2);
    vertexes[2] = new N3Point3D(wd2, hd2, ld2);
View Full Code Here

    int index;
    N3Point3D v;
    N3Vector3D n;
    N3ColorRGBA c;
    N3TexCoord2D uv;

    N3GeometryData result = new N3GeometryData();

    for (int i = 0; i < polys.getLength(); i++) {
      p = result.createPolygon();
View Full Code Here

    image = Toolkit.getDefaultToolkit().createImage(this);
    colormodel = new DirectColorModel(32, 0x000000FF, 0x0000FF00,
        0x00FF0000, 0xFF000000);
    consumer = null;
    lastColor = new N3ColorRGBA(1, 1, 1);
    lastUV = new N3TexCoord2D(0, 0);
    lastVertex = null;
    status = N3_SWR_STATUS_INIT;
    needUpdate = true;
    depthtest = false;
    textures = new Vector(0, 1);
View Full Code Here

TOP

Related Classes of nu3a.material.texture.N3TexCoord2D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.