|
Post by Pyrofer on Oct 5, 2019 12:46:40 GMT
So VDC Mode mania had some nice pictures in it, I assume they were not manually entered as data statements so how were they imported?
I have a picture I want to convert to a 640x200 8x2 image and display, in theory this means a black and white bitmap and a second set of colour data, I have no clue how to export this data though.
My attempts to turn the image to black and white and export just the pixel data result in a lot of solid white pixels.
Does anybody have existing tools for doing this sort of conversion?
|
|
|
Post by mirkosoft on Oct 5, 2019 18:08:54 GMT
It is 'cause color is representing in single pixel value 0/1 on VDC and bitdepth in color images is various from 1 to 32. It needs to correct bitdepth down to 2 colors - 1 bpp but before and don't forget perform dithering - example Floyd Steinberg. Easiest way is to use IrfanView. This is for monochrome pictures. For 16 color pictures (VDC 16 colors) it needs to apply selected palette (own color values exactly same like VDC colors) and allow dithering. But it is not yet finished - it needs apply color cell map. But this mentioned application cannot to do. I have tool but restricted permissions by author, my friend, which does it - various modes. But I lost contact with him. Also want to create much user friendly application than renderers in VDC Mode and VGA Mania, but author didn't confirmed using sources yet to make it easier for me. But you can use modes in VDC Mania - it includes renderers for them. It needs only convert source to PPM binary coded type image - again with IrfanView and put file into executable folder with name input.ppm For monochrome modes you can use my VBM Renderer 2.0 fixed. Use fixed version, earlier has saving problem. You can find it on CSDb. I plan to extend it later. Application requires sources in PBM or PGM format and exact mode dimensions. Hope this helps.
Miro
|
|
|
Post by Pyrofer on Oct 5, 2019 19:16:33 GMT
That's great, but it doesn't quite meed my needs. I have a VDC "ready" image. It's been made using the correct 16 colour palette and obeys the 8x2 colour limit. It's 640x200 pixels and I need to simply save it in a format I can read back into VDC memory to display easily. So I don't want to alter the image in any way, just get it into a data format I can load into VDC ram. I think the big issue is my understanding rather than anything technical. I just can't get my head around how to turn coloured pixels into pixel data and colour data.
|
|
|
Post by mirkosoft on Oct 5, 2019 19:22:09 GMT
So, have you pixel map and color (attribute) map? It is all you need nothing more - only copy to data areas for pixels and for colors (attributes)
Or have you single file only not color and pixel map separated?
Bit confusing now. Miro
|
|
|
Post by tokra on Oct 6, 2019 11:38:43 GMT
Does the image already fit the restrictions of the color-map? E.g. just two colors per 8x2 block? Then you would need to go 8x2-block by 8x2-block to decide which is the background color of the block (and set the according pixels to 0) and which is the foreground color (and set the according pixels to 1). Then you have your black&white-bitmap. Then you re-apply the colours in your colour-map for each block and voila!
The converters from VDC Mode Mania were done by Mike and they acutally take a true-color-PPM-file and apply ditheirng to get the best color-result. They are part of the ZIP-archive of Mode Mania under the directory converters. Mike likes to keep the sources to these private however. For your task of converting a given image that already fits the restrictions these will not work. But it should be possible to write a small BASIC-program to do the job.
|
|
|
Post by emarti on Jan 8, 2020 13:47:00 GMT
I do not want to open a new topic about this so I wrote here. You know VDC Mode Mania V1.11. It includes convertors tools and sources. But I can not use it. For example: I convert from 800x600 jpg picture to 800x600 PGM 2 color and 1 bpp via irfanview to display monochrome on c128. Then what should I do?
How to use this pgm file on c128 emulator? In fact, May you write tutorial shortly about this? Thank you all.
|
|
|
Post by mirkosoft on Jan 8, 2020 23:10:17 GMT
Hi! I created renderer for VDC 720x700 and 800x600 longer time ago. It features also rendering VDC VGA Mania monochrome modes. How to use: 1. open PGM in exact dimensions (720x700 or 800x600) 2. render 3. save PRG after use loader in VDC Mania release. Here's link: csdb.dk/release/?id=179470Miro
|
|
|
Post by emarti on Jan 9, 2020 14:53:56 GMT
Hi! I created renderer for VDC 720x700 and 800x600 longer time ago. It features also rendering VDC VGA Mania monochrome modes. How to use: 1. open PGM in exact dimensions (720x700 or 800x600) 2. render 3. save PRG after use loader in VDC Mania release. Here's link: csdb.dk/release/?id=179470Miro Thank you. I can do it.
|
|