GL11.PushMatrix();
Gl11.MultMatrix(matrix);
//draw the model
GL11.Popmatrix();
//alot of calls code
....
....
..
//an effect object is now called
GL11.PushMatrix();
Gl11.MultMatrix(matrix); //Same matrix as previous call
Gl11.glTranslate(x,y,z); //translate to a position on the model and do some effect
//draw an effect
GL11.Popmatrix();
Transformation
This should be simple, but I cant seem to make it work
I am drawing a model and then passing its matrix on. Later I might have to draw and effect. So I am passing the matrix of the model to the effect and then translating the effect within the models matrix.
Its something like this
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement