| View previous topic :: View next topic |
| Author |
Message |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Sat Feb 17, 2007 9:37 am Post subject: Display text in xmb with prx |
|
|
Edit: Not Sorted
I cant seem to get any text what so ever to print with a prx over the xmb can anyone tell me what functions i need to just print hello world cheers
another question though is it possible for the font that the xmb uses for menus and the like to print text from a prx to the screen |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sun Feb 18, 2007 3:58 pm Post subject: |
|
|
the psps font system is incredibly large ...way too much
foolery going around with pointers and caches and its
tossed all over the place ...so not gonna happen for a while
at the most _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Sun Feb 18, 2007 11:56 pm Post subject: |
|
|
| okay guess ill just stick with the debug text for a while, but i still cant seem to get it to print over the xmb without having to make the screen go black |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Wed Feb 21, 2007 11:41 am Post subject: |
|
|
hi guys has anyone here used the blit_string functions from the devhook sdk to put text onto the vsh, i can get it to work, im just wondering if there is a way to have the background color the txt sits on to be transparent??
cheers |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Fri Mar 02, 2007 2:27 am Post subject: |
|
|
| sorry i have to bump this |
|
| Back to top |
|
 |
fergie4000
Joined: 19 Jan 2007 Posts: 25
|
Posted: Fri Mar 02, 2007 10:21 am Post subject: |
|
|
you don't need to bump on this forum, most people are very helpful, i too can't figure how to blit text to the screen over the xmb. if you find out, tell me how.
:P |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Fri Mar 02, 2007 10:24 am Post subject: |
|
|
| the topic was going a bit stale that was all, but i know its no too hard i have seen many plugings that do it, i just can't find the source code for any and the sdk i got from devhook uses a background colour for its text which i need to be transparent thanks guys if you can clear this up for us |
|
| Back to top |
|
 |
Zettablade
Joined: 05 May 2006 Posts: 71
|
Posted: Sun Mar 04, 2007 10:16 pm Post subject: |
|
|
| You have to write the text directly to vram. A_nub's VSHPong does the. And it also deals with the black background of the text. Wait until he releases the src code, then check it out :) |
|
| Back to top |
|
 |
be2003
Joined: 20 Apr 2006 Posts: 144
|
Posted: Mon Mar 05, 2007 1:46 pm Post subject: |
|
|
| Zettablade wrote: | | You have to write the text directly to vram. A_nub's VSHPong does the. And it also deals with the black background of the text. Wait until he releases the src code, then check it out :) |
i havent done much research into the subject but i hope this helps out:
you should find this in the blit_string function...
| Code: |
for(p=0;p<8;p++)
{
vram32[offset] = (font & 0x80) ? fg_col : bg_col;
font <<= 1;
offset++;
}
|
replace it with
| Code: |
for(p=0;p<8;p++)
{
if(font & 0x80)
vram32[offset] = fg_col;
font <<= 1;
offset++;
}
|
once again. i havent tested this out but it should take off the background color and just use the foreground if it is present. the blit_string function still has the flickering problem though... _________________ - be2003
blog |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Mon Mar 05, 2007 8:05 pm Post subject: |
|
|
| okay so that should remove the bg color yes? but when you say flickering problem what do you mean? |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Wed Mar 07, 2007 10:33 pm Post subject: |
|
|
| i think the main thing that is holding alot more developers back from producing more plugins and prxs is the fact that there is not much documentation or anything really to do with displaying reliable and usable text and graphics onto the xmb. For my self its holding back the release of an app that i have that also has a xmb plugin while i can write prx i cant display what i want and it makes it pretty much useless |
|
| Back to top |
|
 |
Anissian
Joined: 26 Jan 2007 Posts: 16
|
Posted: Wed Mar 07, 2007 11:43 pm Post subject: |
|
|
| reefbarman wrote: | | there is not much documentation or anything really to do with displaying reliable and usable text and graphics onto the xmb... |
Let me add that I share the same concerns. It is not something I have played a lot with, but I agree that the idea of e.g. having a firmware plugin that when the user presses a key combo the plugin displays a (graphical) window menu such as an overlay with alpha-blending is something I was planning to experiment with, and opens a lot of possibilities to customize and extend custom firwares.
Unfortunately, I am not sure where to start. Some hints and "proof of concepts" (like if it is a "modal-dialog"-like overlay it may be possible to capture the screen from VRAM and draw the overlay with blending) I am aware of seem to imply that this would require low level access.
Mine is not a very useful post, just adding that I've been following the thread in case a framework, proof of concept, prototype or sample (e.g. a user presses L and a circle is drawn in the screen) to do graphical layers/overlays in the XMB by means of plugins appears and it would be welcome :o) |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Thu Mar 08, 2007 1:37 pm Post subject: |
|
|
| Anissian wrote: | | reefbarman wrote: | | there is not much documentation or anything really to do with displaying reliable and usable text and graphics onto the xmb... |
Let me add that I share the same concerns. It is not something I have played a lot with, but I agree that the idea of e.g. having a firmware plugin that when the user presses a key combo the plugin displays a (graphical) window menu such as an overlay with alpha-blending is something I was planning to experiment with, and opens a lot of possibilities to customize and extend custom firwares.
Unfortunately, I am not sure where to start. Some hints and "proof of concepts" (like if it is a "modal-dialog"-like overlay it may be possible to capture the screen from VRAM and draw the overlay with blending) I am aware of seem to imply that this would require low level access.
Mine is not a very useful post, just adding that I've been following the thread in case a framework, proof of concept, prototype or sample (e.g. a user presses L and a circle is drawn in the screen) to do graphical layers/overlays in the XMB by means of plugins appears and it would be welcome :o) |
actually you have given me idea with talking about overlays, i hadn't thought of doing it that way before, but i use a 2d graphics library called OSlib to do alot of my graphical displays in my apps, and it has the abilities to grab the screen put it into its own buffer in vram so you can then draw onto the picture and then put it back out to the screen, i might give this a go and if i can get the library to work nice within a prx function i may just be able to get anything to the screen then thanks for the idea |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Fri Mar 09, 2007 11:54 am Post subject: |
|
|
just use the dialog utility of psputility to output text and let psp handle the fonts _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Fri Mar 09, 2007 1:51 pm Post subject: |
|
|
| dot_blank wrote: | | just use the dialog utility of psputility to output text and let psp handle the fonts |
oh excellent i didnt realise there was such a function ill have to give it ago, but i would still like to learn how to write text and graphics directly to the screen as i want to have a pop up box overlay and such over the top of the xmb.
But i think sceUtilityMsgDialogInitStart is not quite what im looking for as i need to be able to define where it is on screen size and colour
thanks though dot |
|
| Back to top |
|
 |
|