View unanswered posts | View active topics It is currently Fri Jun 23, 2017 11:17 am



Reply to topic  [ 3 posts ] 
scanlines intensity in newgfx16.asm 
Author Message
Rookie

Joined: Mon Oct 01, 2012 11:24 am
Posts: 21
Reply with quote
Post scanlines intensity in newgfx16.asm
Hi!

i was checking the scanlines code, beause I want to change 50% to 70% scanlines, and finally realize the intensity is in the file newgfx16.asm

For example, in

NEWSYM HalfTrans, dd 11110111110111101111011111011110b,11110111110111101111011111011110b,0,0

I can change intensity of scanlines


Someone can explain to me, please, what really every number does? is about RGB colors, but still did not figure yet what exactly im touching

Thanks, sorry my english


Sun Aug 14, 2016 3:27 am
Profile WWW
Zealot
User avatar

Joined: Wed Jul 28, 2004 3:31 am
Posts: 1113
Reply with quote
Post Re: scanlines intensity in newgfx16.asm
The color values are bit shifted to the right by one bit (50%) and the least significant bits are masked off so they don't overflow into the neighboring color channels.

To do any arbitrary color level, you'll need to use actual multiplication and/or division instead of bit shifting.


Sun Aug 14, 2016 7:49 am
Profile WWW
Rookie

Joined: Mon Oct 01, 2012 11:24 am
Posts: 21
Reply with quote
Post Re: scanlines intensity in newgfx16.asm
kode54 wrote:
The color values are bit shifted to the right by one bit (50%) and the least significant bits are masked off so they don't overflow into the neighboring color channels.

To do any arbitrary color level, you'll need to use actual multiplication and/or division instead of bit shifting.



Oh! thanks a lot for your answer and time, I already change the scanlines code to addapt my taste (and my CRT) :D

Looks great!!


Sun Aug 14, 2016 11:32 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.