Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
misol101
Posts: 408
Joined: 02 May 2016 18:20

Re: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)

#106 Post by misol101 » 28 Jun 2019 14:32

Aacini wrote:
28 Jun 2019 12:15
Wow! The writing of text is fantastic! This remembers me my old method to write text in pixel mode. Where do you get the definition of the raster fonts, so you can read them?
Glad you like it!

If you clone the git repo (link in first post), you will find a file called cmdfonts.h, which contains all the data necessary for the 10 raster fonts. It is embedded in cmdgfx_gdi.exe and cmdgfx_RGB.exe. On page 3 of this thread I have posted some C code showing how to use (one of) the font data arrays in cmdfonts.h.

The data itself (if I remember correctly) was retrieved using a combo of a batch script (to write characters in ASCII order at the top of the cmd line), a screengrab tool (to save the text as bitmap), ImageMagick to print out the pixels in the bitmap as text data, and a little C code to organize the data into 1-bit-per-pixel data arrays (finally producing cmdfonts.h)

misol101
Posts: 408
Joined: 02 May 2016 18:20

Re: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)

#107 Post by misol101 » 03 Feb 2020 17:08

Stability update to version 1.5.

Wasn't planning on updating this, but then my WIndows 10 started mis-behaving, because I can no longer open a cmd.com window without it hanging! The only fix I found was to enable legacy console mode (some info at https://www.guidingtech.com/cant-type-in-cmd-error/)

Then I noticed that in legacy mode it was no longer possible to exit fullscreen from my scripts , and it also annoyed me that screensaver scripts did not cover the entire screen (taskbar still visible). So, for v1.5 we have these changes:

1. Fix of cmdwiz fullscreen op for legacy mode
2. Complete fullscreen also for legacy mode for all fullscreen scripts, plus proof-of-concept for Ctrl-Enter for windowed script RGB-Balls2.bat (another method used in RGB-Balls3.bat, and RGB-Balls.bat without fullscreen, just restoring size/position)
3. Image op: allow setting width/height as a single percentage value (aspect ratio corrected)
4. Bug fix: buffer range check for block when using new width and height
5. Added geq and leq to block expressions
6. If frame split into several stages with "n" flag, any error messages are now shown as expected

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)

#108 Post by DQ2000 » 08 Feb 2020 21:45

There are mistakes when approaching sprites a lot and then moving them away is no longer formed.

misol101
Posts: 408
Joined: 02 May 2016 18:20

Re: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)

#109 Post by misol101 » 09 Feb 2020 03:20

DQ2000 wrote:
08 Feb 2020 21:45
There are mistakes when approaching sprites a lot and then moving them away is no longer formed.
Ok, can you give an example? (of a line that does not work as expected?). Do you know if this worked in earlier versions?

Or, PM me the code of yours that doesn’t work as expected.

Post Reply