| View previous topic :: View next topic |
| Author |
Message |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Thu Apr 22, 2004 9:10 pm Post subject: 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 ! |
|
| Back to top |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Sat Apr 24, 2004 6:28 am Post subject: |
|
|
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 |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Sat Apr 24, 2004 6:56 am Post subject: |
|
|
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 |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Wed May 05, 2004 3:23 am Post subject: 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 :)
 |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Wed May 05, 2004 3:43 am Post subject: |
|
|
| Nifty. Keep up the pace. Enter a demo someday. :) |
|
| Back to top |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Thu May 06, 2004 2:15 am Post subject: 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 :) |
|
| Back to top |
|
 |
Raizor
Joined: 18 Jan 2004 Posts: 60 Location: out there
|
Posted: Thu May 06, 2004 3:30 am Post subject: |
|
|
Have you rendered this fractal from scratch on PS2 or is a bitmap?
raizor |
|
| Back to top |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Thu May 06, 2004 5:19 am Post subject: 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");
} |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu May 06, 2004 6:00 am Post subject: |
|
|
| 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 |
|
 |
terry_bogard_svc2

Joined: 02 May 2004 Posts: 7
|
Posted: Thu May 06, 2004 6:16 am Post subject: |
|
|
| 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 |
|
 |
terry_bogard_svc2

Joined: 02 May 2004 Posts: 7
|
Posted: Thu May 06, 2004 6:51 am Post subject: |
|
|
| ok i've set cygwin, but when i try to launch it says "bash is not recognized".....any help here??? |
|
| Back to top |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Thu May 06, 2004 9:11 am Post subject: 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. |
|
| Back to top |
|
 |
|