Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:11 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2 Mandelbrot Explorer

     Page 3 of 3    
Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:03pm 11 Sep 2020
Copy link to clipboard 
Print this post

  Sasquatch said  These are good suggestions, I will incorporate into the next version.  I think I'll wait a few days in case there is more feedback or bug reports from users before I post a new version.


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 States
Posts: 377
Posted: 02:15am 13 Sep 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4311
Posted: 12:52pm 16 Sep 2020
Copy link to clipboard 
Print this post

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 States
Posts: 377
Posted: 02:14pm 16 Sep 2020
Copy link to clipboard 
Print this post

  thwill said  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


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 Kingdom
Posts: 10315
Posted: 03:41pm 16 Sep 2020
Copy link to clipboard 
Print this post

  Quote  'm a couple of beta versions behind and I wasn't aware that there were "breaking" changes!


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 States
Posts: 377
Posted: 09:16pm 20 Sep 2020
Copy link to clipboard 
Print this post

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 States
Posts: 377
Posted: 01:20am 27 Oct 2020
Copy link to clipboard 
Print this post

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: Germany
Posts: 1593
Posted: 01:54am 27 Oct 2020
Copy link to clipboard 
Print this post

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
 
     Page 3 of 3    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025