Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:30 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 2 of 3    
Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 06:16pm 06 Sep 2020
Copy link to clipboard 
Print this post

It looks like numerical limits to me. I had the depth set at 200. 'Pixels' were becoming huge blocks on the screen. (800x600 mode)

Here is another sample, depth even deeper:
(I notice x and y coords are listed twice.)


Visit Vegipete's *Mite Library for cool programs.
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 06:26pm 06 Sep 2020
Copy link to clipboard 
Print this post

  vegipete said  It looks like numerical limits to me. I had the depth set at 200. 'Pixels' were becoming huge blocks on the screen. (800x600 mode)

Here is another sample, depth even deeper:
(I notice x and y coords are listed twice.)



Interesting!  I wouldn't have thunk it possible.  I guess I've never zoomed in to 1,000,000,000,000,000 X before?  I'll do some more playing with this later.

The coordinates in brackets are for the current view and the second set of X,Y coordinates is for the current cursor position.

Also I just notice that the "C" command key for re-centering on the cursor position never made it to the help screen.  It has been working all along and I will add it to the help screen in the next version.
-Carl
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 08:58pm 06 Sep 2020
Copy link to clipboard 
Print this post

Here is Mandelbrot Explorer V0.98

The Undo Buffer is working (sorry you only get 100 levels of Undo)

The Nunchuk control is now functional

The Zoom in a box cursor is now working

See the Help page for instructions

I made a lot of changes and it's getting quite complex so I expect to find a few rough edges if not bugs in this version


MandelbrotEXP.zip
-Carl
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 04:48pm 07 Sep 2020
Copy link to clipboard 
Print this post

Here is version V0.99

The Nunchuk control is much improved

I made several incremental optimizations in the CSUB, now ~20% faster.

I took a first stab at changing the color mapping, I'm not the best person with colors but I think it looks better!




MandelbrotEXP.zip
-Carl
 
TweakerRay

Senior Member

Joined: 01/08/2020
Location: Germany
Posts: 138
Posted: 09:56pm 07 Sep 2020
Copy link to clipboard 
Print this post

Hi ! Very cool ! I tried it. I had sometimes the feel my keys would be used several times... so is it possible that this is the strange key-repeat some experience with different keyboards ?

But the programm looks really cool. Well done ! I check your new version.

Cheers TweakerRay
http://tweakerray.bandcamp.com
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 10:01pm 07 Sep 2020
Copy link to clipboard 
Print this post

Here is version V1.0

Now has a very BASIC file menu to allow Save/Load of parameter sets.

There are also some sample files included in the .zip file


MandelbrotEXP.zip


I already have plans for an enhanced Version 2 but not this week!
-Carl
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 10:03pm 07 Sep 2020
Copy link to clipboard 
Print this post

  TweakerRay said  Hi ! Very cool ! I tried it. I had sometimes the feel my keys would be used several times... so is it possible that this is the strange key-repeat some experience with different keyboards ?

But the programm looks really cool. Well done ! I check your new version.

Cheers TweakerRay



Thanks TweakerRay!  Yes, there are some reported problems with the keyboard repeating.  I have only seen it happen a few times myself  It seems to happen mostly while zooming In when the rendering time is long.  If I can find a solution I will post an update.
-Carl
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 09:09am 08 Sep 2020
Copy link to clipboard 
Print this post

Hi Carl,

With a bit of luck I'll be composing v0.3 of the Welcome Tape tomorrow.

- Are you still happy for this to be included ? - it seems to have advanced significantly since you first agreed and perhaps you'd prefer to distribute it standalone ?
- Are you happy for it to be included in its current state ? - there will be opportunity to update it in future versions.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 167
Posted: 10:38am 08 Sep 2020
Copy link to clipboard 
Print this post

I'm starting to feel like one of those guys that keeps finding problems with the firmware!

1st the good news. The mandelbrottest version fixed the zoomin issue for me.

2nd, version 1.00 brought it back! I do like what you've done with the color though!!!

Also, in version 1.00, starting with a Wii Classic plugged in, causes the cursor to wander 'south' or to the bottom of the screen. Unplugging fixes...after restart.

Looking really good...especially if the final solution to the keyboard issue can be found!

Steve
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 03:52pm 08 Sep 2020
Copy link to clipboard 
Print this post

  thwill said  Hi Carl,

With a bit of luck I'll be composing v0.3 of the Welcome Tape tomorrow.

- Are you still happy for this to be included ? - it seems to have advanced significantly since you first agreed and perhaps you'd prefer to distribute it standalone ?
- Are you happy for it to be included in its current state ? - there will be opportunity to update it in future versions.

Best wishes,

Tom


Yes! You can include the Mandelbrot Explorer in the welcome tape.  I don't really care how it is distributed, I just hope someone enjoys it!  There are still some potential issues with keyboard control, worse on some systems than others.  I think we are nearing a solution.
-Carl
 
thwill

Guru

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

  Sasquatch said  ... Yes! You can include the Mandelbrot Explorer in the welcome tape.  I don't really care how it is distributed, I just hope someone enjoys it! ...


Thanks, that's very generous of you. I'll see what I can do about making it happen tomorrow.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 03:56pm 08 Sep 2020
Copy link to clipboard 
Print this post

  yock1960 said  I'm starting to feel like one of those guys that keeps finding problems with the firmware!

1st the good news. The mandelbrottest version fixed the zoomin issue for me.

2nd, version 1.00 brought it back! I do like what you've done with the color though!!!

Also, in version 1.00, starting with a Wii Classic plugged in, causes the cursor to wander 'south' or to the bottom of the screen. Unplugging fixes...after restart.

Looking really good...especially if the final solution to the keyboard issue can be found!

Steve


Thanks for the feedback Steve.  Now we just need to figure out what changes in the test version actually solved the issue!  I think we are getting close to a resolution!  

The Wii Classic Controller acts kinda like a Nunchuk when the device is first opened but unfortunately doesn't provide the same data.  I'll put in a check to make sure it's really a Nunchuk until I get the Classic fully working.
-Carl
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 08:37pm 08 Sep 2020
Copy link to clipboard 
Print this post

Ok Here is V1.1 of the Mandelbrot Explorer:

Added the fix for the keyboard repeat per feedback from yock1960

Added Wii Classic Controller basic functionality (not sure what to do with all the extra buttons yet.)

Added some error checking in the file menu.



MandelbrotEXP.zip
-Carl
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:50am 09 Sep 2020
Copy link to clipboard 
Print this post

Great stuff Carl.

If I can be picky then there are a couple of improvements that might make it integrate better with The Welcome Tape:

- "F" & "Q" on the intro/help page should open the File menu and Quit respectively instead of just acting as "any key to Continue".

- the key to exit from the File menu should be "B" for "Back", or anything other than "Q" which elsewhere always returns to The Welcome Tape menu.

You should also probably clear the keyboard buffer when exiting/entering the help screen, file menu, and graphical display so that any residual keypresses from the previous screen are ignored, i.e.
Do While Inkey$<>"" : Loop


Thanks again for allowing me to use this on The Welcome Tape.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 10:53pm 09 Sep 2020
Copy link to clipboard 
Print this post

This may have been covered before, but I missed it. With no keyboard plugged in, just my laptop using the USB B connector, I had no response to keystrokes while running the program (the nunchuk worked well, but can't do everything).

I plugged in a USB keyboard to the CMM2 for the first time, and got behavior as expected from the keystrokes. Is this a known issue? Is there a way to have the program respond to keystrokes from a connected PC?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
thwill

Guru

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

  lizby said  I plugged in a USB keyboard to the CMM2 for the first time, and got behavior as expected from the keystrokes. Is this a known issue? Is there a way to have the program respond to keystrokes from a connected PC?


I believe this is a known problem with any program using KEYDOWN. As I understand it the issue is that a connected PC doesn't send keystrokes it sends ASCII characters via the serial console.

Regards,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 12:56am 10 Sep 2020
Copy link to clipboard 
Print this post

OK, thanks.
Edited 2020-09-10 10:57 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 03:07am 10 Sep 2020
Copy link to clipboard 
Print this post

  lizby said  This may have been covered before, but I missed it. With no keyboard plugged in, just my laptop using the USB B connector, I had no response to keystrokes while running the program (the nunchuk worked well, but can't do everything).

I plugged in a USB keyboard to the CMM2 for the first time, and got behavior as expected from the keystrokes. Is this a known issue? Is there a way to have the program respond to keystrokes from a connected PC?


Good point lizby,  I had originally used the Inkey$ function for most of the keyboard commands,  I moved everything to use the Keydown due to some technical issues with the Inkey$ function not processing while the CSUB was doing it's calculations.  Then I ran into other issues due to the Keydown function not being buffered.

Now that I understand this better I should revisit using Inkey such that It can be used over the console connection.  Most of the commands are simple keystrokes that should work from the USB console connection.  The cursor keys may not process fast enough but it's worth testing.
-Carl
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 377
Posted: 03:14am 10 Sep 2020
Copy link to clipboard 
Print this post

  thwill said  Great stuff Carl.

If I can be picky then there are a couple of improvements that might make it integrate better with The Welcome Tape:

- "F" & "Q" on the intro/help page should open the File menu and Quit respectively instead of just acting as "any key to Continue".

- the key to exit from the File menu should be "B" for "Back", or anything other than "Q" which elsewhere always returns to The Welcome Tape menu.

You should also probably clear the keyboard buffer when exiting/entering the help screen, file menu, and graphical display so that any residual keypresses from the previous screen are ignored, i.e.
Do While Inkey$<>"" : Loop


Thanks again for allowing me to use this on The Welcome Tape.

Best wishes,

Tom


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.
-Carl
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 12:30pm 10 Sep 2020
Copy link to clipboard 
Print this post

I haven't looked at all into how CMM2 input is handled, USB B or USB A connection, but does LOC help? Especially "#0 can be used which refers to the console's input buffer"
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
     Page 2 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025