Search found 13 matches

by MaikeruDev
Thu Dec 27, 2007 7:13 am
Forum: PS2 Development
Topic: Framebuffer
Replies: 2
Views: 2400

by MaikeruDev
Wed Nov 07, 2007 9:55 am
Forum: PS2 Development
Topic: fread is not working properly?
Replies: 0
Views: 1491

fread is not working properly?

I noticed that fread function from PS2SDK isn't working properly, when I was trying to read something like that: sample code: unsigned int int_var; unsigned short int sint_var; FILE *some_fd = fopen("some_file_that_have_over_2MB","rb"); fread(&sint_var...
by MaikeruDev
Wed Nov 07, 2007 8:55 am
Forum: PS2 Development
Topic: Using frame buffer as a texture
Replies: 5
Views: 3418

After few days of testing other stuff, I found what was wrong. I just used previous buffer instead of actual, so it wasn't caching or something like that - it was my mistake :). I wrote something like motion-blur, here is a screenshot: http://www.mi-ku.net/ref_images/screen_ok.jpg What my code do in...
by MaikeruDev
Wed Nov 07, 2007 8:38 am
Forum: PS2 Development
Topic: Problem with z buffer
Replies: 6
Views: 4741

Sorry for late, but thanks for hint emoon. I wrote "download texture" and after "screenshot" functions based on Your code and documentation distributed with linux, but using my own object-oriented library that I'm developing.
by MaikeruDev
Tue Oct 23, 2007 12:21 am
Forum: PS2 Development
Topic: Using frame buffer as a texture
Replies: 5
Views: 3418

Probarly You have right. It looks like I was reading from previous cached frame buffer - not actual. This black box is frame buffer of ps2link. In first iteration theres only two triangles with big black box.

Thanks
by MaikeruDev
Mon Oct 22, 2007 11:56 pm
Forum: PS2 Development
Topic: Using frame buffer as a texture
Replies: 5
Views: 3418

It should look like this:
Image
by MaikeruDev
Mon Oct 22, 2007 7:08 am
Forum: PS2 Development
Topic: Using frame buffer as a texture
Replies: 5
Views: 3418

Using frame buffer as a texture

I want use frame buffer as a texture for sprite (lower left corner of screen), but I noticed funny GS behavior: http://www.mi-ku.net/ref_images/screen_01.jpg Screenshot is made in 3rd loop. It also happens when I'm doing: - local to local transmision of actual frame buffer in other place of GS memor...
by MaikeruDev
Thu Sep 13, 2007 6:28 pm
Forum: PS2 Development
Topic: Problem with z buffer
Replies: 6
Views: 4741

I was thinking about it after my post. So I don't know actually how GS draws everything without artifacts when I'm not synchronizing it with FINISH but only with VBLANK.

My result: Image

PS. Check PM
by MaikeruDev
Thu Sep 13, 2007 7:18 am
Forum: PS2 Development
Topic: Problem with z buffer
Replies: 6
Views: 4741

Your description looks correct, the only thing I can think of with the z-buffer is that it is prohibited to set ZTE=0 in TEST, as this can cause a malfunction. I setted ZBUF.ZMSK = 1, TEST.ZTE = 1 and TEST.ZTST = ALWAYS before sending sprite and now everything is OK. You have right that setting ZTE...
by MaikeruDev
Thu Sep 13, 2007 3:36 am
Forum: PS2 Development
Topic: Problem with z buffer
Replies: 6
Views: 4741

Problem with z buffer

I'm developing my own layer over ps2 hardware and I have problem with z-buffer. I wrote code that draw white sprite on entire screen and two triangles over this sprite. But when I swap z values of triangle 1 vertices with triangle 2 I have same effect on the screen. What I'm doing with z buffer in l...
by MaikeruDev
Wed Jul 18, 2007 4:40 am
Forum: PS2 Development
Topic: How to write "enable intc" procedure?
Replies: 4
Views: 2878

Did you know that the syntax of your code is incorrect. - Function pointer declaration need to be done different. Star need to be moved before specifier "func". - Local variable ret is missing in enable_intc. Yes I know. I made this mistakes because i have two computers laptop and "n...
by MaikeruDev
Tue Jul 17, 2007 3:40 am
Forum: PS2 Development
Topic: How to write "enable intc" procedure?
Replies: 4
Views: 2878

Thanks for quick response. When I said that I'm not using PS2SDK I meant using only this code what allows me to compile emtpy main (I know that is not equal to "not using" :) - sorry ). So actually I link libc from PS2SDK (printf sends text to my InLink perfectly) and libkernel - I know th...
by MaikeruDev
Mon Jul 16, 2007 3:46 am
Forum: PS2 Development
Topic: How to write "enable intc" procedure?
Replies: 4
Views: 2878

How to write "enable intc" procedure?

Hello everyone. I'm new in ps2 development, but on start I'm trying to write my own library like ps2sdk - of course I stuck on begining :) Yesterday I setup my developing environment: + laptop + visual studio + my own makefile + ps2sdk linkfile + inlink + network adaptor + ps2 + ps2link - without ps...