Jump to content

small question


WASSIm.

Recommended Posts

i make this for test but have problem to rotation(3D)

--Rectangle3D 
local dot = dxCreateTexture(1,1) 
local white = tocolor(255,255,255,255) 
function dxDrawRectangle3D(x,y,z,w,h,c,r,...) 
        local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z 
    return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, dot, h, c or white, ...) 
end 
---Image3D 
local white = tocolor(255,255,255,255) 
function dxDrawImage3D(x,y,z,w,h,m,c,r,...) 
        local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z 
    return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c or white, ...) 
end 
  
--test 
local face = dxCreateTexture("test.png") 
addEventHandler("onClientRender", root, 
    function() 
        local xc, yc, zc, lxc, lyc, lzc = getCameraMatrix( ) 
        dxDrawImage3D(2410,-1733, 14, 20, 20, face, tocolor(255,255,255,255)) 
    end 
) 

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...