QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Gaming > Sony PlayStation 3 > PS3 Main > PS3 Hacks, Exploits and Homebrew
The above video goes away if you are a member and logged in, so log in now!

BD-J flight demo

This is a discussion on BD-J flight demo within the PS3 Hacks, Exploits and Homebrew forums, part of the PS3 Main category; Hi I reworked some of my old terrain rendering stuff I used to play around with in the PDA days. ...

Reply
 
LinkBack Thread Tools
Old 08-09-2008, 04:10 AM   #1
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default BD-J flight demo

Hi

I reworked some of my old terrain rendering stuff I used to play around with in the PDA days. It used to be in C on the PDA, now I just did a very quick port to java (not using fixed point arithmetic but floats in stead).
I don't get it as snappy as I want, could be optimized a lot further.

extract the AVCHD folder to some USB storage device and run it
Use the arrow keys to turn and control the speed, use the square and X to change the altitude of the player's view.


the flight2 directory has the source, see how small the actual render routine is. It is a ray caster based on this article : http://www.tecgraf.puc-rio.br/public..._rendering.pdf

I uploaded the file to rapidshare, since attachments in this forum do not seem to be working for me (quota exceeded)

link : http://rapidshare.de/files/40209903/flight3D.rar.html

have fun

Last edited by Nuclear Bit; 08-11-2008 at 04:56 AM..
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2008, 09:17 AM   #2
 
Cooguy1212's Avatar
 
Join Date: Jan 2007
Location: Hyrule
Posts: 626
Trader Feedback: 0
Default

How did you port C to java?
__________________
PSN-Cooguy1212 feel free add me

[QUOTE]Anyways, Obama won. Suck it up sore loser.
Now go ahead and leave your country like you said you would so nobody has to endure your crap any longer. Just please dear god don't come to Canada. Nobody would welcome you here with your close-minded bull****.[/QUOTE]
Cooguy1212 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2008, 11:06 AM   #3
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default

Quote:
Originally Posted by Cooguy1212 View Post
How did you port C to java?
rewriting it may have been a better word choice than 'porting' it.
The render routine in C used a lot of pointer arithmetic in order to directly write to the video backbuffer, all of this had to be replaced by buffered image operations in java (making it slower of course) . I also removed the fixed point operations, since I had no fixed point lib for java available. Sure it would be faster with a decent fixed point lib, I guess they do exist, but I didn't bother searching for one yet (or implementing one).
However apart from the memory addressing the routine stayed pretty much the same.

I also wonder why the MemoryImageSource is not working which I tried to use first, it seems that this is not supported in BD-J. As an alternative I found the DVBBufferedImage which has a setRGB() where you can pass an array of rgb pixels. This results in an extra copy from the renderbuffer to the backbuffer ... all causing loss in speed of course.
hope that someone finds a better or faster way to blit pixels so we can go full screen at 25fps
-=Double Post Merge =-
btw the terrain texture and heightfield were created with L3DT http://www.bundysoft.com/L3DT/ great software and free version available, you can easily recompile and provide a new land.jpg and height.jpg file, the size of both files is 512x512

Last edited by Nuclear Bit; 08-09-2008 at 11:35 AM.. Reason: Automerged Doublepost
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2008, 01:26 PM   #4
Proper Brootal Like.
 
Sir_Axxewraith's Avatar
 
Join Date: Aug 2006
Real First Name: Josh
Location: Manchester, England
Just Played: with myself.
Posts: 2,382
Trader Feedback: 0
Default

Any screens ?
Sir_Axxewraith is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2008, 02:53 PM   #5
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default

in attachment a screenshot from the pc version which is basically the same but coded as an applet in stead of an xlet
Attached Images
File Type: jpg flight.jpg‎ (17.5 KB, 74 views)
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2008, 03:51 PM   #6
Proper Brootal Like.
 
Sir_Axxewraith's Avatar
 
Join Date: Aug 2006
Real First Name: Josh
Location: Manchester, England
Just Played: with myself.
Posts: 2,382
Trader Feedback: 0
Default

Don't worry about it. It looks fantastic to be honest. I'll try it later on tonight.
Sir_Axxewraith is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2008, 04:09 PM   #7
 
ct-boy's Avatar
 
Join Date: Feb 2006
Location: England
Posts: 1,037
Trader Feedback: 0
Default

Awesome dude I will try it later is it 3d? Cos if it is then finally it shows the true power of BD-J homebrew that some people said we may never go further than snake.
__________________
I own a Playstation 3,PSP and a Wii add me on psn: azazin,

[QUOTE=TheMasterChef]Who gives a rat's ass about the size anyway?? It is not like you carry it around every day.[/QUOTE]
ct-boy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-10-2008, 12:20 AM   #8
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default

yes it is 3D, not polygon based but voxel based
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-10-2008, 06:35 AM   #9
 
ct-boy's Avatar
 
Join Date: Feb 2006
Location: England
Posts: 1,037
Trader Feedback: 0
Default

hey Nuclear I was wondering if it's actually you on ps3hax.net that has posted this too look here:

http://www.ps3hax.net/showthread.php?t=6136
__________________
I own a Playstation 3,PSP and a Wii add me on psn: azazin,

[QUOTE=TheMasterChef]Who gives a rat's ass about the size anyway?? It is not like you carry it around every day.[/QUOTE]
ct-boy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-10-2008, 05:56 PM   #10
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default

yes that was me.
I just finished a fixed point version which is a lot faster and runs really smooth,
download and try it from:
http://rapidshare.de/files/40207470/flight3D.rar.html

basically it looks like the JVM used in the PS3 has no hardware accelerated float/double support, so you'll need to use fixed point if you want speed
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2008, 01:28 AM   #11
 
Join Date: May 2007
Posts: 16
Trader Feedback: 0
Default

Very nice work! Thanks a lot!
nvidiaman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2008, 02:50 AM   #12
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default

Quote:
Originally Posted by nvidiaman View Post
Very nice work! Thanks a lot!
wait until you see the version with distance fog, even better...

done:
fog has been added + new map

Last edited by Nuclear Bit; 08-11-2008 at 05:08 AM..
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2008, 02:43 PM   #13
 
Join Date: Aug 2008
Posts: 4
Trader Feedback: 0
Smile wait until you see the version with distance fog, even better

Can't wait to see the version with distance fog,
Could you make a game like humanoid alert or galaxians?
arnookie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2008, 03:46 PM   #14
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default

Quote:
Originally Posted by arnookie View Post
Can't wait to see the version with distance fog,
Could you make a game like humanoid alert or galaxians?
Distance fog has been added, just download the rar again from the top post and have a look
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2008, 04:10 PM   #15
 
Join Date: Aug 2008
Posts: 4
Trader Feedback: 0
Smile You make this exploit look quite promising

Hope we see some good stuff come from this, The main problem I can forsee is that only one app can be run off a memory stick at a time.
Expecially as the bj exploit won't allow access to other folders.
Good work though keep it up.
arnookie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2008, 07:54 PM   #16

PREMIUM Member
 
dragula96's Avatar
 
Join Date: Jun 2005
Posts: 312
Trader Feedback: 0
Default

Quote:
Originally Posted by arnookie View Post
Hope we see some good stuff come from this, The main problem I can forsee is that only one app can be run off a memory stick at a time.
Expecially as the bj exploit won't allow access to other folders.
Good work though keep it up.
that's not true, the problem is that no one has taken the time to crate a launcher.
dragula96 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2008, 05:30 AM   #17
 
Join Date: Aug 2008
Posts: 4
Trader Feedback: 0
Default Bj Exploit dose not allow reading and wrighting to folders

Bj Exploit dose not allow reading and wrighting to folders. This makes a loader very hard to make.
arnookie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2008, 11:46 AM   #18
PREMIUM Member
 
Join Date: Jul 2005
Posts: 5
Trader Feedback: 0
Default

Quote:
Originally Posted by arnookie View Post
Bj Exploit dose not allow reading and wrighting to folders. This makes a loader very hard to make.
Couldn't the Blu-Ray menus be used for this? Since the memstick basically mimicks a Blu-Ray disc, it should be possible to choose the application to launch this way.
pcostabel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2008, 12:01 PM   #19
Oppressed by the man
 
Iconic_187's Avatar
 
Join Date: Jul 2008
Real First Name: Luis
Location: So Cal
Just Played: Koroshi 2.0
Posts: 321
Trader Feedback: 0
Default

does this app take advantage of the sixaxis feature on the ps3 controller...
Iconic_187 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2008, 02:15 PM   #20
 
Join Date: Sep 2005
Posts: 64
Trader Feedback: 0
Default

Quote:
Originally Posted by Iconic_187 View Post
does this app take advantage of the sixaxis feature on the ps3 controller...
No, it doesn't : control is very basic now,
sixaxis control would be great, but since BD-J is basically a spec for all blu-ray devices it is not very likely we can capture that input...
-=Double Post Merge =-
Quote:
Originally Posted by pcostabel View Post
Couldn't the Blu-Ray menus be used for this? Since the memstick basically mimicks a Blu-Ray disc, it should be possible to choose the application to launch this way.
yes I think so too, you'll need a BD authoring tool to do this

Last edited by Nuclear Bit; 08-13-2008 at 02:18 PM.. Reason: Automerged Doublepost
Nuclear Bit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2008, 03:40 PM   #21
 
Join Date: Nov 2005
Location: NoWhere . . . .
Posts: 1,266
Trader Feedback: 0
Default

Quote:
Originally Posted by arnookie View Post
Hope we see some good stuff come from this, The main problem I can forsee is that only one app can be run off a memory stick at a time.
Expecially as the bj exploit won't allow access to other folders.
Good work though keep it up.
Quote:
Originally Posted by arnookie View Post
Bj Exploit dose not allow reading and wrighting to folders. This makes a loader very hard to make.
Quote:
Originally Posted by Savagefreak
It isn't. a damn. exploit.
And if you permissions are right then according to the BluRay Spec. (That's what allows bd-java not an "exploit") you should be allowed the ability to read, write and launch other xlets from any storage medium.
zmathue is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2008, 03:56 PM   #22
 
Join Date: Aug 2008
Posts: 4
Trader Feedback: 0
Cool Sounds as though this could turn out quite sweet

Sounds as though this could turn out quite sweet for ps3 owners.
Lets hope for a leap in what can be done with this. Yes you are quite right about it not being an exploit. Sony should be cool about this and not try to block it, it is after all a feture of the ps3. Not sure about the fact that it is not running from a blue ray disk though, Although sony left it open to run off memory card / stick anyhow so can't see it as a problem.
arnookie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2008, 04:04 PM   #23
No longer a community member.
 
Join Date: Jun 2006
Location: Nederland
Posts: 3
Trader Feedback: 0
Default

Quote:
Originally Posted by arnookie View Post
Bj Exploit dose not allow reading and wrighting to folders. This makes a loader very hard to make.
IT ISN'T A GODFORSAKEN EXPLOIT!
Anyway, very nice.

Savagefreak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-15-2008, 09:24 AM   #24

PREMIUM Member
 
dragula96's Avatar
 
Join Date: Jun 2005
Posts: 312
Trader Feedback: 0
Default

Quote:
Originally Posted by arnookie View Post
Bj Exploit dose not allow reading and wrighting to folders. This makes a loader very hard to make.
what i ment by loader is: a menu to select different bd-j applications off the same usb stick.

what i did not mean: a loader to load ps3 games off the hard drive.

THANK YOU.
dragula96 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
bdj , demo , flight

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 12:36 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us