When your OS goes crazy - Screenshots
Re: When your OS goes crazy - Screenshots
Intelligent people... in intelligence company S3.
Writing a video card... With arrows and glitches in middle of text mode screen.
Is it really that hard to make a video card with nor arrows nor glitches in text mode? With tons of other people which are all specialized in that stuff?
Writing a video card... With arrows and glitches in middle of text mode screen.
Is it really that hard to make a video card with nor arrows nor glitches in text mode? With tons of other people which are all specialized in that stuff?
Re: When your OS goes crazy - Screenshots
It was the only time I ever saw anything like that happen in my life honestly. I won't blame them if they never stumbled upon that glitch, it legitimately looks like a fluke.
My guess is that it was a hardware cursor and it can be displayed regardless of video mode, and the only reason it looked glitchy is because the video driver had assumed the cursor had been cleared and hence wasn't touching it anymore. I'm going to guess it's actually possible to get a working graphics cursor properly on that video hardware provided you actually provide code for it.
It was a S3 Unichrome if I recall correctly (or something like that, I don't have that machine since long ago).
My guess is that it was a hardware cursor and it can be displayed regardless of video mode, and the only reason it looked glitchy is because the video driver had assumed the cursor had been cleared and hence wasn't touching it anymore. I'm going to guess it's actually possible to get a working graphics cursor properly on that video hardware provided you actually provide code for it.
It was a S3 Unichrome if I recall correctly (or something like that, I don't have that machine since long ago).
- Schol-R-LEA
- Member
- Posts: 1925
- Joined: Fri Oct 27, 2006 9:42 am
- Location: Athens, GA, USA
Re: When your OS goes crazy - Screenshots
That phrase means something quite different in English than you seem think it does. Unless you meant to imply that the company is run by spies, I suppose.Lukand wrote:Intelligent people... in intelligence company S3.
Last edited by Schol-R-LEA on Fri Nov 04, 2016 1:03 pm, edited 1 time in total.
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Re: When your OS goes crazy - Screenshots
I think this is related to data collection (spying as you said), right?Schol-R-LEA wrote:That phrase means something quite different in English than you seem be think it does. Unless you meant to imply that the company is run by spies, I suppose.Lukand wrote:Intelligent people... in intelligence company S3.
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
Re: When your OS goes crazy - Screenshots
It's not related to spying.
I thought on smart-ness.
Sarcasm of "Intelligent people". In its times it has thousands of workers and then all of them could not create working text-mode in their video card. Anyways they failed in previous millenium.
I thought on smart-ness.
Sarcasm of "Intelligent people". In its times it has thousands of workers and then all of them could not create working text-mode in their video card. Anyways they failed in previous millenium.
Re: When your OS goes crazy - Screenshots
Hi,
This is supposed to be a nice white triangle:
I suspect overflows, or precision loss, or overflowing precision losses.
Cheers.
Brendan
This is supposed to be a nice white triangle:
I suspect overflows, or precision loss, or overflowing precision losses.
Cheers.
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: When your OS goes crazy - Screenshots
@Brendan, this looks like an abstractionist masterpiece!
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
Re: When your OS goes crazy - Screenshots
Well, it surely is a nice white triangle, but who threw it into the water?
Re: When your OS goes crazy - Screenshots
...OK. How did you do that? What kind of algorithm is it? o_O
Re: When your OS goes crazy - Screenshots
Hi,
I found the bugs and fixed them. Here's what it was supposed to look like:
Note: You are looking at a simple white triangle (with perfect anti-aliasing, focal blur, gamma correction, colour space independence, resolution independence and Floyd–Steinberg dithering).
Cheers,
Brendan
The algorithm is something I call "mastery of deep research"...Sik wrote:...OK. How did you do that? What kind of algorithm is it? o_O
I found the bugs and fixed them. Here's what it was supposed to look like:
Note: You are looking at a simple white triangle (with perfect anti-aliasing, focal blur, gamma correction, colour space independence, resolution independence and Floyd–Steinberg dithering).
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: When your OS goes crazy - Screenshots
So wait, the bug was in the triangle itself or on the effects applied to it then? (・・?) (also I guess I should ask what kind of hardware is rendering it, since that would affect the algorithm of choice too)
Re: When your OS goes crazy - Screenshots
Hi,
The main bug was in a "convert vector to unit vector" routine, which calculated a 32-bit fixed point divisor ("divisor = sqrt(x*x + y*y + z*z);") and then scaled the vector ("x = x/divisor; y = y/divisor; y = y/divisor;"), where 32-bit fixed point didn't have enough precision and caused artefacts. The fix was to replace it with a 64-bit "inverse square root" and multiply instead (conveniently avoiding the need for "divisor larger than 32-bits" which is very expensive in 32-bit code).
Cheers,
Brendan
The triangle is just a triangle (3 vertices), and there are no effects applied to it (the anti-aliasing and focal blur are just a "happy side-effect" of the method I'm using to render).Sik wrote:So wait, the bug was in the triangle itself or on the effects applied to it then? (・・?)
The main bug was in a "convert vector to unit vector" routine, which calculated a 32-bit fixed point divisor ("divisor = sqrt(x*x + y*y + z*z);") and then scaled the vector ("x = x/divisor; y = y/divisor; y = y/divisor;"), where 32-bit fixed point didn't have enough precision and caused artefacts. The fix was to replace it with a 64-bit "inverse square root" and multiply instead (conveniently avoiding the need for "divisor larger than 32-bits" which is very expensive in 32-bit code).
The only hardware is "single 80486 (or later) CPU without any FPU" and a framebuffer from VBE.Sik wrote:(also I guess I should ask what kind of hardware is rendering it, since that would affect the algorithm of choice too)
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: When your OS goes crazy - Screenshots
Wow, good job Brendan! I didn't knew you are good with trigonometry...
-
- Member
- Posts: 273
- Joined: Sun Oct 09, 2016 4:38 am
- Libera.chat IRC: NunoLava1998
Re: When your OS goes crazy - Screenshots
accidentally made NASM generate a bunch of trash
with VESA-sized glitches in text mode, in the locations of VGA.
overwrote the IVT and did not triple fault.
with VESA-sized glitches in text mode, in the locations of VGA.
overwrote the IVT and did not triple fault.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
https://github.com/NunoLava1998/DixiumOS
https://github.com/NunoLava1998/DixiumOS
Re: When your OS goes crazy - Screenshots
Meh... I kinda liked the first one better...Brendan wrote:Hi,
I found the bugs and fixed them. Here's what it was supposed to look like:
Cheers,
Brendan
Hope you kept the code..
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott