06 February 2014, 11:55 | #1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
Min. and Max. modulo values?
Hi, just a cool small question: What are the minimum and maximum values for the bitplane modulo?
|
06 February 2014, 12:02 | #2 |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,643
|
they are signed 16 bit words, and any value stored there will be added.
|
06 February 2014, 12:08 | #3 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
Oh, that's quite much! I am developing a bitplane-viewer and am going to add a slider to adjust the modulo. Now, that slider potvalue must be translated into a modulo and I won't use the full possible value as then already a little move of the slider knob adds or susbtracts too many. what would be a good min/max for the slider? so that practical use of the modulo in demos is supported?
|
06 February 2014, 19:19 | #4 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
If you want to cover all cases then you would need a maximum in the thousands, but a range from 0 to 320 will cover most, if you consider both interleaved and non-interleaved bitplanes.
|
06 February 2014, 19:24 | #5 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,030
|
Sure? A superhires bitmap with 256 colors and interleaved bitplanes would have a modulo of 1120.
|
06 February 2014, 20:01 | #6 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Yeah but that's exactly what I wrote, that you may need a modulo in the thousands to cover all and rare cases. I think the slider is only for convenience, so it would only have to cover the most common cases. (there's probably an edit-field as well)
|
06 February 2014, 21:35 | #7 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
I dunno how I can separate the edit field from the slider because the field should show the scroller value and the scroller should visualize the field value.
|
07 February 2014, 12:40 | #8 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
Beside the modulo slider I have a vertical scroller to scroll through the file or memory. That one has the file/memory size as MAX, the current offset as POT and one line of 40 bytes + modulo as BODY. In the other direction, I use the scroller POT as offset. When I klick under or above the knob, the 'picture' moves one line down or one line up. This is correct. But when I drag the scroller knob, the picture does not only move vertically but also horizontally. How can I make it so that when scrolling the scroller the pic also moves only vertically?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Capital Punishment Min specifications | Vollldo | support.Games | 41 | 27 February 2015 19:26 |
Monkey Island - min. req. 512Kb version? | lilalurl | HOL data problems | 2 | 18 July 2010 16:37 |
Min requirements for WHDLoad? | Gnorman | project.WHDLoad | 1 | 19 February 2006 12:28 |
Super Mario 3 in 11 min. | Kodoichi | Nostalgia & memories | 7 | 03 December 2003 05:45 |
|
|