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 

newbie ! newbie !

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



Joined: 22 Apr 2004
Posts: 230

PostPosted: Thu Apr 22, 2004 9:10 pm    Post subject: newbie ! newbie ! Reply with quote

I'm new to this forum, so HELLO to everybody !!

Then as I'm a good little newbie, I will start directly with crappy questions ! I just bought the network adapter ( :shock: ), and I'd like to have your advice on the best way to quickly get the dev environment up and ready (I'm running XP).

I must admit that betweem, *nix, W32, cygwin, etc.. and all relative setup guide, I don't know where to start, and even which one to choose...

Sorry if the question has already been posted (made a quick search, before but didn't find out).

Can wait to have some crappy code running on the beast :)

Thank you !

PS: sorry for my english !
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Sat Apr 24, 2004 6:28 am    Post subject: Reply with quote

Ok guys...
I've just finished setting up the enviroment :)

w32 + cygwin and the fabulous tutorial on the site 8)

almost easy, just need to follow the step by step instructions :oops:

I've got everything running, and sucessfully recompiled and executed the stars demo (on the ps2) !!
I know I know, but it's already a beginning :)

so, let's practice now :twisted:

cu later :)
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sat Apr 24, 2004 6:56 am    Post subject: Reply with quote

cool, the deadline for the next minidemo compo at www.thethirdcreation.net is May the 1st 23:59 GMT, code code code :)
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Wed May 05, 2004 3:23 am    Post subject: newbie ! newbie ! Reply with quote

Hi guys !
just to say that I've my first crappy hugly code running !!
I know it's a stupid fractal, but what an emotion when I ran it the first time one the ps2 :)

Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed May 05, 2004 3:43 am    Post subject: Reply with quote

Nifty. Keep up the pace. Enter a demo someday. :)
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Thu May 06, 2004 2:15 am    Post subject: newbie ! newbie ! Reply with quote

I will ! but I need some more practice before :)
anyway, coding on the ps2 is very exciting, and I didn't had this sensation since a long time :)
Back to top
View user's profile Send private message Visit poster's website
Raizor



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Thu May 06, 2004 3:30 am    Post subject: Reply with quote

Have you rendered this fractal from scratch on PS2 or is a bitmap?

raizor
Back to top
View user's profile Send private message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Thu May 06, 2004 5:19 am    Post subject: newbie ! newbie ! Reply with quote

from scratch of course !!!!
and honnestly I wasn't so impressed about the rendering speed... (but my algo si not also so optimized!!!) see function below if you are interested

you understand now my question on the palette ?


void Julia (unsigned int k , /*Reiterations Nb*/
float Cx , /*Real Part */
float Cy , /*imaginary Part */
int Xmax , /*cf Gfx mode. */
int Ymax , /*cf Gfx mode */
unsigned char Cmax /* Color nb*/)
{

float e,f,g,h,x,y,u,v,w,n;
int r,s;
uint8 t,p;

e=defe;f=deff;g=defg;h=defh;

r=0;
printf("start drawing\n");
while ((r<=Xmax))
{
s=0;
x=e+(g-e)*r/Xmax ;
t=firstcol;
while (s<=Ymax)
{
t=firstcol;
y=f+(h-f)*s/Ymax ;
u=x;v=y;n=0;
do
{
w=(u*u) - (v*v) + Cx ;
v=2 * u * v + Cy ;
u=w ;
n+=1;
t+=4;
if (t == (Cmax)) t = firstcol;
}while ((n!=k)&&(((u*u)+(v*v))<4));

if (n==k)
p=t=0;
else
p=60;

g2_set_color((uint8)t,
(uint8)0,
(uint8)p);
g2_put_pixel((uint16)r,
(uint16)s);
//printf ("drawing x:%d y:%d color:%d\n",r,s,t);
s++;
}
r++;
}
printf("fractal finished\n");
}
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu May 06, 2004 6:00 am    Post subject: Reply with quote

The framebuffer isn't palettized, so you can't really do weird tricks like that. You could render your fractal to a bitmap once and just vary the clut you send to the GS if you wanted, I guess...
Back to top
View user's profile Send private message Visit poster's website
terry_bogard_svc2



Joined: 02 May 2004
Posts: 7

PostPosted: Thu May 06, 2004 6:16 am    Post subject: Reply with quote

wich tutorial?? where?? i've been looking for tutorial on the website but havent found any on the tutorial section about setting the environment
Back to top
View user's profile Send private message
terry_bogard_svc2



Joined: 02 May 2004
Posts: 7

PostPosted: Thu May 06, 2004 6:51 am    Post subject: Reply with quote

ok i've set cygwin, but when i try to launch it says "bash is not recognized".....any help here???
Back to top
View user's profile Send private message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Thu May 06, 2004 9:11 am    Post subject: newbie ! newbie ! Reply with quote

well, if you are already blocked on installing cygwin.. you won't go so far :)

try reinstalling the base component, and be sure to have installed the bash pkg!

concerning the tutorial they are very clear, just be carefull about installation path, some parts are setting up compilers in /usr/local/ps2dev while other /usr/ps2dev, so you will have to modify some little things to have it correct.
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 -> PS2 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