Raphael
Global Moderator
Hero Member
Karma: +230/-10
Offline
Posts: 1431
193700.11 points View InventorySend Money to Raphael
|
 |
« on: June 17, 2007, 01:15:27 PM » |
|
|
|
|
|
« Last Edit: October 25, 2007, 10:15:20 AM by Raphael »
|
Logged
|
|
|
|
|
|
|
|
rocklee123
The lous of Konoha bloom twice
Jr. Member

Karma: +2/-21
Offline
Posts: 84
5447.41 points View InventorySend Money to rocklee123
|
 |
« Reply #2 on: June 18, 2007, 11:11:38 AM » |
|
i have a request if you raphael have anything of the sort, im very interested in learning the GU for 2-d polygons to start, and the tuts stickied in this section on the GU are amazing, but ive strived hard to no avail to master it, so to aid me i downloaded the source code for Luminex, a game rumored very great for GU learning, and when i looked at it, i was suprised to not only see many things in the tut on this site that seemed so unnesesary that Luminex did in no time...my question is do you have a thread that might show GU learning along this line of simplicity... Luminex source code available for DL. http://www.psp-hacks.com/download.php?id=717look at some of the functions to draw shapes...i think eventually i will get on with the tut on this sites GU learning but until then i think if someone could explain this kind to me id be well on my way...
|
|
|
|
« Last Edit: June 18, 2007, 11:41:20 AM by rocklee123 »
|
Logged
|
|
|
|
Raphael
Global Moderator
Hero Member
Karma: +230/-10
Offline
Posts: 1431
193700.11 points View InventorySend Money to Raphael
|
 |
« Reply #3 on: June 18, 2007, 11:47:00 AM » |
|
only see many things in the tut on this site that seemed so unnesesary What tut are you referring to? Yeldarb's tutorial with the graphics.c? Or the converted NeHe tutorials from the wiki? Luminex also uses graphics.c and just expands the drawing functionality with a few primitives (though in a very inefficient way). So I don't really see what it does better then the tutorials here. Maybe you also care to explain what kind of stuff you think is "unnecessary" in the tutorials? Just asking for "can someone explain GU for 2d to me" won't work, because it's not explained in one sentence or one even one post. So unless you have specific questions, I doubt we can help you apart from referring to reading the tutorials and look at other source codes that make better use of the GU (OSlib).
|
|
|
|
|
Logged
|
|
|
|
rocklee123
The lous of Konoha bloom twice
Jr. Member

Karma: +2/-21
Offline
Posts: 84
5447.41 points View InventorySend Money to rocklee123
|
 |
« Reply #4 on: June 18, 2007, 09:14:45 PM » |
|
Just asking for "can someone explain GU for 2d to me" won't work, because it's not explained in one sentence or one even one post. ok ok i'll give you that, ands thats my bad, what im really trying to say is are there any threads i should read up on first before I take the GU tuts here... http://www.psp-programming.com/forums/index.php?action=globalAnnouncements;id=1or do you have a thread for how to simply draw a shape into memory then overlay a texture onto that shape using just the GU, skip all the graphics.h functions... sorry again, it was rather poorly phrased on what i really wanted, so i hope this helps a bit.
|
|
|
|
|
Logged
|
|
|
|
Raphael
Global Moderator
Hero Member
Karma: +230/-10
Offline
Posts: 1431
193700.11 points View InventorySend Money to Raphael
|
 |
« Reply #5 on: June 19, 2007, 05:19:58 AM » |
|
or do you have a thread for how to simply draw a shape into memory then overlay a texture onto that shape using just the GU That sentence suggests me, you should first take a read on how hardware rendered computer graphics (polygon rasterization) really work. Unless you just worded it badly again, it sounds like you think you first have to draw the shape yourself and then tell GU that it should apply a texture onto that shape. You need to know how polygons are defined by vertices. Also, notice that a graphics chip is only able to draw straight lines and (filled) triangles. So you need to be able to make up your shapes from those primitives. If you don't want to learn that (which is a possible way), then you are forced to use other people's libraries that already provide you with functions that draw your shapes (OSLib/vLib/graphics.c). skip all the graphics.h functions... I'm still unsure about that point, because I still don't know what you mean by "all the". Is it the init function? The guStart/End functions? Anyway, you are not forced to use graphics.h for anything. It's just a (more or less) convenient way to setup the GU and control it with simple function calls (it's a wrapper for sceGu). You can easily write your own functions that do the same or alternatively, just use plain sceGu* function calls in your application to achieve the same (if you understand how it works).
|
|
|
|
|
Logged
|
|
|
|
rocklee123
The lous of Konoha bloom twice
Jr. Member

Karma: +2/-21
Offline
Posts: 84
5447.41 points View InventorySend Money to rocklee123
|
 |
« Reply #6 on: June 19, 2007, 04:33:09 PM » |
|
 the whole triangle based thing was new to me, as was all things related to gu as im just starting to learn it... i suppose i will just have to pay more attention to my mistakes when taking the GU tuts on this site so that i may better undrstand what i am doing and pose better questions for you guys so that i may learn a tad better. This thread was a great idea by the way and i did learn a few interesting things, all i can say now is simply await my rather noobish GU questions in the forums, as trial and error is what i will be working on starting today, thnx again, some karma added for your time Raphael...
|
|
|
|
|
Logged
|
|
|
|
bronxbomber92
Give miinaturvat Points!
All-Around Dev
Hero Member
Karma: +16/-2
Offline
Posts: 663
3689.59 points View InventorySend Money to bronxbomber92
|
 |
« Reply #7 on: June 23, 2007, 06:19:27 AM » |
|
Nice post Raphael.. I just have one problem with it... You're posting all my "nooby" threads!  Seriously, I'm glad you posted. Some great reference material.
|
|
|
|
|
Logged
|
|
|
|
Raphael
Global Moderator
Hero Member
Karma: +230/-10
Offline
Posts: 1431
193700.11 points View InventorySend Money to Raphael
|
 |
« Reply #8 on: June 23, 2007, 07:05:29 AM » |
|
We all were noobs once  The only question is if the things we asked were really helpful and teached us (and maybe others - even the one that answered) something. And I suppose all of the threads listed to be of such nature, so nothing to be ashamed of 
|
|
|
|
|
Logged
|
|
|
|
bronxbomber92
Give miinaturvat Points!
All-Around Dev
Hero Member
Karma: +16/-2
Offline
Posts: 663
3689.59 points View InventorySend Money to bronxbomber92
|
 |
« Reply #9 on: June 23, 2007, 07:28:33 AM » |
|
What I noticed, is that at the time, I never found some people's post very helpful, but now actually knowing it, I see that what I needed to know was straight in front of me and I just needed to elaborate on it.
|
|
|
|
|
Logged
|
|
|
|
Vincent
Mudkips
C/C++ Developer
Hero Member
Karma: +76/-2
Offline
Posts: 1384
9999999.99 points View InventorySend Money to Vincent
Me and my 'Vette
|
 |
« Reply #10 on: June 24, 2007, 05:12:40 PM » |
|
I was hoping some one would post this! I see a few of mine are in there. I always wanted to see an 'article', or at least a set of posts that would help other's with their questions. This is a good start!
|
|
|
|
|
Logged
|
|
|
|
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
Karma: +32/-2
Offline
Posts: 1161
934.18 points View InventorySend Money to nathan42100
|
 |
« Reply #11 on: June 24, 2007, 06:58:04 PM » |
|
Interesting idea...
|
|
|
|
|
Logged
|
 All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. dn ʎɐʍ sıɥʇ Help support my computer projects! 
|
|
|
|
|
psp35
Newbie
Karma: +0/-0
Offline
Posts: 13
791.75 points View InventorySend Money to psp35
|
 |
« Reply #13 on: July 11, 2007, 01:10:19 PM » |
|
does anyone knoe what this means?: error:expected declaration or statement at end of imput... so what should i do?
|
|
|
|
|
Logged
|
|
|
|
Raphael
Global Moderator
Hero Member
Karma: +230/-10
Offline
Posts: 1431
193700.11 points View InventorySend Money to Raphael
|
 |
« Reply #14 on: July 12, 2007, 02:43:26 AM » |
|
@Abhoth: I added the thread, thanks  @psp35: This is NOT a help thread. Apart from that the error description itself won't help much without the exact line of code that gives the error.
|
|
|
|
|
Logged
|
|
|
|
|