OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 10:24 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 809 posts ]  Go to page Previous  1 ... 36, 37, 38, 39, 40, 41, 42 ... 54  Next
Author Message
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Sep 25, 2016 3:37 pm 
Offline
Member
Member
User avatar

Joined: Mon Dec 28, 2015 11:11 am
Posts: 401
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?


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Sep 25, 2016 9:46 pm 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Sep 27, 2016 9:16 am 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
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.

_________________
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.


Last edited by Schol-R-LEA on Fri Nov 04, 2016 1:03 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Sep 27, 2016 10:20 am 
Offline
Member
Member
User avatar

Joined: Fri Aug 07, 2015 6:13 am
Posts: 1134
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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Sep 28, 2016 2:52 pm 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Thu Oct 06, 2016 8:26 pm 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Oct 07, 2016 1:22 am 
Offline
Member
Member
User avatar

Joined: Thu Mar 27, 2014 3:57 am
Posts: 568
Location: Moscow, Russia
@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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Oct 07, 2016 1:25 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
Well, it surely is a nice white triangle, but who threw it into the water?

_________________
Developer of tyndur - community OS of Lowlevel (German)


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Fri Oct 07, 2016 7:33 am 
Offline
Member
Member
User avatar

Joined: Wed Aug 17, 2016 4:55 am
Posts: 251
...OK. How did you do that? What kind of algorithm is it? o_O


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Oct 09, 2016 5:06 am 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Oct 09, 2016 5:54 am 
Offline
Member
Member
User avatar

Joined: Wed Aug 17, 2016 4:55 am
Posts: 251
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)


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Sun Oct 09, 2016 8:22 am 
Offline
Member
Member
User avatar

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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Wed Oct 12, 2016 4:28 am 
Offline
Member
Member
User avatar

Joined: Mon Dec 28, 2015 11:11 am
Posts: 401
Wow, good job Brendan! I didn't knew you are good with trigonometry...


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Oct 18, 2016 2:36 pm 
Offline
Member
Member

Joined: Sun Oct 09, 2016 4:38 am
Posts: 273
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


Top
 Profile  
 
 Post subject: Re: When your OS goes crazy - Screenshots
PostPosted: Tue Oct 18, 2016 2:56 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 809 posts ]  Go to page Previous  1 ... 36, 37, 38, 39, 40, 41, 42 ... 54  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], osdev199 and 622 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group