Jump to content
  • Global

    Global

    Chatroom Rules

    • NO SE DA SOPORTE EN CHATBOX
    • NO SPAM
    • NO FLOOD

Recommended Posts

  • Usuario
Posted

Buenas. Tengo una duda y por el momento nadie me ha ayudado o aclarado la misma, quisiera saber como hacer una dxImage en 2D (o 3D) para hacer un radar como el del vídeo adjunto. Siempre he intentado hacer uno de estos y no he podido hacerlo, he usado multiples funciones y OffSet's del dxDrawImage, y nada me ha dado lo que quiero hacer.. ¿me podrían ayudar? :unsure:

 

 

  • Ex-Staff
Posted
sx,sy = guiGetScreenSize()

myShader = dxCreateShader('img.fx')
textura = dxCreateTexture('imagen.png')

if myShader and textura then
	dxSetShaderValue(myShader,'gTexture',textura)
end

rotX,rotY,rotZ = 180,0,0

addEventHandler('onClientRender',root,function()
	dxSetShaderTransform(myShader,rotX,rotY,rotZ)
	dxDrawImage(sx/2-300/2,sy/2-200/2,300,200,myShader,0,0,0,tocolor(255,255,255,255))
end)

Descarga este Shader

Imagen puede ser una imagen cualquiera.

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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