Search found 121 matches

by IcarusLives
07 Sep 2018 07:08
Forum: DOS Batch Forum
Topic: Center Window and Move Window (yet more Powershell hybrids)
Replies: 6
Views: 2751

Re: Center Window (yet another Powershell hybrid)

Haha, I guess you've got a point! No, this script is great! Thank you very much for this release.
by IcarusLives
06 Sep 2018 14:40
Forum: DOS Batch Forum
Topic: Center Window and Move Window (yet more Powershell hybrids)
Replies: 6
Views: 2751

Re: Center Window (yet another Powershell hybrid)

Ooooo I like this release! Very nice! Is it possible to place in more dynamic positions, or just the 5?
by IcarusLives
10 Aug 2018 15:50
Forum: DOS Batch Forum
Topic: %MM% v0.2a - a full-featured WinNT math macro
Replies: 22
Views: 7064

Re: %MM% - a full-featured WinNT math macro

@dbenham

Thank you for the explanation and example code! This is very useful indeed. So I can use this in the same way as I would set /a?
by IcarusLives
10 Aug 2018 11:02
Forum: DOS Batch Forum
Topic: %MM% v0.2a - a full-featured WinNT math macro
Replies: 22
Views: 7064

Re: %MM% - a full-featured WinNT math macro

Hello :) I find this thread really intriguing. I have read everything here, and I'm struggling to understand basic usage (as if applied to a batch script) and in what cases would this be more practical than set /a? This is really amazing work here! I'm just trying to learn how to use it. I would gre...
by IcarusLives
25 Jun 2018 23:56
Forum: DOS Batch Forum
Topic: More L-systems (also in 3d)
Replies: 3
Views: 1720

Re: More L-systems (also in 3d)

Beautiful work misol :) these are really great implementation!
by IcarusLives
08 Jun 2018 21:18
Forum: DOS Batch Forum
Topic: Dragon Curve using L-System
Replies: 0
Views: 15786

Dragon Curve using L-System

Hello, I recently learned about L-Systems, and have created a dragon curve. There are many other visualizations that I got from http://paulbourke.net/fractals/lsys/ . Please enjoy :) F + - [ ] are the characters and each character does 1 thing F : Move forward + : Rotate Right - : Rotate Left [ : PU...
by IcarusLives
04 Jun 2018 14:02
Forum: DOS Batch Forum
Topic: Dos Batch Math Library
Replies: 59
Views: 28614

Re: Dos Batch Math Library

Thank you so much for the resources! I will research this.
by IcarusLives
30 May 2018 06:58
Forum: DOS Batch Forum
Topic: Dos Batch Math Library
Replies: 59
Views: 28614

Re: Dos Batch Math Library

Hey, I wanted to share something I made last night. I thought maybe this would be useful FIXED! Accuracy is 100% https://gyazo.com/1765c4579c80f2688789b12901d762ad.png @echo off & setlocal enableDelayedExpansion for /l %%a in (1,1,20) do ( set /a "rnd1=!random! %% 49 + 1", "rnd2=!random! %% 49 + 1" ...
by IcarusLives
22 May 2018 15:57
Forum: DOS Batch Forum
Topic: Cross vector product algorithm issue? Need help
Replies: 7
Views: 2468

Re: Cross vector product algorithm issue? Need help

What a great alternative! Thank you Aacini, and Penpen for your help.
by IcarusLives
16 May 2018 10:36
Forum: DOS Batch Forum
Topic: Cross vector product algorithm issue? Need help
Replies: 7
Views: 2468

Re: Cross vector product algorithm issue? Need help

I know that writting batch macros makes it harder to read, so here is the pseudo-code in qBasic. FUNCTION FNcross (x1, y1, x2, y2) FNcross = x1 * y2 - y1 * x2 END FUNCTION SUB Intersect (x1, y1, x2, y2, x3, y3, x4, y4, x, y) x = FNcross(x1, y1, x2, y2) y = FNcross(x3, y3, x4, y4) det = FNcross(x1 - ...
by IcarusLives
09 May 2018 09:20
Forum: DOS Batch Forum
Topic: Visualize a clock
Replies: 6
Views: 2725

Re: Visualize a clock

I love working with batch files, but I've got to be honest, this task is completely unnecessary and wasteful. At all times whilst using my PC, there's a direct click to open a clock which gives me everything I need! https://i.imgur.com/m9cebEG.gif By no means am I trying to reproduce a BETTER clock...
by IcarusLives
07 May 2018 19:55
Forum: DOS Batch Forum
Topic: Cross vector product algorithm issue? Need help
Replies: 7
Views: 2468

Cross vector product algorithm issue? Need help

Hello everyone I have been experimenting with vertexes, and have come to simulate 3rd, 2nd, and 1st person view. I'm having trouble with a piece of the algorithm though. I need to clip the image from view if it is NOT in front of the player IF the view is 1st person (line12) Clipping the image out o...
by IcarusLives
06 May 2018 10:37
Forum: DOS Batch Forum
Topic: Visualize a clock
Replies: 6
Views: 2725

Visualize a clock

Hello all ^-^ A great exercise is to visualize a clock in code. I suggest you all try it! Enjoy! WIN 10 ONLY! Excuse the flicker, I believe it is from GYAZO gif https://gyazo.com/52fc6c13f389f8d8c11f588833d5d239.gif https://gyazo.com/c9ed849947be13a62aacea7190035173.gif @echo off & setlocal EnableDe...
by IcarusLives
04 May 2018 21:38
Forum: DOS Batch Forum
Topic: drawing things with smoothStep algorithm
Replies: 1
Views: 1202

drawing things with smoothStep algorithm

I believe I finally have created (successfully) CLAMP and SMOOTHSTEP macros for graphic drawing in pure batch. The website I used to check my results are from http://www.fundza.com/rman_shaders/smoothstep/ In computer graphics, clamping is the process of limiting a position to an area. Unlike wrappi...
by IcarusLives
03 May 2018 16:55
Forum: DOS Batch Forum
Topic: Algorithmic conditions, and returns????
Replies: 15
Views: 4956

Re: Algorithmic conditions, and returns????

But if what's in my head is correct, then XOR would return BOOL= 0 during this case. Correct. set "XOR(b1,b2)=((b1+b2)&1)" The least significant bit is 0 if the result of the addition was either 0 or 2. But Batch already supports binary XOR, hence ... set "XOR(b1,b2)=(b1^b2)" ... would have been ea...