Porting Violet to Java

A forum for exporter development discussion.
User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Jan 30, 2008 3:14 am

Uhm...
32bits is per channel while 24bits is in total...
It's 32bpc images... OR... 96 bit images ;)
24bit is 3*8 bit.
If it's a 32bit Image, it's actually an RGBA with still 8bits per channel.

Why is it impossible to change the image without loosing most of the information? Couldn't you simply not translate it to 8bpc after doing all the operations?

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Wed Jan 30, 2008 3:14 am

On the other hand psor, there's a possibility to save an IGI to HDR or EXR without tonemapping, so that you can HDR process it in another app.

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Wed Jan 30, 2008 3:18 am

Kram, not all HDRI images are 96bits per pixel.
Radiance .HDR cheats and uses 32bits per pixel to store HDRI values by storing RGBE with 8 bits each, which translates to
red = r * 2^e;
green = g * 2^e;
blue = b * 2^e;

edit: clairified slightly
Last edited by dougal2 on Wed Jan 30, 2008 3:22 am, edited 1 time in total.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Jan 30, 2008 3:19 am

That'd already be good enough, I guess :)
It'd even be an advantage over Indigo-exporting EXRs, as you can also have exrs from Indigo64bit (Win) and Indigo doesn't need to save it again and again, which makes it a tiny bit faster :)

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Wed Jan 30, 2008 3:21 am

WTF are you rambling about kram? that makes no sense.
It doesn't matter what platform you're on, the image formats are the same.

User avatar
psor
1st Place Winner
Posts: 1295
Joined: Sun Jun 25, 2006 1:25 am
Location: Berlin
Contact:

Post by psor » Wed Jan 30, 2008 3:29 am

Thanx Doug! :D

Just to make sure. Do I understand correctly that I could use ...

1. Bloom
2. White Balance
3. Chromatic Aberration
4. Glare
5. Noise reduction

... on the IGI, then I could save to EXR/HDR but without Tone mapping?

This would already help a lot, because the tone mapping I could do in
another application. Actually it's not that important Doug, because I
can do the most stuff in other applications too and the bloom glare
comes from the new diffraction code in Indigo. All that just takes a bit
more time. So please don't see this as a must have, rather as a nice idea.

Thanx mate! ;o))




take care
psor
"The sleeper must awaken"

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Jan 30, 2008 3:54 am

Indigo 64bit doesn't allow saving exrs... I know that it else doesn't matter, which Platform you're using...

aha, e = exponent? I see :) Didn't know that.

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Wed Jan 30, 2008 3:59 am

OK, I see Kram. I was about to suggest to psor, why not just set indigo to save EXRs if you want to edit in another app, but if not all versions of indigo can save EXR then there's more of a reason to implement IGI->(other HDRI format) in jViolet.

User avatar
psor
1st Place Winner
Posts: 1295
Joined: Sun Jun 25, 2006 1:25 am
Location: Berlin
Contact:

Post by psor » Wed Jan 30, 2008 4:01 am

8) :lol: :wink:
"The sleeper must awaken"

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Jan 30, 2008 4:15 am

:D

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Wed Jan 30, 2008 7:18 am

jViolet under linux. the GUI comes up, however it's unresponsive, frozen.
This is using sun-java5-jre on ubuntu64 on x86/64
Attachments
jv-linux.png
jv-linux.png (25.57 KiB) Viewed 6689 times

User avatar
eman7613
Posts: 597
Joined: Sat Sep 16, 2006 2:52 pm

Post by eman7613 » Wed Jan 30, 2008 9:00 am

do you have compizfusion/beryl on?
Yes i know, my spelling sucks

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Wed Jan 30, 2008 9:40 am

It is installed on that machine, but I don't think it was active. Is it known to cause problems ?

User avatar
psor
1st Place Winner
Posts: 1295
Joined: Sun Jun 25, 2006 1:25 am
Location: Berlin
Contact:

Post by psor » Wed Jan 30, 2008 10:02 am

@dougal2

I checked out your actual code on the svn and it works under
Windows but under xubuntu with icedtea-java7-jre I get those errors ...

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
Caused by: java.lang.ClassNotFoundException: org.jdesktop.layout.GroupLayout$Group
        at java.net.URLClassLoader$1.run(URLClassLoader.java:221)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:209)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:324)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again
With sun-java5-jre AND sun-java6-jre I get this error ...

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
So how does jViolet run under linux? :? :roll: :oops: :wink:

btw. I build the jar with NetBeans 6 with jdk1.5.0_14 on Windows.
If I try to build with jdk1.6.0 and jdk1.7.0 I get errors.

edit: Ahhh, it looks like I'm missing the complete swing component. :P :D ;)




take care
psor
"The sleeper must awaken"

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Wed Jan 30, 2008 11:18 am

OK, so here we go with the useful update cycles:

REVISION 30
Constructed jVioletAboutView. AboutView show/hide etc works OK.
Dropped ImagePanel into ScrollFrame on main GUI.
Started linking up GUI. Basic (file) functions work, but need to be written better.
Loading IGI and HDR works. Image is displayed with default processing settings.
ScrollFrame doesn't yet scroll.
Save PNG and JPG work OK.
Removed old template resources.

REVISION 31
removed empty folder not caught in revision 30.

Please post back here in this manner if you make updates in the future, so that we can track progress. Cheers :)

Post Reply
137 posts

Who is online

Users browsing this forum: No registered users and 2 guests