Jump to content

what the problem?


DevStein

Recommended Posts

 _jIM3iAM7pk.jpg

 

left-side image - dxDrawImage
right-side - dxDrawMaterialLine3D

what the reason for rotation image???

 

code: 


renderTarget = dxCreateRenderTarget(893,200,true)

function draw()
	dxSetRenderTarget(renderTarget)
		dxDrawImage(0,0, 893,200, 'ru.png')
		
	dxSetRenderTarget()

	dxDrawImage(0,124, 600,200, renderTarget)

	dxDrawMaterialLine3D(-2.2850413322449,36.158359527588,3.1171875,-3.982595205307,33.452819824219,3.1096496582031, renderTarget, 1, tocolor(255,255,255,255), -0.43020412325859,32.629917144775,3.1096496582031)
end
addEventHandler('onClientPreRender',root,draw)

 

Edited by DevStein
Link to comment

QPOSD8Qq6Z8.jpg

renderTarget = dxCreateRenderTarget(893,200,true)
function draw()
	dxSetRenderTarget(renderTarget)
		dxDrawImage(0,0, 893,200, 'ru.png', 90)
		
	dxSetRenderTarget()
	dxDrawImage(0,124, 600,200, renderTarget)
	dxDrawMaterialLine3D(-2.2850413322449,36.158359527588,3.1171875,-3.982595205307,33.452819824219,3.1096496582031, renderTarget, 1, tocolor(255,255,255,255), -0.43020412325859,32.629917144775,3.1096496582031)
end
addEventHandler('onClientPreRender',root,draw)

 

Link to comment

Same problem today with me :D You have to draw a vertical line not horizontal. This line "will be" in the center of your image and this will be the flat of your image. And as Dealman said you can also rotate it on this line.
(The difference between the start and end points will be the height of your image.) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...