Hey everyone,
I'm working on a single surface 2d thing, and I can't seem to get my head around this part.
I'm setting up my quads so that each blitz unit is equal to a pixel. That is, a 32x32 image would be converted to a 32x32 quad..
Problem is I cant seem to work out an accurate way of moving/zooming the camera so that 640x480 blitz units matches perfectly to 640x480 pixels. This seems like it wouldnt be that hard but I suck at "maths" :)
I've looked in the code sections here and on blitzcoder BUT (I'm probably just being thick) it seems the related code snippets I've looked at seem to do the opposite of what I want.. I need a proper way of figuring out how far on the z axis to move the camera back(or zoom level would work too) so I get the 1:1 thing.
If anyone could help it would be most appreciated. Spanks ;)
I'm working on a single surface 2d thing, and I can't seem to get my head around this part.
I'm setting up my quads so that each blitz unit is equal to a pixel. That is, a 32x32 image would be converted to a 32x32 quad..
Problem is I cant seem to work out an accurate way of moving/zooming the camera so that 640x480 blitz units matches perfectly to 640x480 pixels. This seems like it wouldnt be that hard but I suck at "maths" :)
I've looked in the code sections here and on blitzcoder BUT (I'm probably just being thick) it seems the related code snippets I've looked at seem to do the opposite of what I want.. I need a proper way of figuring out how far on the z axis to move the camera back(or zoom level would work too) so I get the 1:1 thing.
If anyone could help it would be most appreciated. Spanks ;)