# Texturing a matrix

Adam Bell

Greenhorn

Posts: 3

posted 7 years ago

Im new to java programing and was wondering what the method was for texturing a matrix I would like to use textures that i have created but im not sure how i do this. do i abstract from a package or something. My code is like this

//CODE

public class matrix estends java3d() { //CREATE CLASS

public void create3dworldobject() { //CREATE 3D WORLD

matrix matrix = new 3dmeshobject();

Matrix.set(3d); //MAKE MATRIX 3D

matrix.setperamiters(WIDTH_HEIGHT_DEPTH); //PREPARE PERAMITERS

WIDTH = X; //SET VARIBLES TO MAKE EASY

HEIGHT = Y;

DEPTH = Z;

x = 200; SET DEFAULT SIZE OF MATRIX

y = 10;

z = 100;

matrix.setdefaultsize(int, x,y,z);

System.setsizeformat(centermeteres);

final int centemers.equals final peramiters(mesurments);

system.setrendertopoint(119.true);

atpoint(x =10 z = 25);

atpoints.specified(y = - 40);

system.setmatrixlocationOnscreen(y = 4, x = 100, z = 2);

//abstract image of graveyard and place on matrix

I would like to place the image so that the dip is near the center. how do i get the image to show on matrix please. hope this code helps someone

//CODE

public class matrix estends java3d() { //CREATE CLASS

public void create3dworldobject() { //CREATE 3D WORLD

matrix matrix = new 3dmeshobject();

Matrix.set(3d); //MAKE MATRIX 3D

matrix.setperamiters(WIDTH_HEIGHT_DEPTH); //PREPARE PERAMITERS

WIDTH = X; //SET VARIBLES TO MAKE EASY

HEIGHT = Y;

DEPTH = Z;

x = 200; SET DEFAULT SIZE OF MATRIX

y = 10;

z = 100;

matrix.setdefaultsize(int, x,y,z);

System.setsizeformat(centermeteres);

final int centemers.equals final peramiters(mesurments);

system.setrendertopoint(119.true);

atpoint(x =10 z = 25);

atpoints.specified(y = - 40);

system.setmatrixlocationOnscreen(y = 4, x = 100, z = 2);

//abstract image of graveyard and place on matrix

I would like to place the image so that the dip is near the center. how do i get the image to show on matrix please. hope this code helps someone

Brian Legg

Ranch Hand

Posts: 488

posted 6 years ago

There is no quick answer for this question. Here is a link to a chapter in a book that could help you out. I would recommend buying the book as it very good and you are basically getting a chapter for free. Also, this chapter is the draft version, the book is even more complete.

Texturing a Matrix

Hope that helps you, GL!

Texturing a Matrix

Hope that helps you, GL!

SCJA

~Currently preparing for SCJP6