Per la serie 'osservando il codice altrui si impara', l'utente Marcus, della comunità online PS3news, ha rilasciato un programma demo (con annessi sorgenti) per dimostrare come si realizza un file "otheros".
La demo mostra un esempio di rendering grafico eseguito con la CPU (ricordiamo infatti che in modalità OtherOS la GPU e l'accelerazione 3D risultano locked e non accessibili), il tutto avviene senza l'ausilio di linux e kboot, bensì l'esecuzione avviene direttamente sotto la supervisione dell'hypervisor.
Di seguito il quote del readme.txt:
Well, for those of you who would like to program the PS3 without messing around with Linux, I have now completed a demo app that runs directly under the hypervisor. I.e. no linux needed, not even kboot. Source and binaries included!
It demonstrates graphics rendering with the CPU (directly to DDR memory) and multibuffering, as well as some needed system management (set video mode, reboot etc.)
This little program shows how to write an "otheros" from scratch, demonstrating how to do things like display stuff on the screen and return to GameOS.
It can either be started from kboot, using the "demo.elf", or directly from GameOS by installing the "otheros.bld". Both contain the same code, oterhos.bld is simply a gzipped binary instead of an ELF.
The demo runs for about 45 seconds (slightly less on NTSC machines), and then exits to GameOS. The screen mode is either 576i or 480i, depending on the region of your PS3.
Ricapitolando, questo homebrew non ha alcuna utilità pratica se non quella di fornire un ottimo supporto didattico a chi è intenzionato ad intraprendere la strada della programmazione su PS3.
Il file è scaricabile a questo link.
|
|
Benvenuto visitatore. Se non lo hai ancora fatto registrati qui.
Ps3 News
15/05/2007 a cura di SeV3n
Commenti ( 5 )
Acquista videogame PS3 su Multiplayer Shop, inserendo il codice affiliato CTRIBE al momento dell'ordine hai diritto ad uno sconto dell'8% su tutti gli articoli ad eccezione dell'hardware console.
News PS3
Sony Computer Entertainment Europe ha aggiornato il PlayStation Store europeo, e stavolta possiamo essere abbastanza soddisfatti. ...
A quanto riporta una lettera di 2K Games Tech Support, pare che Sony stia progettando un nuovo firmware esclusivamente per le cons ...
Sul sito del famoso coder della scena underground PSP Dark_AleX è comparso il logo della sezione PS3. Il coder si sta dunque dedic ...
Nell'attesa del firmware 2.40 previsto per il mese di giugno che porterà rilevanti novità, è disponibile da oggi il firmware 2.35. ...
A quanto riporta una lettera di 2K Games Tech Support, pare che Sony stia progettando un nuovo firmware esclusivamente per le cons ...
Giugno è un mese che si preannuncia molto importante per tutti possessori della PS3. Il 12 è l'attesa data d'uscita di Metal Gears ...
|

Sony Computer Entertainment Europe ha aggiornato il PlayStation Store europeo, e stavolta possiamo essere abbastanza soddisfatti. ...
A quanto riporta una lettera di 2K Games Tech Support, pare che Sony stia progettando un nuovo firmware esclusivamente per le cons ...
Nell'attesa del firmware 2.40 previsto per il mese di giugno che porterà rilevanti novità, è disponibile da oggi il firmware 2.35. ...