Heaven/TQA Posted November 14, 2016 Author Share Posted November 14, 2016 (edited) the cube part renderes into a sprite which then gets put on screen (3 sprites... 4x, 2x and 1x) to get the desired effect. so no palette is touched. so in theory I have no idea what causes the glitch except that rendering those 3 sprites take more time than 60 Hz? and yeah. no double buffer if I remember correct as speedcode takes too much memory. Edited November 14, 2016 by Heaven/TQA Quote Link to comment Share on other sites More sharing options...
+karri Posted November 14, 2016 Share Posted November 14, 2016 I believe there is two different problems. 1) The palette effect causes Lynx I to turn to a black screen when the sequence with the ape starts. 2) The cube part crashes on Lynx 2 and I have no idea ow why. The lack of double buffer explains the visual effects on the cube scene but not the reason of the crash. What I would like to try out is the code without the fade before the apes to see if Lynx would also crash. Now the Lynx I goes on to the end with a black screen from the starting of the apes to the starting of the credits. Would it also crash if it was drawing the cubes? 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 14, 2016 Author Share Posted November 14, 2016 standalone version... nothing changed to the release... so no palette changes (that's why its green). does this work without glitches? cube3.zip 1 Quote Link to comment Share on other sites More sharing options...
sage Posted November 14, 2016 Share Posted November 14, 2016 your irc vectors and the vbl flag share the same memory location? Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 14, 2016 Author Share Posted November 14, 2016 Do they? I guess not... Quote Link to comment Share on other sites More sharing options...
+karri Posted November 14, 2016 Share Posted November 14, 2016 The Lynx 1 did just show a black screen. The Lynx 2 showed a huge white rectangle that rotated on a black screen. Mednafen showed 3 green squares rotating. No crashes. I created a lnx file as I could not find my upload cable. base.zip 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 14, 2016 Author Share Posted November 14, 2016 But if so one thing which as well drive me nuts is this ZP Makro Auto incrementing ZP Location... Never new why you need such Makro in assembler. Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 14, 2016 Author Share Posted November 14, 2016 Karri that's mainly (assume here) because I don't unit the chipset (see source) but another example that emus are far behind what other platforms offer in terms of accuracy. Quote Link to comment Share on other sites More sharing options...
+karri Posted November 14, 2016 Share Posted November 14, 2016 (edited) Yes, of course. I used my own 52 byte bootloader that does not initialize Suzy or Mikey. With a stock downloader showing a title picture you have some colours already. Here is a small whipped up o-file 2 lnx-file recipe. head --bytes=271 nothing.lnx > base.lnx head --bytes=6 cube3.o > hdr.bll tail --bytes=3 hdr.bll | head --bytes=1 >> base.lnx tail --bytes=4 hdr.bll | head --bytes=1 >> base.lnx tail --bytes=1 hdr.bll | head --bytes=1 >> base.lnx tail --bytes=2 hdr.bll | head --bytes=1 >> base.lnx size=`stat --printf="%s" cube3.o` data=$(expr $size - 10) tail --bytes=$data cube3.o >> base.lnx The "nothing.lnx" file is any recent cart produced with cc65. I created it from this: #include <stdio.h> void main() {} cl65 -t lynx -o nothing.lnx main.c Edited November 14, 2016 by karri Quote Link to comment Share on other sites More sharing options...
sage Posted November 14, 2016 Share Posted November 14, 2016 (edited) But if so one thing which as well drive me nuts is this ZP Makro Auto incrementing ZP Location... Never new why you need such Makro in assembler. Matter of taste. But mixing fixed addresses together with ZP macros is definitely a bad idea... The overlap, well If I check your code you assign them the same offset!? .o to .lyx: http://lynxdev.atari.org/lynx/blog/o2lyx_hack.xhtml Edited November 14, 2016 by sage Quote Link to comment Share on other sites More sharing options...
Stun Runner 87 Posted November 15, 2016 Share Posted November 15, 2016 (edited) How can I get this on cart?Very good 3-D effect.? Edited November 15, 2016 by Stun Runner 87 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 15, 2016 Author Share Posted November 15, 2016 Yeah bad idea but most of the BSS include files use that and on c64, a8 you use fixed ones. So reusing code gives some trouble 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 21, 2016 Author Share Posted November 21, 2016 better recording with OpenEMU/Monosnap on OSX. Quote Link to comment Share on other sites More sharing options...
Level42 Posted December 7, 2016 Share Posted December 7, 2016 The Lynx 1 did just show a black screen. The Lynx 2 showed a huge white rectangle that rotated on a black screen. Mednafen showed 3 green squares rotating. No crashes. I created a lnx file as I could not find my upload cable. What is this file ? I get a blank screen... ? Quote Link to comment Share on other sites More sharing options...
+karri Posted December 8, 2016 Share Posted December 8, 2016 We were debugging why the rotating cube fails on the real hardware in some cases. On a Lynx I you really get a blank screen instead of a rotating set of cubes. So the best way is to enjoy this on an emulator. 1 Quote Link to comment Share on other sites More sharing options...
Level42 Posted December 9, 2016 Share Posted December 9, 2016 The cubes work fine on my Lynx I but is does show some flickering at the top but I thought that might be the McWill,screen ? Quote Link to comment Share on other sites More sharing options...
Level42 Posted December 9, 2016 Share Posted December 9, 2016 Video.... Quote Link to comment Share on other sites More sharing options...
Level42 Posted December 9, 2016 Share Posted December 9, 2016 Next try...... 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 13, 2016 Author Share Posted December 13, 2016 the flickering has nothing to do with hardware failure etc... its simply my code which runs a little bit slower on real hw than in emu and seems not be in sync on real HW so don't worry... 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 13, 2016 Author Share Posted December 13, 2016 the cube is rendering without using double buffer. Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted December 27, 2016 Share Posted December 27, 2016 Your demos are quite impressive. Now if only you guys made a Lynx game with your 65c02 Assembly skills... Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted December 29, 2016 Author Share Posted December 29, 2016 It looks that it shares same skills but coding a game is something complete different imho. Demo is a predictable environment for coder while game depends on the player. Then it's not only about gfx music and code but about fun.... and that's something which needs talent Quote Link to comment 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.