PSP3D Left Header
Shop Online
PSP3D Logo CraveOnline Logo
Help the PSP 3D community grow!
Vote for us below:


Vote on the PSP Top 200
PSP Top 200 - Games, Videos, Wallpapers, Files, Hacks, Homebrew

General PSP Discussion - Everything relating to but not focused on a specific aspect the PSP.

Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!

You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.

Registration is fast, simple, and absolutely free so join our community today!

Go Back PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums > PSP Forums > General PSP Discussion
Tags: , ,


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2007, 02:24 PM
daniwul's Avatar
daniwul daniwul is offline
Senior Member
My Mood:
 
Join Date: Sep 2006
Location: Canberra, AU
Posts: 363
Points: 3.61
Donate
Send a message via ShopTapNham to daniwul
Thumbs up Quake PSP is being worked on again

PeterM, co-developer of PSP quake, has posted on his blog that he is continuing his port , he mentions a ton of stuff! So heres a post that will awe you:


It’s been a heck of a long time since Chris Swindle and I did a Quake release, but hopefully there are still some people out there enjoying it.

I managed to find a few hours this week to work on hardware rendering for Quake. It’s a long time overdue!

When deciding how to go about writing the hardware rendering layer, two potential approaches immediately sprang to mind:

Hack the software renderer, adding hardware replacements until it’s done (or fast enough).
Rip the OpenGL calls out from GLQuake and replace them with PSP GU calls.
In a perfect world, both paths would arrive at the same destination. Both approaches would work pretty well, but after some deliberation I decided on the second approach. GLQuake has covered much of the groundwork already, so I should probably capitalize on that.

A worthwhile diversion

The initial worry was that I would hack away at the Quake GLcode, commenting out OpenGL calls and/or replacing functions with stub (no-op) versions, compile my code, run it, then immediately hit a null pointer exception and crash. And of course, that’s almost exactly what happened. The game started, got part of the way into initialization, and the PSP powered off. (This is what happens if you don’t handle a hardware exception.)

Now, debugging on the PSP is a bastard. Especially if, like me, you’re not a Linux type of guy and wouldn’t touch GDB with a 10 foot barge pole. Maybe official developers get a great debugger, I have no idea. I’m using the homebrew SDK here.

I then had an epiphany. Visual Studio’s debugger kicks ass. A running screaming arms-waving leg swinging punt right up the sphincter. Getting this crash to happen in Windows would make it a damn sight easier to fix, so I set about making it so.

Inspired by some “work” work I’ve been doing recently, I whipped up some minimal stub versions of the PSP SDK headers I was using, and created a Win32 build of the project. Obviously the functions, like most, do nothing visible to the calling code. They do however allow the calling code to compile, link and run.

With no actual graphical output, but with the Quake engine and most of my port code humming away in the background, I built and ran the Win32 version. And like all good bugs, this one appeared promptly, making the whole Win32 build effort worthwhile. Incidentally, it was one of the worst kind of bugs - the subtle typo that many a coder has spent dreary late nights hunting for. After deleting a single misplaced “!” character, the bug was no more.

So back to the task at hand

After the game successfully ran on Windows and PSP, with a whole lot of GLQuake running but without any PSP rendering going on, I went back to what I was supposed to be doing. I added some GU initialization and buffer swapping code, just to get something up and running.

I slowly adding drawing code, until I had enough to draw flat shaded polygons with “random” (so that’s what a pointer looks like when reinterpret_casted to ABGR) colours. I also went about replacing the OpenGL matrix operations with GU and GUM equivalents. And it worked! What a stroke of luck, but damn was it pug fugly:

And that was the end of another development day. Thanks for reading, there’ll be more in his next post.
__________________
Reply With Quote
  #2 (permalink)  
Old 04-10-2007, 02:58 PM
jsf's Avatar
jsf jsf is offline
Joint Strike Fighter
My Mood:
 
Join Date: Dec 2005
Location: Lancaster Pennsylvania USA
Age: 21
Posts: 2,857
Points: 1,000,000,000,000.07
Donate
Send a message via AIM to jsf Send a message via ShopTapNham to jsf Send a message via Yahoo to jsf




Cool. I know I'll try it out when they release the new version.
__________________
Here at PSP3D I am:
  • a Senior Member
  • Moderator
  • Game/Homebrew Reviewer
  • Homepage News Poster
  • Richest member (site points)

My PSP pages
Website
Facebook
My Space
Reply With Quote
  #3 (permalink)  
Old 04-10-2007, 04:28 PM
chessus123's Avatar
chessus123 chessus123 is offline
Senior Member
My Mood:
 
Join Date: Feb 2006
Location: England (Whey!!!!)
Age: 16
Posts: 516
Points: 6.73
Donate
Send a message via ShopTapNham to chessus123
hey culdnt you play this online multiplayer
Reply With Quote
  #4 (permalink)  
Old 04-10-2007, 04:33 PM
vans1170's Avatar
vans1170 vans1170 is offline
Senior Member
My Mood:
 
Join Date: Jan 2006
Location: A box
Posts: 1,044
Points: 18.17
Donate
Send a message via ShopTapNham to vans1170
Sweet. I loved the first one.
__________________

1k posts: june 30th
3 titles! - july wallpaper: 2nd place!
read the rules, son!
1.5 > 2.0 > 2.5 > 2.6 > 2.71 > 1.5 > 2.71 SE > 3.02 OE > 3.03 OE > 3.10 OE > 3.03 OE > 3.40 OE > 1.5 > 3.52 M33
Reply With Quote
Reply

« PSP Won't Catch Up To DS, But It Doesn't Need To | Locationfree Player »



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Points Per Thread View: 0.00
Points Per Thread: 1.00
Points Per Reply: 0.10

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] How to customize your PSP! theaceoffire Getting Started/Help/Tutorials 11 01-19-2007 11:45 AM
Hacking Wireless Networks With The PSP pspkillsds Off Topic 1 08-24-2006 10:17 PM
PSP Quake Scheduled Deathmatches - Good Idea? Suggestions for Times to Have Them? pspfan Homebrew/Hacking 3 06-10-2006 05:44 PM
Nero Recode Problems Ajs Media 15 01-10-2006 02:58 AM
PSP Christmas Special (1.5 Premodded) Stunt General PSP Discussion 0 12-22-2005 05:45 PM





Crave Partner Sites: CraveOnline.com | DVDFile.com | PSP3D.com | ComingSoon.net | SuperHeroHype.com | RedBalcony.com | ActionTrip.com | CraveLyrics.com
Soundtrack.net | CraveFix.com | SpikedHumor.com | RPGamer.com | TattooNow.com | ImpactWrestling.com | SeekLyrics.com | PedalBMX.com | WildKO.com
vidKing.com | StrategyInformer.com | HHdb.com | RapLeagues.com | HipHop-Lyrics.com | Cravecocktails.com | ThePhatPhree.com | RideJudge.com | HottieSpots.com


Powered by Custom vB Version 6.0 for Crave Online Media, LLC.
Copyright © 2000 - 2009, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8
All times are GMT -4. The time now is 02:12 PM.