1
Support / Changing a resolution
« on: March 10, 2011, 03:14:21 pm »
how can I do to change the screen resolution with the program running?
using displayGL
using displayGL
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
for (float i = 0; i < 25; i++) {
ball.rotateZ((float) ((2.0f / 25) * Math.PI));
cube = Primitives.getCube(1);
cube.translate((float) (10 * Math.sin(i * (2f / 25f) * Math.PI)),
(float) (10 * Math.cos(i * (2f / 25f) * Math.PI)), 0);
cube.setRotationMatrix(ball.getRotationMatrix().cloneMatrix());
ball.addChild(cube);
world.addObject(cube);
}
for (int i = 0 ; i<25;i++){
ball.rotateZ((float) ((2.0f / 25) * Math.PI));
cub = Primitives.getCube(1);
ball.addChild(cub);
}
{
if (xpos != -1) {
SimpleVector dir = Interact2D.reproject2D3DWS(cam,
fb, (int) xpos, (int) ypos);
dir.matMul(world.getCamera().getBack().invert3x3());
dir.add(world.getCamera().getPosition());
Object[] res = world.calcMinDistanceAndObject3D(
cam.getPosition(), dir, 10000);
if (res[1] != null)
player_Corpo.setAdditionalColor(RGBColor.WHITE);
else
player_Corpo.setAdditionalColor(RGBColor.BLUE);
}
}
ok, it looks strange but how does it look in Ogre viewer ? I suspect it's fault of exporter you use..You are right...
try downloading ogremax and open your files with the viewer.