05-13-2003, 07:25 AM
Quote:I generally get the idea I think. You find 256 colors you like save the pallate and keep reusing it. Well I'm confused on why i'm getting the error. I don't think I should be. I know it's photoshop's fault. But It the easiest way for me to make graphics. Even pixel graphics. It has so many useful tools that speed up work. I just don't think it can compare to Deluxe Paint which I did try in the proccess. I can find a way to transfer my .pcx into Deluxe maybe that could solve my agony?
Well, try Neopaint. Just use photoshop to draw, then use neopaint to convert palettes. Or use your final palette directly when you're drawing. You can import it to the swatches so you can draw using them, so no probs
Quote:Almost forgot. I'm a little confused on the OUT ASM thing ur doing. : )
Not ASM, but pure QB Let me explain what are "ports". Ports are 65355 kinda mailboxes that your PC uses to communicate with some devices (keyboard, loudspeaker or VGA, among others). In some operations, you just put values in some ports waiting for the device to read them and act consequently (OUT port, value). In other cases you just read a value that some device has located in a port ( value = INP(port) ).
Ports &H3C7, &H3C8 and &H3C9 are use to communicate with VGA's DAC registers. If the VGA finds a value in &H3C7, it will return the colour values in &H3C9 (like some kind of queue: when you read red, it will put green, and so on). When the VGA finds a value in &H3C8, it just waits for you to give it the red, green and blue thru &H3C9.
My 4 OUTs just say:
Code:
OUT &H3C8, slot ' PC says: Hey, VGA, I wanna change this slot in the DAC registers
' The VGA thinks: ¡cool! Let me wait for 3 values. First "red".
OUT &H3C9, red ' PC says: Here's the red value.
' The VGA thinks: nice. Now I am waiting for "green".
OUT &H3C9, green ' PC says: Here's the green value.
' The VGA thinks: well, now the last one, "blue".
OUT &H3C9, blue ' PC says: And here's blue.
' The VGA thinks: well done, now I have red, green and blue.
' Time to change the DAC registers :)
I know it looks like Sesame Street, but I liked how it looked like
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i