createFlyStraightAnimator() Image bad quality.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Danny Gilbert
Posts: 54
Joined: Thu Oct 25, 2007 1:38 pm
Location: Montreal, Canada

createFlyStraightAnimator() Image bad quality.

Post by Danny Gilbert »

When I use the method named createFlyStraightAnimator() on my
Quad, the texture (image) is not "beautiful" when the duration of the movement is less than 4 seconds from position A to position B. My FPS (frame rate) is about 160 and I think it is good. 5 seconds and more give me fantastic image.

I don't know anything about the performance of this kind of animator.

Can someone tell me if it is a good thing to use this animator or it is better
for me to move by myself (with my own code) the quad ?

(I think about vectorial algebra and refreshing the new position each 1/60 of second.)

Thanks.
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

I'm very confused as to how the image quality would be related at all to the animator. All the animator does is move the scene node through the virtual world space.

Can you explain more what you mean?
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

From the sounds of it, I'm assuming he's saying that the object isn't moving as smoothly as it should be.
Danny Gilbert
Posts: 54
Joined: Thu Oct 25, 2007 1:38 pm
Location: Montreal, Canada

more info ...

Post by Danny Gilbert »

My node is a double quad ... representing a CARD. On each quad, I have a texture of a card. I can move the node with the animator or by myself but
the "fluidity" of the texture is not beautiful. I tried on 3 different computers (different video cards) and it is always the same. I will try with a texture with a lower quality.

Actually, my texture is 189x260 pixels ... maybe it is a problem because
189 is not a multiple of 8 (32 or 64) ... I continu to check.
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Ah ok, that makes sense. Yes, you will want your texture to be a power of two in dimension, otherwise irrlicht resizes it and it comes out rather ugly.
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Also, enabling trilinear or even anisotropic filtering on the texture will make it look much better at an angle.
Post Reply