![]() |
Forum Index : Microcontroller and PC projects : CMM2 Mandelbrot Explorer
![]() ![]() |
|||||
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Thanks. Barring any screw-ups, and assuming there is new content to include, I'm only going to be publishing a new version of the Welcome Tape evey 7-10 days so there is no hurry. Tom Edited 2020-09-11 22:04 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
CMM2 Mandelbrot Explorer V1.2 This is likely the "final" version of this program unless someone finds major bugs! I changed the hot keys on the File Menu and Help Screen per thwill's suggestions. I added a pure MMBasic version of the Mandelbrot subroutine to the bottom of the program. It's sloooooowwwwwww, about 270,000 X slower than the CSUB. It's nice for educational and experimental purposes. You can switch between the MMBasic and CSUB versions by renaming them. The CSUB is the default Now responds to commands from both Inkey$ and Keydown() So it will respond to keys from both the serial console (i.e. TeraTerm) and a USB keyboard and (Nunchuk or Wii Classic) MandelbrotEXP.zip -Carl |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Now included in the Welcome Tape v0.3.1. I had to make a couple of fixes: - In the latest beta firmware `If Sprite(X,1) > -1` is no longer valid for detecting whether a sprite is hidden or not, you should apparently use `If Sprite(X,1) <> 10000`. To maintain compatibility with both I changed the code to track the cursor visibility in a variable. - The cursor was not being drawn/updated when it was moved with via the serial console. The updated version can be found here: https://github.com/thwill1000/cmm2-welcome/blob/master/mandelbrot-explorer/MandelbrotEXP.bas but will need some simple/easy changes to run outside of the Welcome Tape infrastructure. Thanks for the code, Tom Edited 2020-09-16 23:04 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
Thanks thwill, I did test the cursor movement with the serial console, I'll check out your updates. I'm a couple of beta versions behind and I wasn't aware that there were "breaking" changes! -Carl |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
Not really a breaking change but actually a bug fix. The code didn't do what the manual said and the manual in this case was correct. |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
Here is Version 1.3 of the Mandelbrot Explorer I merged thwill's patches with my latest tweaks. CSUB now renders the Base image in under 1 second on a 400MHz CMM2 due to changes in compiler and linker/library settings. MandelbrotEXP.zip -Carl |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
Here is Version 1.4 of the ORIGINAL (8bit color) Mandelbrot Explorer. Made incremental speed improvements in the rendering. Added zooming enhancements per VegiPete suggestion. Now it copies an enlarged version of the zoom area before rendering the new pixels. Added Mouse support. I consider this preliminary. The Mouse moves the cursor and the 3 buttons work. The scroll wheel and relative positioning doesn't work on the HobbyTronic module and isn't supported by MMBasic. If the HobbyTronic issues can't be resolved, I may do a version that supports more features with the PS2-Arduino interface using direct I2C functions. MandelbrotEXP.zip -Carl |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
Hi Carl, this is impressive! Many Thanks! ![]() But after 5x zoom it crashes. ![]() I hope this is not due to my system (CMM2 400Mhz/V5.05.06exp1). Kind regards Michael EDIT Please ignore until others confirm. Edited 2020-10-28 02:05 by twofingers causality ≠correlation ≠coincidence |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |