|
Bad and good news...
After trying it really hard, i'm here again to ask. I'm sorry if i bother too much, but i think i can learn a lot about coding on Saturn, and i'm really confident that i'm learning a lot.
Well, here we go.
Some result happened, because what was a nightmare of red lines and corrupt display, now is a clear hi-res image of what i want. But there's a problem.
The image is not shown full , and the part of the image that is shown is shown twice, one down the other. Ok, here i post the result:

RockinB and Amon, first of all, thanks to both of you...
Well, about what Rockinb said to me,,, i used the function slScrCycleSet() that i saw at the Atlas sourcecode, and i did that because i didn't find slScrCycleSet function on the VDP2 manual (is the one that is on the web "eatsushi"??). Well, in that case, i would love to know where i can find the exact info or more examples on how to use it, i'm not an expert coder and i need a little bit of guide at first..
The buffer size of the image is correct, i put it on the dehuff definition. And the resolution i used is:
slInitSystem(TV_704x480, NULL, 1);
slSetSprTVMode(TV_352x240);
Then, here are some aspects that i would want to discuss about this..
1. I saw on the eatsushi webpage vdp2 documentation that to put saturn on hi-res mode, both NBG0 and NBG1 should work al together, with the same preference. Then i put this on the init_VDP2:
slPriorityNbg0(7);
slPriorityNbg1(7);
The image is 704x480x6bits. And is correctly converted to a bin file.
I have choosen the next parameters:
slBitMapNbg1(COL_TYPE_32768, BM_1024x512, (void *)VDP2_VRAM_A0);
slBitMapNbg0(COL_TYPE_32768, BM_1024x512, (void *)VDP2_VRAM_A0);
plus:...
slScrCycleSet(0xe55eeeee, 0xe55eeeee, 0x055eeeee, 0x144eeeee); --> as the slScrCycleSet setup.
Well, would be great to know if i failed on that one haha! as i just took it from the Astal sourcecode.
Then, i'm a little bit lost refering to where can come the mistake., i would appreciate very much your help here guys, and i would like to apologize about my english, i'm currently at work and can't put more time on it by now.
Thanks in advance. |