Textrued poly question

BlitzMax Forums/BlitzMax Programming/Textrued poly question

VinceA(Posted 2007) [#1]
Is it cheaper to render textured poly's oppose to draw an image, or is it the same underlying operation? Will transformations like rotation have an influence?


Fetze(Posted 2007) [#2]
Should be pretty much the same. DrawImage just draws a textured quad.


VinceA(Posted 2007) [#3]
Thanks for clearing that up


ImaginaryHuman(Posted 2007) [#4]
I think the way matrix transformations are involved in the calculations of what becomes every single pixel, on a per-pixel basis, it doesn't matter what angle you're drawing at or how much interpolation there is ie what shape the polygon is. As Fetze said an image is just a textured polygon in the shape of a rectangle. It should not speed up or slow down by adding rotation or by moving the corners to cause the image to stretch or warp. The only difference would be that if more pixels need to be drawn as a result of moving the points on the polygon then there will be more `fill rate` consumed.


Gabriel(Posted 2007) [#5]
Rotations are like any state change, they have a cost. The cost is per-state though, so the cost to render 100 images at angle 0 would be the same as the cost to render 100 images at angle 57. Rendering 100 images at all kinds of different angles, well that would be considerably more expensive.

But yeah, BlitzMax - unlike Blitz2D and Blitz3D - does not deal in 2D images. All 2D drawing is 3D accelerated quad drawing, so there's no difference in that regard.