aspose file tools*
The moose likes Game Development and the fly likes Texturing a matrix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Texturing a matrix" Watch "Texturing a matrix" New topic
Author

Texturing a matrix

Adam Bell
Greenhorn

Joined: Apr 10, 2009
Posts: 3
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
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
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!

SCJA
~Currently preparing for SCJP6
 
Don't get me started about those stupid light bulbs.
 
subject: Texturing a matrix