Problemas with glTranslated

Started by
3 comments, last by pagoru 9 years, 7 months ago

Hello,

I'm working in a isometric project and I have issues with glTranslatef/glTranslated.
In first instance I was thought the problem was with objects, but doesnt have any issue when move in 2D scenario.
So I understand what's the problem... glTranslatef/glTranslated.

I know the problem with decimal system in doubles and floats and I fix it with BigDecimal... and now, I don't understand anything.

The real problem is when I move far camera and objects in X and Y with my isometric system, the camera loses pixels and objects move incorrectly in the screen. wacko.png

¿Anyone knows this problem or how fix?

Really thanks tongue.png

Advertisement

Does your problem look similar to this: https://dl.dropboxusercontent.com/u/56764397/screendump0.png ?

When you talk about the camera losing pixels and objects moving into the screen this could be a clipping problem.

Noupe, the problem is this...

http://prntscr.com/4ngwj2

When coordinates reach a certain point, the camera (or objects) begin to move erratically.

sorry but this image shows nothing

sorry but this image shows nothing

Compare this two images:

http://prntscr.com/4ni27a

&

http://prntscr.com/4ngwj2

the numbers are blurry because are moving 1 pixel!

This topic is closed to new replies.

Advertisement