Search found 468 matches

by misol101
08 Jun 2020 04:45
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

Fullscreen at 1360 * 768 pixels (Native resolution is 3840 * 2160, at which only approx 1/6th of the cmd window is occupied by cmdgfx_gdi's output) hmm, that’s a bit puzzling. 3840*2160 (8 million pixels) is admittedly a much larger screen than I ever tried cmdgfx with (max I tried is probably 1920...
by misol101
07 Jun 2020 13:31
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

Liking the color by state expession. I'm getting approximately 18 frames per second for the latest version compared to the ~110 from your original version. I actually prefer that pace as it's easier to see the evolution between generations. Did have to lower my screen res to scale it to full screen...
by misol101
06 Jun 2020 07:38
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

Optimization attempt: The general rule for expressions is simple: the longer they are, the slower they run. At a granularity of ~2 million pixels, it might be worth trying to cut it a bit. By only allowing using color 1, we can get rid of 9 calls to gtr, plus the final multiplication. But isn't that...
by misol101
06 Jun 2020 05:10
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

try doing the same in pixel mode and it wouldn't be so pretty... Actually let's try it: @echo off setlocal EnableDelayedExpansion cmdwiz fullscreen 1 & cmdwiz showcursor 0 cmdwiz getdisplaydim w & set /a w=!errorlevel! cmdwiz getdisplaydim h & set /a h=!errorlevel! set /a density=10, col=10 if not ...
by misol101
06 Jun 2020 02:49
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

Mmmm... I am confused... If I correctly understood, your long expression count the neighbours of one pixel , store it in s0 storage variable (there are just 5 storage variables) and this variable is used to know the final value of the pixel. However, your description did not explain what to do with...
by misol101
05 Jun 2020 08:32
Forum: DOS Batch Forum
Topic: Batch wont display anything on my new PC???
Replies: 5
Views: 1937

Re: Batch wont display anything on my new PC???

Does the cmd window just seem to hang, no input or output?

It did for me, try enabling legacy console mode in cmd preferences.
by misol101
03 Jun 2020 12:58
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

Can't yet claim to understand how the rules of Game of life are being implemented in the script Things do tend to get cryptic when having to compose everything in a single line :mrgreen: (not true, it could be broken into several lines, but i digress) Actually, it's worth a break-down. Entire expre...
by misol101
03 Jun 2020 11:50
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

I may just have to start learning how to utilise cmdgfx Please do if you feel like it, would be fun to see what you could do with it. It is fairly well documented, both from command line and at https://github.com/misol1/cmdgfx/blob/master/README.md Then again, it is quite a feature-rich program (so...
by misol101
02 Jun 2020 15:47
Forum: DOS Batch Forum
Topic: Game Of Life
Replies: 21
Views: 4969

Re: Game Of Life

Nice :) Here is a rather minimal version using cmdgfx.exe: @echo off set /a w=160, h=80, density=10, col=1 mode %w%,%h% if not defined _ set _=. & call %0 | cmdgfx.exe "fbox 0 0 db & block 0 0,0,%w%,%h% 0,0 -1 0 0 - random()*100/(101-%density%)" S :rep echo "cmdgfx: block 0 0,0,%w%,%h% 0,0 -1 0 0 - ...
by misol101
02 Jun 2020 08:34
Forum: DOS Batch Forum
Topic: Performance & Optimization of Batch Files
Replies: 3
Views: 1673

Re: Performance & Optimization of Batch Files

Ok, here is my no 1 trick: use another language :P (best bet: jscript+minimal batch startup) It would actually be interesting to know if there is any other common scripting language as slow as batch? But ok, trying to be more helpful regarding the topic, from what I can remember off the top of my he...
by misol101
28 May 2020 11:48
Forum: DOS Batch Forum
Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
Replies: 119
Views: 92274

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

Well, hope that was helpful. Just a follow-up because I realized I forgot about another method of achieving a high(er) frame rate without cmdgfx server: using start /B to run cmdgfx. Unfortunately it doesn't work well with cmdgfx_VT because it results in concurrent access, leading to possible screen...
by misol101
22 May 2020 10:35
Forum: DOS Batch Forum
Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
Replies: 119
Views: 92274

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

I will focus mostly on making interactive menus *without* using a server, as it is significantly simpler and possibly good enough. I am using an image (img\123.bmp) that is in the cmdgfx archive, so it should be possible to run these scripts straight from the cmdgfx folder if you create them there. ...
by misol101
22 May 2020 09:38
Forum: DOS Batch Forum
Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
Replies: 119
Views: 92274

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

1. image magick is indeed the solution but then you also need to resize it to fit the command window. 2. I think i can will make it with static pictures but how do you do with animations? 3. i tried and opened most of the batch given as examples in cmdgfx i downloaded and for the life of me, I can'...
by misol101
20 May 2020 03:59
Forum: DOS Batch Forum
Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
Replies: 119
Views: 92274

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

This script can be used to show any jpg file in the command line once ImageMagick is installed: @echo off & setlocal if "%~1"=="" echo Error: no input. Usage: showjpg file.jpg [x] [y] [char] [xFlip] [yFlip]& goto :eof if not "%~x1"==".jpg" echo Error: not a jpg file& goto :eof if not exist %1 echo E...
by misol101
20 May 2020 02:39
Forum: DOS Batch Forum
Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
Replies: 119
Views: 92274

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

never mind. cannot print jpeg, only 16 colors pcx command is: cmdgfx_vt "image whatever.pcx 0 0 O -1 0,0 0 0" Hi scavenger, that is (partly) incorrect: cmdgfx_VT and cmdgfx_RGB can print full color BMP images: cmdgfx_vt "image whatever.bmp 0 0 O -1 0,0” However you are correct that it doesn’t suppo...