scaling images realtime???

Blitz3D Forums/Blitz3D Beginners Area/scaling images realtime???

Nate the Great(Posted 2008) [#1]
I have seen other posts that mention that blitz3d has a way of scaling images (not using scaleimage, resizeimage, or any dlls) in real time??? Is this true? If so I have been missing out on a lot...


Ross C(Posted 2008) [#2]
There was a lib that did this, using 2d commands, but it replaced the 2d command set. The only other way is to use a 2d in 3d lib, like nSprite 2 or sprite candy.


Ross C(Posted 2008) [#3]
You could also try the fast image lib, detailed in the blitz3d user lib part of the forum.


Mortiis(Posted 2008) [#4]
You can always use sprites in 3D like sprite candy does.


Nate the Great(Posted 2008) [#5]
okay thanks for clearing that up. :)


Kryzon(Posted 2008) [#6]
Well not really in real-time, but there is always a fast scaling routine. Just that nobody would use it anymore since you can get cycle speed using the 3D Hardware.


Ross C(Posted 2008) [#7]
Sorry, i agree. I though that said rotate for some reason...

Anyway, copyrect can produce a decent sclaing, and pretty fast too!


Nate the Great(Posted 2008) [#8]
how do you scale with copyrect I could never figure that out?


big10p(Posted 2008) [#9]
You can scale with copyrect? o_O


QuickSilva(Posted 2008) [#10]
I`d be interested in knowing how this is done too.

Jason.


Nate the Great(Posted 2008) [#11]
okay Ross C Out with the secret! there seem to be a lot of people besides me who didn't know you could do this. :) I also couldn't find it in the code archives :(


Nate the Great(Posted 2008) [#12]
found the code for copyrect scaling



:)


QuickSilva(Posted 2008) [#13]
Cool, thanks. That`s a great tip to know for the future.

Jason.


Ross C(Posted 2008) [#14]
That's the one! It works by copying a line of pixels, into two lines of pixels. Then it copys in the other direction, downwards. I'm sure that's how it works :o)