Piorun Posted March 30, 2015 Posted March 30, 2015 Hi, Is this possible to rotate in Z-axis DX-image? Using shaders or something like that?
xXMADEXx Posted March 30, 2015 Posted March 30, 2015 As long as the image is drawn with [wik]dxDrawImage[/wiki], you could just rotation argument.
Piorun Posted March 30, 2015 Author Posted March 30, 2015 Ye, ok but i can rotate only left or right, but i want forward / backward. You know what i mean ?
Gallardo9944 Posted March 30, 2015 Posted March 30, 2015 Take simple texture replacement shader, put an image into it as a texture (dxSetShaderValue), then do dxSetShaderTransform. Then dxDrawImage the shader.
#RooTs Posted March 30, 2015 Posted March 30, 2015 Take simple texture replacement shader, put an image into it as a texture (dxSetShaderValue), then do dxSetShaderTransform. Then dxDrawImage the shader. or local seconds = getTickCount() / 1000 local angle = math.sin(seconds) * 80 dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'arrow.png', angle, 0, -120 )
xeon17 Posted March 30, 2015 Posted March 30, 2015 @RooTs learnt math functions, finally he knows how to do something useful. For a guy who don't know OOP you impressed me now
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now