If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-10-05
I mean only matrix dont work
for example in following code transformations works only for box object, not for wings.
renderer.beginGL();
background(0);
PMatrix3D orientation = new PMatrix3D();
orientation.translate(width/2,height/2,0);
orientation.rotateX(PI/2);
applyMatrix(orientation);
renderer.model(wings); // dont work for this
box(100); // work for this, translated and rotated
renderer.endGL();
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, you are right, thanks for the feedback. The applyMatrix() method is not implemented in the GLGraphics renderer. Could you open a bug report in the tracker about this?
Now my priority is to wok on Processing 2.0, I will come back to this issue in a later time for a maintenance release of GLGraphics.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-10-05
thanx for the tip. i fixed it in sources. now it works very well.
I tried to apply the Matrix to a model in the GLGraphicsOffscreen in new version of GLGraphics, but it doesn't work.
It should probably work with a low-level GL call like the other guy posted in his code?
Cheers, and thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks like applyMatrix and setMatix doesnt affect GLModels.
translate,rotate, scale stuff works. but if i want apply transformations from matrix. this dont work.
is this bug? or my mistake?
enclose the calls that you want to affect the GLModel object beween beginGL()/endGL():
GLGraphics renderer = (GLGraphics)g;
renderer.beginGL();
translate(…);
model.render();
renderer.endGL();
I mean only matrix dont work
for example in following code transformations works only for box object, not for wings.
Ok, you are right, thanks for the feedback. The applyMatrix() method is not implemented in the GLGraphics renderer. Could you open a bug report in the tracker about this?
Now my priority is to wok on Processing 2.0, I will come back to this issue in a later time for a maintenance release of GLGraphics.
thanx for the tip. i fixed it in sources. now it works very well.
code below, just for info
Excellent! I will include your code into the trunk. Thanks so much!
Hi Andres,
I tried to apply the Matrix to a model in the GLGraphicsOffscreen in new version of GLGraphics, but it doesn't work.
It should probably work with a low-level GL call like the other guy posted in his code?
Cheers, and thanks.