Piorun Posted March 30, 2015 Share Posted March 30, 2015 Hi, Is this possible to rotate in Z-axis DX-image? Using shaders or something like that? Link to comment
xXMADEXx Posted March 30, 2015 Share Posted March 30, 2015 As long as the image is drawn with [wik]dxDrawImage[/wiki], you could just rotation argument. Link to comment
Piorun Posted March 30, 2015 Author Share Posted March 30, 2015 Ye, ok but i can rotate only left or right, but i want forward / backward. You know what i mean ? Link to comment
Gallardo9944 Posted March 30, 2015 Share 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. Link to comment
#RooTs Posted March 30, 2015 Share Posted March 30, 2015 Gallardo9944 said: 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 ) Link to comment
xeon17 Posted March 30, 2015 Share 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 Link to comment
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