Comix 0.3 - a CBZ/CBR viewer for IRIX.

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
hamei
Posts: 10433
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby hamei » Tue Jan 21, 2014 7:07 am

jimmer is a mean man :(

But I finally figured out that I never installed the debug Viewkit libaries ... oops. So, drop the -DEBUG directive and change the libraries from /usr/local/lib (you really have your ViewKit there, jimmer ?) to /usr/Motif-2.1/lib32 and awaaaay she goes !

The centered "page 1 of 32" thing looks nice. The progress bar looks very Irix-native. File handling looks very Irix-native, maybe needs a filtration option ? Image scaling still needs some work ... full-screening is interesting :)

Looks pretty good tho ... lots of potential. Don't waste your time on tardists, j. You keep banging on useful code, someone else can knock out binaries ...

Now let's make it view jpegs :D

comix-0.32.zip
(91.36 KiB) Downloaded 53 times
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby foetz » Tue Jan 21, 2014 8:14 am

hamei wrote:I never installed the debug Viewkit libaries ... oops

there was a reason why i provided the edited makefiles (which you didn't try it seems :P ). among other things they had no debug flag

User avatar
hamei
Posts: 10433
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby hamei » Tue Jan 21, 2014 5:34 pm

foetz wrote:there was a reason why i provided the edited makefiles (which you didn't try it seems :P ).

I did ! I did ! And thank you !

But I'm a stubborn old bastard who wants to understand why things don't work, so I went back and struggled with it a little, too.
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby foetz » Tue Jan 21, 2014 7:41 pm

oh hehe okay then

User avatar
jimmer
Donor
Donor
Posts: 465
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby jimmer » Mon Feb 24, 2014 8:30 am

Hello All,

Apologies for the delay in dropping a new tarball, blame Real Life(tm) and all that jazz.

Comix can now load an entire CBR/CBZ file into memory or be told to load each page from disk one at a time. The obvious advantage is that Comix might run a little better on low-memory machines. The less obvious advantage is that this code can now be used as a base for a generic image viewer. The downside is that page display will be slightly slower in the 'load from disk' case as each time you flip a page the image data needs to be loaded from sloooow disk rather than fst memory.

Next release will be mostly UI related things.

J.

Comix 0.3.3

- Reworked memory handling
- Preferences dialog
- Code clear-up
Attachments
comix-0.3.3.tar.gz
C++ sources
(201.8 KiB) Downloaded 43 times
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby foetz » Mon Feb 24, 2014 9:03 am

nice thanks for the update. good to see something is maintained steadily :-)

User avatar
BetXen
Posts: 297
Joined: Tue Sep 21, 2004 12:05 pm
Location: Blonay, Switzerland

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby BetXen » Tue Feb 25, 2014 3:41 am

Hi J !

Thanks for this little piece of software that gives another interest to our old machines :D

I was thinking about another trick to make the reader's experience smoother in low-end machines. Would it be possible to add another file reading option, I mean that three pages could loaded in the memory: the current one, the previous and the next one ? In that case, transition to those surrounding pages would be faster when flipping pages, while keeping the memory requirement to a reasonable amount.

BX
:Onyx2: : oxygen (4xR12k400) / :A3504L: :A3504L: : neon (16xI2 1.6, 9MB L2) / :O200: :O200: : beryllium (4xR12k270)
:Fuel: : nitrogen (R16k800) / :Octane2: : carbon (2xR14k600) / :Octane: : lithium (R10k400) / :Octane: : fluorine (2xR12k300) / spare 2xR12k360
:O2: : hydrogen (R10k195) / :O2: : sodium (R5k180) / :O2: : R5k180->200 MB and PM only
:Indigo2IMP: : helium (R10k195, HighImpact) / :Indigo2IMP: : boron (R4k250)/ :Indigo: : magnesium (R4k100) / :Indy: : aluminium (R5k180)
:4D70GT: 4D70GT : my very first one (now property of musée bolo and the foundation mémoires informatiques)
See the hinv/gfxinfo posts here.

User avatar
jimmer
Donor
Donor
Posts: 465
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby jimmer » Tue Feb 25, 2014 5:04 am

BetXen wrote:Hi J !

Thanks for this little piece of software that gives another interest to our old machines :D

I was thinking about another trick to make the reader's experience smoother in low-end machines. Would it be possible to add another file reading option, I mean that three pages could loaded in the memory: the current one, the previous and the next one ? In that case, transition to those surrounding pages would be faster when flipping pages, while keeping the memory requirement to a reasonable amount.

BX


You're v welcome!

When I added per-image viewing I did consider implementing the 3-file configuration you're suggesting, but I think to do it properly you'd have to use threads to read the files in the background while the main X event loop does its thing. Unfortunately, I have no idea how threads work. Or maybe workprocs, but I dont think that's what workprocs are for. Anyhow, it got too complicated and time-consuming for my tiny brain so I just blundered ahead with what we have now :)

That said, I did stumble upon an ugly bug in the file loading this morning. If comix doesn't have record of a previous CBZ/CBR file and you have per-page memory handling set, comix crashes when displaying a menu. The menu appears over the underlying opengl surface which forces a redraw, which currently needs image data to be present. But there isn;t any, as there's no record of a previous file. To make things worse, the menu-display crash happens before the file-dialog is posted so it's impossible to load a new file... It makes comix 0.3.3 significantly less useful than I had hoped it would be :(

Will be fixed in 0.3.4.

J.
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
jimmer
Donor
Donor
Posts: 465
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby jimmer » Sat Mar 01, 2014 3:48 am

Hello All,

This new version of Comix fixes the horrible menu display/file loading bug in 0.3.3 and introduces basic CBZ creation. You can now point Comix at a directory filled with JPEGs and it will compress those files into a shiny new CBZ.

Known bugs:

- random issues where unpack directory isn't cleared causing a newly opened comic to be 'added on' to previous comic.
- sometimes 1st page doesn't show properly, or Comix crashes on initial image load.
- CBZ creation dialog doesn't check hard enough whether your JPEG source directory exists or if your output name is sane.

Comix 0.3.4

- Menu display/file loading bug fixed
- Menus are now placed in overlay planes to remove image flicker
- Dialogs are _not_ placed in overlay places as they look horrible there :(
- Basic CBZ creation
- Option to wrap comic at begining and end
- Code cleanup
Attachments
comix-0.3.4.tar.gz
C++ sources
(203.3 KiB) Downloaded 52 times
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
jimmer
Donor
Donor
Posts: 465
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby jimmer » Tue Dec 22, 2015 3:49 am

Long time. No new Comix tarball. But now I'm working on 0.4 and am bumping into my limited understanding/experience of OpenGL/C++.

I'm trying to implement the 'change background colour of the image window' feature by using the glClearColour/glClear pair of OpenGL functions in Viewer.C.

What I'm seeing is that glColorClear/glClear works fine on the first run though the code. ie. the image panel is set to grey (or whatever other colour) when Viewer::setBgColour() is called from Viewer::ginit(). However, when Viewer::setBgColour() is called from the right-click activated pop-up menu on the image viewer panel... nothing happens. I have a feeling it might be due to the relevant OpenGL context not being active, but I'm not sure how to go about fixing it as the context does seem to be set in the VkOpenGL::cb_* parent-class callbacks.

Any help and explanation as to what I'm missing and/or doing wrong here would be appreciated.

J
Attachments
comix-0.4.tar.gz
(204.02 KiB) Downloaded 27 times
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
jimmer
Donor
Donor
Posts: 465
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby jimmer » Tue Dec 22, 2015 12:45 pm

Still stumped by the glClearColor/glClear issue, but have ticked off one more thing from the TODO list while I wait for help.

Comix 0.4.1
- added 'jump to page X' feature. Press 'j' to use.

J.
Attachments
comix-0.4.1.tar.gz
(204.57 KiB) Downloaded 26 times
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
vishnu
Donor
Donor
Posts: 3174
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby vishnu » Thu Dec 24, 2015 9:52 am

Am away from my SGIs through Jan 4 but will definitely be seeking to contribute to this effort thereafter... :D
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:

User avatar
jimmer
Donor
Donor
Posts: 465
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby jimmer » Sat Dec 26, 2015 3:07 am

Yay! :)

User avatar
vishnu
Donor
Donor
Posts: 3174
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby vishnu » Sat Dec 26, 2015 9:21 am

For anyone who may not have memorized it yet, the Viewkit developer's guide is here. ;)

By a strange coincidence I have the Linux version of Viewkit that SGI released through ICS for a mere $200 about 15 years ago. ICS still has a webpage for Viewkit here, but they no longer list it as one of their available commercial products... :|
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:

User avatar
jimmer
Donor
Donor
Posts: 465
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Comix 0.3 - a CBZ/CBR viewer for IRIX.

Unread postby jimmer » Mon Jan 04, 2016 8:33 am

Hey all,

Some minor progress was made on Comix over the holidays:

Comix 0.4.2
- improved configuration file handling
- adressed some of the issues with the temporary/unpack directory handling
- fixed a bunch of small things

For extra IMD-ness add:

Code: Select all

Comix*sgiMode: true
Comix*useSchemes: true
Comix*useEnhancedFSB: true

to your ~/.Sgiresources file and log-cycle or run:

Code: Select all

xrdb -merge ~/.Sgiresources
Attachments
comix-0.4.2.tar.gz
(204.39 KiB) Downloaded 24 times
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam


Return to “SGI: Development”

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest