• Advertisement
Sign in to follow this  

smooth scrolling

This topic is 4179 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My tiles map in directx/c++ doesn't look smooth when scrolling as it seems to have a slight motion blur. It scrolls at a rate of 4 pixels per .05 sec or 80 pixels per sec. I had it scrolling 8 pixels per .1 sec and it didn't look as smooth as the later but aas I said there is still a slight motion blur.

Share this post


Link to post
Share on other sites
Advertisement
When you say motion blur, you mean actual blurring as opposed to some sort of juttering right?

Share this post


Link to post
Share on other sites
it doesn't jut or stagger when moving, it is smooth. The motion blur is just slight but I don't bleieve it should be there at all.

Share this post


Link to post
Share on other sites
I've found in the past that something that looks really smooth on a CRT monitor seems to look a bit blurry when in motion on a flat screen. Don't know if that is relevant.

Share this post


Link to post
Share on other sites
Maybe you mean like when the tile/texture is drawn over an empty area (where no image is drawn) it creates a "blur" trace after the image.

I solved this by drawing 1 extra line of textures "off screen".

Share this post


Link to post
Share on other sites
To be as clear as possible, it looks like a slight blur occurs on my scrolling screen as it scrolls. Nothing to do with flat screens or empty drawn areas. If this is normal then fine but if it can be improved on I don't know how to do it.

Share this post


Link to post
Share on other sites
Bit hard to diagnose to be honest. As I say, I've noticed that stuff sometimes looks a bit blurry on certain monitors although you seem sure that is not the case here so all I can really suggest is you post some code.

Share this post


Link to post
Share on other sites
Just a suggestion, but if it would help us see exactly what is going on, then is there anyway you can post a screenshot of the burryness? Maybe that way we can see exactly what it looks like.


Also, code would probally help.


Chad

Share this post


Link to post
Share on other sites
When a screen scrolls at 80 pixels per sec, should the screen be picture perfect, or is there just a slight motion blur?
Let me find another 2d scroller and check it.

Share this post


Link to post
Share on other sites
Take a screenshot right when you are scrolling in the game and the screen is blurry. Then, paste the screenshot to an image editor. If it appears blurry in an image editor, then it's probably a problem with your code. If it appears clear and sharp, then it's probably your monitor.

Just how bad is it?

Share this post


Link to post
Share on other sites
Well having taking a screen shot while scrolling the image looks clear and normal. So I might mean themonitor or that smooth scrolling isn't being achived with 80 pixels per second at 4 pixel increments

Share this post


Link to post
Share on other sites
Did you add in any sprites? If you did, does the sprites blur too? If so then it might be a hardware issue and you should try to run your executable on another machine.

Otherwise if the sprites do not blur, there is probably something wrong with your scrolling algorithm.

Share this post


Link to post
Share on other sites
People have sort of suggested this before, but if you're using, say, and LCD screen, you'll have a problem known as 'ghosting', where the previous couple milliseconds will still be slightly visible. If you're not using a CRT, this might be your problem, and if so, there's nothing you can do about it. Do other programs do this as well?

Share this post


Link to post
Share on other sites
I have a CRT and sprites and I think this may be a normal thing. What about the software processing instead of hardware in dx setup?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement