Giter Site home page Giter Site logo

Comments (6)

GeorgRottensteiner avatar GeorgRottensteiner commented on June 16, 2024 1

Just in case/as a workaround, C64Studio may not always preserve the same bit pattern for a color between 8x8 blocks. You can force a certain bit pattern in the second tab.

from c64studio.

mokdevel avatar mokdevel commented on June 16, 2024

Regarding the second issue - it seems to be for the imported image. If I create another graphicscreen and do full copy/paste, the color picker works as expected.

from c64studio.

mokdevel avatar mokdevel commented on June 16, 2024

Hmm.. there is something with the import. Once I've imported the image (png of a MC c64 image), I do a full copy/paste to another graphicscreen. The image looks as it should be, colors are correct and the c64 color limits are considered. But something is broken with the colors when doing !media.

!media "gfx_ptower_big.graphicscreen",bitmapscreencolor
OR
!media "gfx_ptower_big.graphicscreen",color
!media "gfx_ptower_big.graphicscreen",screen
!media "gfx_ptower_big.graphicscreen",bitmap

In both cases, the color and screen data is incorrect. Bitmap is correct. The colors are switched as I described in the first comment (eg. $1 -> $b)

NOTE: If I start a MC bitmap image from scratch and draw and paint, !media, color pickers etc work correctly.

Update: Tested with .bmp and the same issue.

from c64studio.

mokdevel avatar mokdevel commented on June 16, 2024

Something to test with.

  • test.graphicscreen is drawn in C64studio and works correctly.
  • test.png is a screen shot from VICE, cropped to 320x200
  • test2.graphicscreen is import of test.png . The colors look fine, but running the code shows the colors incorrectly.

test.zip

       *= $5800
!media   "test2.graphicscreen",color 
        *= $5c00
!media   "test2.graphicscreen",screen
        *= $6000
!media   "test2.graphicscreen",bitmap

         *= $0801
         !basic
         
         jmp start

         *= $2800

start
         lda #$00
loop1    lda $5800,x
         sta $d800,x
         lda $5900,x
         sta $d900,x
         lda $5a00,x
         sta $da00,x
         lda $5b00,x
         sta $db00,x
         inx
         bne loop1

         lda #$00
         sta $d020
         sta $d021

         lda #$3b
         sta $d011
         lda #%01111000
         sta $d018
         lda #%11111110
         sta $dd00
         lda #%00011000
         sta $d016

         jmp *

from c64studio.

GeorgRottensteiner avatar GeorgRottensteiner commented on June 16, 2024

Thanks, I'm reading it, but this will take a bit to look into.

from c64studio.

mokdevel avatar mokdevel commented on June 16, 2024

The import works in mysterious ways once it mixes the palette. As mentioned the image may look good, but !media data is weird. Anyway, I was able to convert my image with the 'Directly replace colors'. So my second issue is "sorted". The first one I still would like to have. ;-)

from c64studio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.