Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Tuan

fast zoon in

This topic is 6616 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 movie is 320x240 size. Could anyone show me how to stretch to 640x480 fastest and nice looking(acceptable)? Thanks very much.

Share this post


Link to post
Share on other sites
Advertisement
I assume you''re using DirectDraw. DirectDraw doesn''t support any other way than (point right?) filtering for stretching surfaces, so if you stretch a surface up, you''ll get a pretty bad image. If you make your surface as big as you might need and scale it down, it''ll look better.

Direct3D scales better since you can use bilinear filtering, but that''s a little more work.

============================
Daniel Netz, Sentinel Design
"I'm not stupid, I'm from Sweden" - Unknown

Share this post


Link to post
Share on other sites
Yes, I''m using DirectDraw. Because the data transfer limit of CDROM, I cannot create big size movie. And one more thing, my platform is low machine, so I cannot use D3D!
Thank you.

Share this post


Link to post
Share on other sites
Actually I did this and it''s not too bad. It looks pretty good. What you have to do is not to use flip() to update the screen, but use blt instead. make the SrcRect 320x240 and DestRect 640x480. Try not to size oddly. In other words only try to size times 2. It is the fastest and prettiest way to do it. BTW: did you write your movie source code?

Share this post


Link to post
Share on other sites
That''s right...under DirectDraw, blitting functions will often use hardware blitting which will provide filtering in many cases as long as your surfaces are non-palettized (16 bpp+)...though...no alpha blending for sprites, right? =)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!