forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I have some idea about programming graphic, but...

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Elod



Joined: 29 Jul 2005
Posts: 9

PostPosted: Sat Mar 24, 2007 3:26 am    Post subject: I have some idea about programming graphic, but... Reply with quote

Hi, everybody! I have some idea about programming graphic, but i don't know that will have any problem or not.

1. Draw several same scene with different detail (Bump, color, light and shade, etc.) in different secne buffer

2. Then use VFPU to compute (compute it in one pixel by one pixel) each buffer mix in one scene buffer, then print that scene buffer out.

Does that idea have problem or not?

Why i think that idea? i want to program something same as PC pixel shader.

If that idea is no problem, then do it will pay many time to finish it? It will make FPS lower?
_________________
My english is poor~~
=.=
Back to top
View user's profile Send private message MSN Messenger
Bytrix



Joined: 14 Sep 2005
Posts: 72
Location: England

PostPosted: Sat Mar 24, 2007 9:47 am    Post subject: Reply with quote

That would be extremely slow on the PSPs hardware. While the PSP is very good for most uses it does lack some features that are common in modern graphics hardware of PCs but to be honest features like that would only get in the way of creating good gameplay in portable games.
Back to top
View user's profile Send private message Send e-mail
rapso



Joined: 28 Mar 2005
Posts: 147

PostPosted: Sat Mar 24, 2007 11:07 am    Post subject: Reply with quote

somethin similar is called multipass rendering, it's very common sind the quake2 engine. It's working for me kinda well and I've still smooth 60hz.
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Sat Mar 24, 2007 7:37 pm    Post subject: Reply with quote

Why would you want to use the VFPU to compute the composite image? Use the GU and use it's hardware blending FFS! You spare your CPU from loading/storing millions of values from/to VRAM and converting each from RGBA8888 to float color format and back. There's no way this could ever be fast!
Read up on multipass rendering as my preposter already mentioned. It's the common way to do things like that on single-texture hardware.

EDIT: Btw, the only thing to make something along the lines of a shader for PSP would be a vertex shader, by writing a shader code -> VFPU compiler and running that shader before sending the vertex data to GE. However, since most interesting stuff is achieved by a pixel shader, this is not so tempting.
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group