big code ???!!!
dofile("animlib.lua")
If that's big to you then you must be an extremely tiny person.
or just have a really tiny computer :p
Printable View
big code ???!!!
dofile("animlib.lua")
If that's big to you then you must be an extremely tiny person.
or just have a really tiny computer :p
Is it possible to run an EBOOT using lua
....NOZitat:
Zitat von xpack
^^ what he said
can someone give me an explanation of Gum.perspective?
Gum.perspective(50, 16/9, 0.5, 1000)
I know that the 16/9 is for the aspect ratio of the psp's screen, but what are the other 3 numbers for?
In order:
Field of View (FoV)
Aspect ratio
Near clipping plane
Far clipping plane
http://fly.cc.fer.hr/~unreal/theredbook/chapter03.html
About halfway down the page.
the 50 is i think like the field
and .5 is like how close the cam can be, and the 1000 is how far it could be
50 is field of view aka how much canm be seen 0.5 is how close something can get before being clipped and 1000 is how far it can get before being clipped.
field of view - how does that work exactly?
FOV is how many degree you want the field of vision to be. It is usually in degrees.
http://fly.cc.fer.hr/~unreal/theredb...es/Fig3-12.gif
I also have a question about 3D
how do you know like how to meet up the the vertices to make the triangles
Depends on the drawing/rendering mode.
what do you mean by a drawing/rendering mode
From the GU header
http://www.opengl.org/documentation/....1/node17.htmlCode:#define GU_POINTS (0)
#define GU_LINES (1)
#define GU_LINE_STRIP (2)
#define GU_TRIANGLES (3)
#define GU_TRIANGLE_STRIP (4)
#define GU_TRIANGLE_FAN (5)
Ah, thanks, that pic helps.
In the sample codes I've seen, some people set the fov to 50, and others have used 75. Is one of them more accurate, or is it just a personal prefrence of the programmers?
ok now this has been bugging me
wtf is this stackdump error, i keep getting it when i try to run my game
Depends on the environment it is being used, I can't remember what we use for our game, I think 75 for Widescreen or wide aspects..
if so, then 75 would be better for the psp wouldn't it? Well whatever, I think I got it now, thanks. :tup:
Some people like to use 45 for 1/8th of a circle, some 50 because its half of 100, it depends on the person
here's the exact error
Code:4 [sig] luaplayer 1720 open_stackdumpfile: Dumping stacks trace to luaplayer.exe.stackdump
well can someone simplify the code to only play sprites and blit them?
all this gu and 3d talk may actually get me to look into it now :)
it depends on the game. on a racing game, 75 would be good. but on other games, 75 is overkill.Zitat:
Zitat von Merick
do .gif's work in luaplayer?
Dont think so I think it only supports .png or .jpg and maybe bmp w/ the lrx
no, not as of now.Zitat:
Zitat von Urameshi
or bmplib I made.Zitat:
Zitat von xpack
no wonder the game im tryin to use keeps crashing, cause of the .gif
lol, im trying to get animlib to work, i have not changed anything in animlib or added anything and i have this on my lua file to test it out
like i said i have not added anything to the animlib code or changed anything, but when i start up my lua file with the code above, an error message posp up saying:Code:dofile("animLib.lua")
--animations
walkright = SS.new("jackrunright", "png", 64, 48, "images/jack/")
while true do
walkright:blit(0,0,100)
screen.waitVblankStart()
screen.flip()
end
Zitat:
error: animLib.lua:27: '<eof>' expected near 'end'
Well what line is 27
i think it means delete the end near line 27
ya, in the line 27 it says end and before that on line 26, it's just a blank line
-= Double Post =-
think i should delete the blank line
Well then you probably have an extra 'end' in your file
but before the blank line, there is no other end
-= Double Post =-
lines 25, 26, 27:
Zitat:
25:return c
26:
27:end
Well that may be it there, that end must be there and it's not suppose to ... print all your code and point out line 27
ok, i solved that problem, now it says eof expected near function on line 33
Whats the function???
Urameshi, why'd you ask here when I told you 20 minutes earlier in a PM that gif's are not compatible with luaplayer?
man, did this ever happen to you guys when you started using animlib?
-= Double Post =-
starting with line 25:
Zitat:
25:-- BLIT ANIMATION --
function ANIM:blit(x, y, delay)
self.interval = delay
self.timer:start()
if self.timer:time() >= self.interval then
33: self.currentFrame = self.currentFrame + 1
self.timer:reset()
end
no you didnt, you told me that either the code was wrong, or it was because luaplayer windows suckedZitat:
Zitat von TacticalPinguin