... possible? How?
I'm experimenting with 2D physics just now and I can draw 2d stuff with driver->draw2dImage(...), but I have no idea how to rotate the sprites. Any help?
edit: can you even use materials in 2D?
Draw a rotated 2D image?
Re: Draw a rotated 2D image?
Ok, I am using pseudo 3D graphics now, displaying things on a flat plane between -1,-1,0 and 1,1,0. This way I should have the full engine's functionality, but it's most likely a huge waste of gpu power simulating a 3D scene when 2 dimensions would do. Someone please tell me it's not that bad
Re: Draw a rotated 2D image?
There are snippets doing both kinds of rotated drawing here on the forum.
Using 3d objects is not bad, but using discard or alpha test to drop most of the pixels is wasteful.
Using 3d objects is not bad, but using discard or alpha test to drop most of the pixels is wasteful.
Re: Draw a rotated 2D image?
Thanks for the tip. I think the rotating part is more or less solved.
But I'm having a big problem with blurry textures now. If you scroll the screen in any direction, textures go from sharp to blurry to sharp (...). I have this testing picture of 16x16 pixels with a thin (1 pixel) white line on it. When the picture is sharp, the line is bright and clear, otherwise it's grey. It really shows. I wouldn't mind if it was one way or the other all the time, but this alternating looks terrible. Can I do anything about it?
edit: I think it's only related to scrolling on the vertical axis. And the "period" is probably just 1 or 2 pixels.
But I'm having a big problem with blurry textures now. If you scroll the screen in any direction, textures go from sharp to blurry to sharp (...). I have this testing picture of 16x16 pixels with a thin (1 pixel) white line on it. When the picture is sharp, the line is bright and clear, otherwise it's grey. It really shows. I wouldn't mind if it was one way or the other all the time, but this alternating looks terrible. Can I do anything about it?
edit: I think it's only related to scrolling on the vertical axis. And the "period" is probably just 1 or 2 pixels.