KevKelley Posted May 5, 2020 Share Posted May 5, 2020 After reading some of the comments and threads about splitting the color of a scanline, and after reading RT's site, I was curious if it is possible in bB to use multiple vblanks to split the colors of a play field. So the desired effect would probably be something like this: The playfield would be something like this: Playfield: XXXXXXXXX X..........x.....X X.......x........X X....x...........X XXXXXXXXX Using vblanks, basically make the border a different color and any pfpixel inside the border be a different color. I had read how to use it but my understanding was that in bB I could only use it once and it would essentially force the entire playfield a different color during the loop. Not sure if this is correct but was interested in learning more. If this is something more complex involving assembly, I may have to put off playing around with it but I thought it would be interesting, especially when seeing the amazing effects like in the Stay Frosty menu. Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/ Share on other sites More sharing options...
KevKelley Posted May 5, 2020 Author Share Posted May 5, 2020 I guess my main question would be how to time it's use or if it's even practical? Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4529477 Share on other sites More sharing options...
orange808 Posted May 5, 2020 Share Posted May 5, 2020 You can "interlace" your playfield. Have your colors alternate between even and odd scanlines each frame. I have a stage select screen designed that I never added to Tron that uses it to get all four colors. 1 Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4529509 Share on other sites More sharing options...
KevKelley Posted May 5, 2020 Author Share Posted May 5, 2020 59 minutes ago, orange808 said: You can "interlace" your playfield. Have your colors alternate between even and odd scanlines each frame. I have a stage select screen designed that I never added to Tron that uses it to get all four colors. By doing that, wouldn't it have a somewhat of a flicker effect? Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4529554 Share on other sites More sharing options...
orange808 Posted May 5, 2020 Share Posted May 5, 2020 2 hours ago, KevKelley said: By doing that, wouldn't it have a somewhat of a flicker effect? Yep, but it gets you two colors on a scanline without modding the kernel. Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4529645 Share on other sites More sharing options...
KevKelley Posted May 5, 2020 Author Share Posted May 5, 2020 How would you determine where the second color would start? Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4529742 Share on other sites More sharing options...
orange808 Posted May 5, 2020 Share Posted May 5, 2020 4 hours ago, KevKelley said: How would you determine where the second color would start? Make two playfield maps and two color profiles. Alternate between them at run time. Playfield frame one: xxx... red line ...xxx blue line xxx... red line .x.x.x blue line Playfield frame two: ...xxx blue line xxx... red line ...xxx blue line x.x.x. red line Result: RRRBBB RRRBBB RRRBBB RBRBRB Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4529894 Share on other sites More sharing options...
RevEng Posted May 5, 2020 Share Posted May 5, 2020 Depending on the kernel you're using, you might be able to use CTRLPF to set either side of the playfield to P0 and P1 colors. It sounds like that might meet your requirements. [edit] nope. Reading your original post again, sounds like you want just the border to be a different color. You'll need a custom kernel, or flicker. Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4529921 Share on other sites More sharing options...
KevKelley Posted May 5, 2020 Author Share Posted May 5, 2020 I see what you were saying. Since I use pfpixels in the middle,bi couldn't see a way to make it work (except with a custom kernel). Unfortunately I am not that far along in my learning to do so... But it seems like an interesting project to undertake. Currently I will just play with background colors for now to break up the monotony. Quote Link to comment https://forums.atariage.com/topic/306398-multiple-vblank-in-bb/#findComment-4530082 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.