ShowPicture Colorized Effect

miker1264 · 627

miker1264

  • Senior Member
  • ****
    • Posts: 333
    • Karma: +12/-1
on: June 14, 2019, 08:12:35 AM
Over the last few years while working on writing my graphics programs including an ILBM Image Viewer and an Icon Editor in C# and now ShowPicture in C, I've had three long-term goals - to allow saving 24bit RGB directly to HAM6 and HAM8 which I demonstrated recently, to provide Icon Support for PNG Icons and IFF Icons (Amiga OS 3.5/3.9 GlowIcons), and a Colorize Effect to shift entire Color Groups using HSL Colorspace.

I'm working on finishing the Icon Menu Functions including Load Image, Save Image, and Save Icon which will work with PNG Icons at first, then IFF Icons later. The last of my major goals in graphics programming is Colorize. The three colored icon images are examples of what is possible with Colorize. It involves shifting one entire Color Group towards another on the HSL Color Wheel which is measured in degrees. Each Hue is rotated around the Color Wheel to the new location.

I'm currently working on Colorize as far as Converting RGB to HSL and HSL to RGB which are required for the functions to work correctly. I've also decided to use Relational Processing such as used in Computing HAM bytes across a scanline. The value of each HSL pixel is determined by comparison to other nearby pixels.



paolone

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +3/-0

salvatore

  • Guest
Reply #2 on: June 15, 2019, 04:28:33 AM
yes ;)



miker1264

  • Senior Member
  • ****
    • Posts: 333
    • Karma: +12/-1
Reply #3 on: June 17, 2019, 12:19:55 AM
Thanks! It has taken a few hundred hours of labor intensive programming to get this far. But it has been an exciting journey of discovery. I'm also writing an Instructions PDF to describe all the various Program Menus and Features like Paolone does with Icaros and another PDF called Programming ShowPicture which will illustrate the techniques used and how they came about. As soon as the PDF's are done and I have finished Icon support which is about 90% done, I will post the first version of ShowPicture for everyone.

I have decided that ShowPicture is NOT a paint program. Rather it's a Graphics Processing Program. We don't paint directly to pixels on screen. We manipulate all the pixels and transform them into something else. It involves a lot of Formulas, Specialized Algorithms, and Mathematics and some Color Theory mixed in.

Given the choice of doing things the easy way or a more difficult and more unconventional way that would yield superior results, I would choose the hard way! It's more rewarding in the end.

The many possibilities while using the Colorize Effect as with the colored icon images in the sample  are evident. Colorize can be a powerful tool. I could do it the easy way and just process one Color Group transformation at a time, or I could do it the hard way and allow multiple transformations. I'll do it the hard way. ;)

An image such as these samples can have one or multiple Color Groups. The original Drawer Icon has a single Blue Color Group. The hues are inthe Range of 210 to 240 degrees on the HSL Color Wheel. So, how would we process multiple Color Groups simultaneously, pushing our CPU's and GPU's to the max? I will scan the image and sample pixels using 12 predefined Color Buckets to determine Color Groups the display a Color Selector with up to 12 groups on top represented by colored Squares. The bottom 12 slots will be empty so the user can choose destination colors for each Color Group in the image. Then we could process 12 groups at a time. That's a lot of pixel operations! It should take a few seconds.

Doing things the hard way also applies to a Colorful About Box. I'll give you an idea of what I'm planning. Most programs and AROS libraries that use icons only look for one or two png images. ShowPicture has a special App Icon that has three png images. The third png is a 100x100 app image. I might use bit fields and some creative masking for special effects.

Happy Coding!



aha

  • Newbie
  • *
    • Posts: 39
    • Karma: +0/-0
Reply #4 on: June 17, 2019, 09:28:18 AM
@miker1264

Wow! Im looking forward to it. Thank you for all your efforts!



salvatore

  • Guest
Reply #5 on: June 17, 2019, 09:47:09 AM
you actually already exist zunepaint regarding the design (especially pixel art, with some additional feature) I think it will be updated over time, so better as you say to focus on something else, and better if innovative for the most demanding and experienced, the remaining programmers of the aros subsystem are doing a great job, then we have icaros, I make audio recordings with a small tool that records the tracks in raw, then you have to use a native program for 68k (in emulation with janus) for editing, I'm thinking of a gui for sox, we'll see later ;)

Translated with www.DeepL.com/Translator



salvatore

  • Guest
Reply #6 on: June 17, 2019, 09:53:39 AM
i see this



miker1264

  • Senior Member
  • ****
    • Posts: 333
    • Karma: +12/-1
Reply #7 on: June 17, 2019, 04:35:40 PM
Looks great! I realy like the background image of the balloons. Where can I get a copy? :)




miker1264

  • Senior Member
  • ****
    • Posts: 333
    • Karma: +12/-1
Reply #9 on: June 17, 2019, 09:24:00 PM
Thanks for the link. I'll look into what you mentioned to see what will need to be done.

I will be working on ShowPicture for at least two more weeks before the first release version.



salvatore

  • Guest
Reply #10 on: June 17, 2019, 10:59:44 PM
thank you you you are a friend, the contact I have now only works with hollywood unfortunately works non-stop even he, now has a fairly complicated project is a game that will also be for aros, you can also play via server I put the link and take a look at him, we look forward to your program, you've been very good

Allanon Developer

https://www.youtube.com/watch?v=p0d7RTCMxL4



miker1264

  • Senior Member
  • ****
    • Posts: 333
    • Karma: +12/-1
Reply #11 on: June 18, 2019, 06:04:02 AM
I'm looking at it now. It's interesting that it was first released on June 17, 1996. I'm looking at it on June 17. Just interesting.

I should probably give some background information about myself. My job during the day is to use an AutoDesk graghics software called AutoCAD to layout design files. I'm a graphics designer. While I was studying to get my AutoCAD degree many years ago we used another AutoDesk product called 3D Studio r4 and I still have many 3ds Meshes and Materials in an archive somewhere. I also wrote all the Save ILBM, Save PCX and Save Targa functions in my ShowPicture graphics program. I also have a Cpp version 5.0 install cd for the .dsp and .dsw files to compile an exe file. So I'm very familiar with all these aspects. And now all these things come together on June 17, the very day it was released. It's just interesting, but also very challenging.

I'll study it for the next few weeks and start with the viewer and loader and compile them. It may be modular in desgn with several modules and a main executable. It uses an Octree Algorithm for rendering. I'm sure there will be a few more interesting and new techniques there that I may learn from.

When I start something new I like to make an nice PNG App Icon. I'm envisioning a Gold Specular Ball with a Drop Shadow underneath like something I might render in 3D Studio.

Now I have to go search through my hard drives to find my Kero Lamp and Marble Vase Meshes that I might one day render again. :)
« Last Edit: June 18, 2019, 06:46:07 AM by miker1264 »



miker1264

  • Senior Member
  • ****
    • Posts: 333
    • Karma: +12/-1
Reply #12 on: June 18, 2019, 08:23:51 AM
Here's a new App Icon.



miker1264

  • Senior Member
  • ****
    • Posts: 333
    • Karma: +12/-1
Reply #13 on: June 18, 2019, 08:26:51 AM
Here is the PNG Icon File itself.




salvatore

  • Guest
Reply #14 on: June 18, 2019, 10:05:17 AM
Morning man

I am an amiga user since 1992, I have owned a 500 with 1 mb of ram, only in my city and schools there was not so much talk about computer programs etc....I used to use it for games, now I haven't played for years, unfortunately in 2004 I got sick and I live as I can, but everything is good in short there is worse, I have my computer, my family, my dog and I spend a lot of time on the forums that talk about amiga, the rendering engine of si ray and also general the program is not bad and the only open source in the world amiga (apparte skulpt3d which is a little more primordial and it seems to me that it does not support raytracing),  only in these last years the most famous programs of 3d graphics are abandoning the old philosophy of the past, cmq in my opinion if you master well a program of a good level you can do many beautiful things and also have fun, I remember that I used wordworth 5 on an amiga 1200 I had done a course on office and I tell you that it had all the functions of word95, at least I did everything.
It seems to me that ray supports mesa, on aros we have the subsystem gallium (an old version, but runs doom 3 without any problems I tested it personally), it's nice the icon of the program ray, then send me your paypal address ;), I'm not a programmer but I have a lot of heart aros, think it's about 25 years that work there, I do not know why they call it amigalike when in the end is the workbench 3.1 version 40.68.

hello

Translated with www.DeepL.com/Translator
« Last Edit: June 18, 2019, 02:19:58 PM by salvatore »