luaplayer.org
September 09, 2010, 10:03:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: IMPORTANT: Please read the following post http://luaplayer.org/forums/index.php?topic=693
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 10
 1 
 on: Today at 01:15:38 AM 
Started by RechnijY - Last post by RechnijY
Tnank all for help. Waiting for 0.03.

 2 
 on: September 08, 2010, 08:44:31 AM 
Started by RechnijY - Last post by Criptych
This is a known issue; see for example this thread. It's fixed in 0.03 but that hasn't been officially released yet.  For now, just try not to reload the same image many times. Smiley

 3 
 on: September 08, 2010, 12:09:30 AM 
Started by RechnijY - Last post by RechnijY
No, this bug doesn't depend on the numbers of files in RAM. I try reload only one image and it crash.

 4 
 on: September 07, 2010, 05:10:18 PM 
Started by 10$man - Last post by 10$man
srry, i dont understand at all...
btw i when i tried drawing the .obj the first time i forgot to not put GU.TRIANGLES
the second time i used GU.QUADS and it didn't work. it gave me Expected number got nil error
here is the draw line:
Code
GeSHi (lua):
Gum.drawArray(Gu.QUADS, Gu.COLOR_8888+Gu.VERTEX_32BITF+Gu.TRANSFORM_3D, model)
Created by GeSHI 1.0.7.20
heres the rest of the code:
(i know its the draw function because i plugged this up to one of the models i made in l3d and it worked)
Code
GeSHi (lua):
red = Color.new(255, 0, 0)
green = Color.new(0, 255, 0)
blue = Color.new(0, 0, 255)
black = Color.new(0, 0, 0)
white = Color.new(255, 255, 255)
gray = Color.new(128, 128, 128)
cyan = Color.new(100, 255, 255)
guy1 = {x=0,y=0}
guy2 = {x=-1,y=-1}
rotx = 0
roty = 0
rotz = 0
v = {
{-1.5, -1.5, -1.303},
{-1.5, -1.5, 1.697},
{-1.5, 1.5, -1.303},
{-1.5, 1.5, 1.697},
{1.5, -1.5, -1.303},
{1.5, -1.5, 1.697},
{1.5, 1.5, -1.303},
{1.5, 1.5, 1.697}
}
uv = {
{0, 0},
{0, 0},
{0, 1},
{0, 1},
{1, 0},
{1, 0},
{1, 1},
{1, 1}
}
vn = {
{0, 0, -1},
{0, 0, 1},
{-1, 0, 0},
{1, 0, 0},
{0, 1, 0},
{0, -1, 0},
{0, 0, -1},
{0, -1, 0},
{-1, 0, 0},
{0, 0, 1},
{0, -1, 0},
{-1, 0, 0},
{0, 0, -1},
{0, 1, 0},
{-1, 0, 0},
{0, 0, 1},
{0, 1, 0},
{-1, 0, 0},
{0, 0, -1},
{0, -1, 0},
{1, 0, 0},
{0, 0, 1},
{0, -1, 0},
{1, 0, 0},
{0, 0, -1},
{0, 1, 0},
{1, 0, 0},
{0, 0, 1},
{0, 1, 0}
}
model = {
{red,v[3][1],v[3][2],v[3][3]},
{red,v[7][1],v[7][3],v[7][3]},
{green,v[5][1],v[5][2],v[5][3]},
{green,v[1][1],v[1][2],v[1][3]},
 
{green,v[6][1],v[6][2],v[6][3]},
{green,v[8][1],v[8][2],v[8][3]},
{green,v[4][1],v[4][2],v[4][3]},
{green,v[2][1],v[2][2],v[2][3]},
 
{green,v[2][1],v[2][2],v[2][3]},
{green,v[4][1],v[4][2],v[4][3]},
{green,v[3][1],v[3][2],v[3][3]},
{green,v[1][1],v[1][2],v[1][3]},
 
{green,v[7][1],v[7][2],v[7][3]},
{green,v[8][1],v[8][2],v[8][3]},
{green,v[6][1],v[6][2],v[6][3]},
{green,v[5][1],v[5][2],v[5][3]},
 
{green,v[4][1],v[4][2],v[4][3]},
{green,v[8][1],v[8][2],v[8][3]},
{green,v[7][1],v[7][2],v[7][3]},
{green,v[3][1],v[3][2],v[3][3]},
 
{green,v[5][1],v[5][2],v[5][3]},
{green,v[6][1],v[6][2],v[6][3]},
{green,v[2][1],v[2][2],v[2][3]},
{green,v[1][1],v[1][2],v[1][3]},
}
var = -5
 
while true do
Gu.start3d()
 
 
Gu.clearDepth(0);
Gu.clear(Gu.COLOR_BUFFER_BIT+Gu.DEPTH_BUFFER_BIT)
 
 
 
Gum.matrixMode(Gu.PROJECTION)
Gum.loadIdentity()
Gum.perspective(75, 16/9, 0.5, 1000)
 
Gum.matrixMode(Gu.VIEW)
Gum.loadIdentity()
 
Gu.disable(Gu.TEXTURE_2D)
Gum.matrixMode(Gu.MODEL)
Gum.loadIdentity()
Gum.translate(guy1.x,guy1.y,var)
Gum.rotateXYZ(rotx,roty,rotz)
Gum.drawArray(Gu.QUADS, Gu.COLOR_8888+Gu.VERTEX_32BITF+Gu.TRANSFORM_3D, model)
Gu.end3d()
pad = Controls.read()
if pad:start() then
break
end
if pad:left() then
guy1.x = guy1.x - 0.05
end
if pad:right() then
guy1.x = guy1.x + 0.05
end
if pad:up() then
guy1.y = guy1.y + 0.05
end
if pad:down() then
guy1.y = guy1.y - 0.05
end
if pad:square() then
rotx = rotx - 0.05
end
if pad:circle() then
rotx = rotx + 0.05
end
if pad:triangle() then
roty = roty + 0.05
end
if pad:cross() then
roty = roty - 0.05
end
if pad:r() then
rotz = rotz + 0.05
end
if pad:l() then
rotz = rotz - 0.05
end
screen.waitVblankStart()
screen.flip()
end
 
Created by GeSHI 1.0.7.20
EDIT:
has anyone heard of l3d 3d modeler?
link (http://dl.qj.net/psp/homebrew-applications/l3d-3d-modeler-beta-2-kxploited-for-15.html)
it looks kinda nifty...
It doesn't matter that much if the model is high quality... I am more or less just trying to get something to come up on
the screen Tongue
(also has anyone else been having troubles with QJ's downloads? things like AccessDeniedRequest has expired0B60...)

 5 
 on: September 07, 2010, 04:45:57 PM 
Started by 10$man - Last post by romero126
"i am assuming rfc means request for comment?"

 6 
 on: September 07, 2010, 12:01:39 PM 
Started by 10$man - Last post by 10$man
What is a RFC?? (i sure hope that wasn't a noob question)

 7 
 on: September 07, 2010, 10:49:37 AM 
Started by Soulkiller - Last post by Criptych
@emcp: You win the obfuscation contest. Huh

 8 
 on: September 07, 2010, 09:23:42 AM 
Started by RechnijY - Last post by NICK^^
It's because the RAM is full I think.

 9 
 on: September 07, 2010, 06:49:54 AM 
Started by RechnijY - Last post by RechnijY
I think, I found a bug. If you reload picture more then 8-14 times, pge crash with
Code:
pge.texture.load error loading image(or something else(I don't know correctly))
This is a simple(same code I use):
Code:
SimpleIMG = pge.texture.load("Images/SI1.png")
ReloadIMG = 1

while pge.running() do
pge.controls.update()
pge.gfx.startdrawing()
pge.gfx.clearscreen()

if ReloadIMG == 1 then
SimpleIMG = pge.texture.load("Images/SI2.png")
ReloadIMG = 0
end

pge.gfx.enddrawing()
pge.gfx.swapbuffers()
end

Is it a bug or I make a mistake?

 10 
 on: September 07, 2010, 03:10:38 AM 
Started by 10$man - Last post by romero126
If you read the RFC it will tell you how to draw your tables. So that way you are not fidgeting with GU Quads, GU Triangles. because you will be able to read all the paramaters of the .obj file.

Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!