newbie ! newbie !

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

newbie ! newbie !

Post by evilo »

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 !
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

Post by evilo »

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 :)
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

cool, the deadline for the next minidemo compo at www.thethirdcreation.net is May the 1st 23:59 GMT, code code code :)
Kung VU
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

newbie ! newbie !

Post by evilo »

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 :)

Image
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Nifty. Keep up the pace. Enter a demo someday. :)
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

newbie ! newbie !

Post by evilo »

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 :)
Raizor
Posts: 60
Joined: Sun Jan 18, 2004 12:27 am
Location: out there

Post by Raizor »

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

raizor
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

newbie ! newbie !

Post by evilo »

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");
}
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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...
User avatar
terry_bogard_svc2
Posts: 7
Joined: Sun May 02, 2004 3:45 am

Post by terry_bogard_svc2 »

wich tutorial?? where?? i've been looking for tutorial on the website but havent found any on the tutorial section about setting the environment
User avatar
terry_bogard_svc2
Posts: 7
Joined: Sun May 02, 2004 3:45 am

Post by terry_bogard_svc2 »

ok i've set cygwin, but when i try to launch it says "bash is not recognized".....any help here???
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

newbie ! newbie !

Post by evilo »

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.
Post Reply