When your OS goes crazy - Screenshots

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Ycep
Member
Member
Posts: 401
Joined: Mon Dec 28, 2015 11:11 am

Re: When your OS goes crazy - Screenshots

Post by Ycep »

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?
User avatar
Sik
Member
Member
Posts: 251
Joined: Wed Aug 17, 2016 4:55 am

Re: When your OS goes crazy - Screenshots

Post by Sik »

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).
User avatar
Schol-R-LEA
Member
Member
Posts: 1925
Joined: Fri Oct 27, 2006 9:42 am
Location: Athens, GA, USA

Re: When your OS goes crazy - Screenshots

Post by Schol-R-LEA »

Lukand wrote:Intelligent people... in intelligence company S3.
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.
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.
User avatar
Octacone
Member
Member
Posts: 1138
Joined: Fri Aug 07, 2015 6:13 am

Re: When your OS goes crazy - Screenshots

Post by Octacone »

Schol-R-LEA wrote:
Lukand wrote:Intelligent people... in intelligence company S3.
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.
I think this is related to data collection (spying as you said), right?
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
User avatar
Ycep
Member
Member
Posts: 401
Joined: Mon Dec 28, 2015 11:11 am

Re: When your OS goes crazy - Screenshots

Post by Ycep »

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.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: When your OS goes crazy - Screenshots

Post by Brendan »

Hi,

This is supposed to be a nice white triangle:

Image

I suspect overflows, or precision loss, or overflowing precision losses. :roll:


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.
User avatar
Roman
Member
Member
Posts: 568
Joined: Thu Mar 27, 2014 3:57 am
Location: Moscow, Russia
Contact:

Re: When your OS goes crazy - Screenshots

Post by Roman »

@Brendan, this looks like an abstractionist masterpiece! =D>
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: When your OS goes crazy - Screenshots

Post by Kevin »

Well, it surely is a nice white triangle, but who threw it into the water?
Developer of tyndur - community OS of Lowlevel (German)
User avatar
Sik
Member
Member
Posts: 251
Joined: Wed Aug 17, 2016 4:55 am

Re: When your OS goes crazy - Screenshots

Post by Sik »

...OK. How did you do that? What kind of algorithm is it? o_O
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: When your OS goes crazy - Screenshots

Post by Brendan »

Hi,
Sik wrote:...OK. How did you do that? What kind of algorithm is it? o_O
The algorithm is something I call "mastery of deep research"... 8)

I found the bugs and fixed them. Here's what it was supposed to look like:

Image

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.
User avatar
Sik
Member
Member
Posts: 251
Joined: Wed Aug 17, 2016 4:55 am

Re: When your OS goes crazy - Screenshots

Post by Sik »

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)
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: When your OS goes crazy - Screenshots

Post by Brendan »

Hi,
Sik wrote:So wait, the bug was in the triangle itself or on the effects applied to it then? (・・?)
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).

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).
Sik wrote:(also I guess I should ask what kind of hardware is rendering it, since that would affect the algorithm of choice too)
The only hardware is "single 80486 (or later) CPU without any FPU" and a framebuffer from VBE. :)


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.
User avatar
Ycep
Member
Member
Posts: 401
Joined: Mon Dec 28, 2015 11:11 am

Re: When your OS goes crazy - Screenshots

Post by Ycep »

Wow, good job Brendan! I didn't knew you are good with trigonometry...
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Re: When your OS goes crazy - Screenshots

Post by NunoLava1998 »

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.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: When your OS goes crazy - Screenshots

Post by SpyderTL »

Brendan wrote:Hi,

I found the bugs and fixed them. Here's what it was supposed to look like:

Image

Cheers,

Brendan
Meh... I kinda liked the first one better...

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
Post Reply