[Release] 3D Cube 3b - 05/08
This is a discussion on [Release] 3D Cube 3b - 05/08 within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; This is another 3D cube that runs in lua. I have created this 3D program mostly from scratch. This version ...
-
05-04-2006, 05:31 PM #1QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
[Release] 3D Cube 3b - 05/08
This is another 3D cube that runs in lua.
I have created this 3D program mostly from scratch.
This version features a cube (more shapes will be added in later versions), 2 different wireframes, 3 different vertex points, XYZ axis lines, and a misc. display that shows the rotation of the X,Y,and Z axises and translation Z.
The controls are simple:
-D-Pad up rotates the X axis by -1 (or rotating the cube up).
-D-Pad down rotates the X axis by 1 (or rotating the cube down).
-D-Pad left rotates the Y axis by -1 (or rotating the cube left).
-D-Pad right rotates the Y axis by 1 (or rotating the cube right).
-The analog stick does the same thing as the d-pad BUT instead of rotating the axises by 1 and -1, it rotates the axises by 3, -3, 6, and-6 depending on how far you push the stick.
-The L Shoulder button rotates the Z axis by -1 and the R shoulder rotates the Z axis by 1.
-The triangle button increases translation Z by 1 (or zooming in).
-The cross button decreases translation Z by 1 (or zooming out).
-The start button brings up the main menu where you can choose what to view or quit the program. Circle, start, or the EXIT MENU option exits the main menu.
To install:
-Copy to the Applications folder in the luaplayer folder (DUH!).
For future updates, im thinking of adding more 3d models (such as diamond, pyramid, etc.), color options, and a little more controls.
Comments are appreciated, flames are not. Ive been working hard on this program and i think i did a great job on it.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-04-2006, 06:07 PM #2
Good job. I have been messing with the 3D gpe stuff for a while now, and I must say its a bit complicated. I had to look up almost every function of google. (That ws for my WarioWare PSP zooming and stuff)
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
05-05-2006, 10:16 AM #3QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
the only bump i'll do for this.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-05-2006, 03:33 PM #4TheMarioKartersGuest
Very cool, it shows what LUA can really do. :)
-
05-05-2006, 05:35 PM #5
Exactly! I think almost no one realises that LUA is a very good language. The only program is that so many programs have been released that use only basic elements. They don't realise that LUA is a very capable lanuage. LuaPlayer can do Wifi, IR, use the GPE, and tons of other neat things. Heck, if you can make it in C, it can go in LuaPlayer.
Originally Posted by TheMarioKarters
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
05-05-2006, 06:03 PM #6QJ Gamer Gold
- Join Date
- Sep 2005
- Location
- meh
- Posts
- 2,799
- QJ Pts
- 19,737
- Level
- 88
- Downloads
- 0
- Uploads
- 0
its a shame how idiots have fscked up the front page article
-
05-05-2006, 06:04 PM #7QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
True, I may create a game in LUA using 3D.
Originally Posted by youresam
Also, i have created a diamond in Lua for my 3D cube 3 program. Im going to start on a pyramid and trimid(a pyramid but with 3 sides instead of 4). I may add a grid to it later on after i have a good amount of 3D objects.Last edited by alatnet; 05-05-2006 at 06:07 PM.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-05-2006, 06:09 PM #8TheMarioKartersGuest
Nice, a trimid sounds cool.
Originally Posted by alatnet
-
05-05-2006, 08:26 PM #9
Just so you know, LuaPlayer is missing the sceGumLookAt command. I have added it to LuaPlayer about half a month ago, but the parameters are a bit complicated. This command is the 'camera' in a 3D game.
Originally Posted by alatnet
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
05-05-2006, 08:42 PM #10
The front page article does say it uses the media CPU.Its a shame how idiots have fscked up the front page article
That would draw a lot of attention.
-
05-05-2006, 09:22 PM #11QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Which lua version? I've got version 0.16 cus it works on my 2.0 psp. Is their any higher version that works on 2.0 psp's?
Originally Posted by youresam

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-06-2006, 09:19 AM #12
I added it to .19 because I can't compile .16
Originally Posted by alatnet
Thanks to AT for the sample code!
If you want it, add this to lua3d.cpp:
(and the first line shoule be lua_State *L)
and change the functions at the bottom:Code:static int lua_sceGumLookAt(lua_State *L) { int argc = lua_gettop(L); if (argc != 9) return luaL_error(L, "wrong number of arguments"); ScePspFVector3 cameraPos; ScePspFVector3 lookAtPos; ScePspFVector3 upVec; cameraPos.x = luaL_checknumber(L, 1); cameraPos.y = luaL_checknumber(L, 2); cameraPos.z = luaL_checknumber(L, 3); lookAtPos.x = luaL_checknumber(L, 4); lookAtPos.y = luaL_checknumber(L, 5); lookAtPos.z = luaL_checknumber(L, 6); upVec.x = luaL_checknumber(L, 7); upVec.y = luaL_checknumber(L, 8); upVec.z = luaL_checknumber(L, 9); sceGumLookAt(&cameraPos, &lookAtPos, &upVec); return 0; }
Code:static const luaL_reg Gum_functions[] = { {"matrixMode", lua_sceGumMatrixMode}, {"loadIdentity", lua_sceGumLoadIdentity}, {"perspective", lua_sceGumPerspective}, {"translate", lua_sceGumTranslate}, {"rotateXYZ", lua_sceGumRotateXYZ}, {"drawArray", lua_sceGumDrawArray}, {"lookAt", lua_sceGumLookAt}, {0, 0} };牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
05-06-2006, 06:29 PM #13QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Ive done the editing BUT ive been getting some errors:
Code:[email protected] ~/projects/luaplayer $ make psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -Wall -O2 -fno-strict-aliasing -I/include/freetype2 -I/include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -Wall -O2 -fno-strict-aliasing -I/include/freetype2 -I/include - fno-exceptions -fno-rtti -c -o src/sio.o src/sio.cpp src/sio.cpp:175: error: invalid conversion from 'int (*)(PspIoDrvFileArg*, unsigned int, void*, int, void*, int)' to 'int (*)(PspIoDrvFileArg*, const char*, unsigned int, void*, int, void*, int)' make: *** [src/sio.o] Error 1

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-06-2006, 06:46 PM #14
The main things that I dont like about LUA are:
1. Not much sound support
2. No Video Support.
3. Slow with the sounds it can do.
4. Slow in general.
Other then that its a very powerful langauge.
Alatnet what version of the SDK are you using?
-
05-06-2006, 07:11 PM #15QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Latest from the newtoolchain program.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-06-2006, 07:48 PM #16
Let me guess... your trying to compile .16? Try .19, .16 is so outdated that the new sio library isnt compatible anymore.
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
05-06-2006, 08:06 PM #17TheMarioKartersGuest
Just downgrade to 1.5 and run 0.19 ;)
Originally Posted by alatnet
-
05-06-2006, 08:10 PM #18QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Doesn't 0.19 have that module loading thing? And doesn't the module loading need kernel mode? And doesn't kernel mode NOT work that well in 2.0 psp's?

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-06-2006, 08:10 PM #19TheMarioKartersGuest
Actually, kernal doesn't work at all.
Originally Posted by alatnet
-
05-06-2006, 08:14 PM #20QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Then how can luaplayer 0.19 work on a 2.0 psp?

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-07-2006, 07:22 AM #21
It cant.
Originally Posted by alatnet
Downgrade to 1.5 and use .19牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
05-07-2006, 07:39 AM #22QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- I Don't Have A Clue!
- Posts
- 294
- QJ Pts
- 5,921
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Nice Job :icon_smil
-
05-07-2006, 07:39 AM #23TheMarioKartersGuest
I've been saying that, he doesn't listen.
Originally Posted by youresam
-
05-07-2006, 08:59 AM #24QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
I really dont wana downgrade cus i sorta like 2.0 cus of my video's being avs's and using the internet browser for reading fanfiction.net stories saved on my mem stick.
Last edited by alatnet; 05-07-2006 at 09:02 AM.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-09-2006, 05:27 AM #25QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
3D Cube 3b
BEHOLD!!! 3D Cube 3b!!!!
New features include:
-AutoSpin!!!
-The ability to take screenshots of a 3D model (It's the select button)
-3 New 3D models:
--Diamond
--Trimid (a pyramid but with 3 sides instead of 4)
--Pyramid
Im going to take a slight break with this to create a program that you could use to make 3D models in gmax and load it into lua, so it may take a while b4 i come up with 3D Cube 3c. Also, I've added 12 screenshots!
Screenshots:
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/1.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/2.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/3.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/4.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/5.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/6.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/7.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/8.png
http://fire.prohosting.com/alatnet/Pics/3D_Cube_3/9.png
http://fire.prohosting.com/alatnet/P..._Cube_3/10.png
http://fire.prohosting.com/alatnet/P..._Cube_3/11.png
http://fire.prohosting.com/alatnet/P..._Cube_3/12.pngLast edited by alatnet; 05-09-2006 at 05:31 AM.

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-09-2006, 05:33 AM #26QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
Uh... a little side note...
It seems that prohosting is being an @$$ and not showing the screenshots. But i do have the screenshots in the compressed file.
"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-09-2006, 05:49 AM #27
Good job, alatnet. Would you please edit the title of your release post to the latest version with a date like 05-09, so we can see it really quick? Thanks :P
-
05-09-2006, 05:51 AM #28QJ Gamer Silver

- Join Date
- Oct 2005
- Location
- ~* Confidential *~
- Posts
- 839
- QJ Pts
- 20,361
- Level
- 90
- Downloads
- 0
- Uploads
- 0
well, i could but then i would need a moderator to change the post name...

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
-
05-09-2006, 12:57 PM #29QJ Gamer Silver
- Join Date
- Oct 2005
- Location
- England
- Posts
- 1,970
- QJ Pts
- 10,906
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Yeah, all you have to do is copy the link. If you get a orbidden, just refresh and they come up.
Originally Posted by alatnet
Good release! I still think this looks cool.
-
05-09-2006, 01:08 PM #30QJ Gamer Platinum
- Join Date
- Oct 2005
- Location
- Interstates
- Posts
- 9,652
- QJ Pts
- 30,546
- Level
- 100
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Intriguing....learning proper 3d controls and effects is a good first step on the road to making more advanced homebrew.
[spoiler=signature][center][img]http://i33.photobucket.com/albums/d75/iball2929/iballsig2fz.jpg[/img][/center]
[size=-2][center][b][color=purple]Nintendo DS WFC codes[/b][/color][/center][/size][size=-2][center][b][color=green]Mario Kart DS: 180448 583615 (I-Ball)[/color]
[color=blue]Animal Crossing: Town of Sampson 4853-9284-6519 (I-Ball)[/color]
[color=red]Metroid Prime Hunters: 5025 8054 3555[/size][/center][/color][size=-2][center]-----------------[/center][center][color=blue]Homebrew authors! If your software is based upon GPL code then you MUST release the modified source code you created the same time you release the binaries![/b][/size][/color][/center]
[size=-2][center][b]Supercard mini-SD w/2GB 150x Mini-SD card, SuperPass II, FlashMe v7 and an EFA Linker II GBA flashcart[/b][/center][/size][/spoiler]


LinkBack URL
About LinkBacks
Reply With Quote



Unfortunately, these cheaters are ruining many games.
Damn Cheaters Ruining A Game