Log In  


You can now apply textures on the UV editing screen!

The sample code also includes a way to draw that data!

-- PELOGEN library codes --
-- .
-- .
-- .
-- PELOGEN library codes --

-- load model(& color & uv)
local o=objload({16,17,18,19,20},{ 23 },{32,33,34,35,36})
_set_fps(60)
while 1 do
cls()

--set scales
o.scale={2,2,2}

--reset rot & init rotate:z
o.rot[3]=t()*0.4
objrot(o)

--(*1)set cordinates
o.pos={64,64,64}

--(*2)rotate:x 
objrot(o,0.0625,0,0)

--(*3)add to raster-buffer on 'tx' mode
addraster(o,'tx')

--(*4)draw all raster-buffer
drawraster()

--short-code (*1)-(*4)
--default-render-mode: _p_render='tx'
--objdraw(o,{64,64,64},{0.0625,0,0})

flip()
end

The trial version includes a 3D model saving function!

Try it for free and if you like it, consider buying it!
https://bitchunk.itch.io/pelogen2

3



[Please log in to post a comment]