Page 1 of 1

newbie ! newbie !

Posted: Thu Apr 22, 2004 9:10 pm
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 !

Posted: Sat Apr 24, 2004 6:28 am
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 :)

Posted: Sat Apr 24, 2004 6:56 am
by blackdroid
cool, the deadline for the next minidemo compo at www.thethirdcreation.net is May the 1st 23:59 GMT, code code code :)

newbie ! newbie !

Posted: Wed May 05, 2004 3:23 am
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

Posted: Wed May 05, 2004 3:43 am
by ooPo
Nifty. Keep up the pace. Enter a demo someday. :)

newbie ! newbie !

Posted: Thu May 06, 2004 2:15 am
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 :)

Posted: Thu May 06, 2004 3:30 am
by Raizor
Have you rendered this fractal from scratch on PS2 or is a bitmap?

raizor

newbie ! newbie !

Posted: Thu May 06, 2004 5:19 am
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");
}

Posted: Thu May 06, 2004 6:00 am
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...

Posted: Thu May 06, 2004 6:16 am
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

Posted: Thu May 06, 2004 6:51 am
by terry_bogard_svc2
ok i've set cygwin, but when i try to launch it says "bash is not recognized".....any help here???

newbie ! newbie !

Posted: Thu May 06, 2004 9:11 am
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.