newbie ! newbie !
newbie ! newbie !
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 !
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 !
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 :)
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 :)
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
cool, the deadline for the next minidemo compo at www.thethirdcreation.net is May the 1st 23:59 GMT, code code code :)
Kung VU
newbie ! newbie !
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 :)

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 :)
newbie ! newbie !
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 :)
anyway, coding on the ps2 is very exciting, and I didn't had this sensation since a long time :)
newbie ! newbie !
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");
}
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");
}
- terry_bogard_svc2
- Posts: 7
- Joined: Sun May 02, 2004 3:45 am
- terry_bogard_svc2
- Posts: 7
- Joined: Sun May 02, 2004 3:45 am
newbie ! newbie !
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.
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.