Porting Violet to Java

A forum for exporter development discussion.
Post Reply
137 posts
User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Tue Jan 29, 2008 1:18 pm

Here's how it looks on Vista:
I'm not sure if we really need the log output window. Most GUI apps typically don't have log output, and it'd make some space if we got rid of it.
However, it'll be handy for now whilst we/I debug.
Attachments
jV-Vista.png
jV-Vista.png (62.01 KiB) Viewed 3014 times

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

Post by psor » Tue Jan 29, 2008 1:41 pm

Erm, ... Doug, now you confuse me. *LOOOL*

You asked, why I might want to save the LDR output of violet into a HDRI
format. Well, ... honestly I thought it would be possible to save a HDRI
from Violet since it's loading an IGI. Am I totally wrong?! *aaaaargh*

:P :D ;)

Sorry for being so confused, but I just don't get it .... *G*




take care
psor
"The sleeper must awaken"

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

Post by eman7613 » Tue Jan 29, 2008 2:13 pm

cool, looks my code holds up well so long as a rediculasly thick font is used like in metal :)

added another comit, the FileListener interface and the IndigoImageFile class (Extends java.io.file) that will allow for what psor is asking about. very simple class and you can tell how it works from the method & parameter names.
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 » Tue Jan 29, 2008 11:01 pm

psor, the main point of using Violet is for the tonemapping process, which converts HDR images into LDR images.
The output will always be LDR. There's no point in saving to an HDR format after tonemapping.

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

Post by dougal2 » Tue Jan 29, 2008 11:44 pm

osx screenshot
Attachments
jv-osx.jpg
jv-osx.jpg (60.81 KiB) Viewed 2980 times

User avatar
OnoSendai
Developer
Posts: 6236
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Wed Jan 30, 2008 12:13 am

cool :)

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

Post by dougal2 » Wed Jan 30, 2008 12:33 am

Glad you approve Ono.

Is there any chance you'd like to share the Camera tonemapping code? I'm not sure even if I'd understand it if you did, but I'm sure someone here might be able to translate it.

Certainly someone else will have to do the diffraction limited stuff. I've tried about 3 times to get my head around it and it's just beyond me.

User avatar
drBouvierLeduc
Posts: 412
Joined: Wed Oct 11, 2006 2:32 am
Location: france

Post by drBouvierLeduc » Wed Jan 30, 2008 12:37 am

I was wondering : what are the pros and the cons of java ? I mean, from an user point-of-view.
Is it faster, or lighter , or... ?

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

Post by dougal2 » Wed Jan 30, 2008 1:13 am

Mainly for cross-platform use.
I doubt it'll be faster, but hopefully just as fast as the c++ version. It'll probably be a tiny bit smaller though.

neepneep
Indigo 100
Posts: 413
Joined: Wed Jun 28, 2006 10:21 am

Post by neepneep » Wed Jan 30, 2008 1:15 am

java....you'll be able to do tonemapping on your cellphone :D


@dougal2: any chance of also having a 'save tonemapping settings' so the same settings can be applied to more than one image?

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

Post by dougal2 » Wed Jan 30, 2008 1:19 am

neepneep:
Yes this is possible. Perhaps we could also have "batch render".

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 2:30 am

Erm, ... Doug of course there is a point. The HDR format is not just an
invention for a conversion but to keep all those informations, but you
know this. My point is and will ever be, that I can do the tonemapping,
then save as HDR again and later on I still have the option to change
the tonemapping or do other postprocessing in another application
that supports 32bit. Thats my only point ... ;)

nb: You know, it's cool to have the nice effects Violet is offering
but after this I wanna keep my 32bit image to post process in another
application. That's it! :D :D ;)

If this is to much work and no other user would like to see this, then I
don't mind if it's not possible ... I'll find another way. ;)



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 2:35 am

no, psor. after tonemapping, the image is no longer 32bit. it gets converted to 24-bit RGB. There's no point in saving to HDR format, as 24bit RGB is NOT HDR.

If you want to load the 24bit image into (for example) photoshop and then process using 32bit precision in a 32bit mode, there's nothing stopping you.

But saving a 24bit image in 32bit format does not give any benefits. The extra 8 bits has already been lost.

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 2:43 am

Thanx for clarifying! I thought the tonemapping process would be as in
other applications to change the exposure/contrast on EXR/RAW files.
Of course if tonemapping does change the image to 8bit per channel,
then there really is no point. *cry*

Thanx again! :D :D ;)

nb: Then we need the presets! :twisted: :wink:



take care
psor
"The sleeper must awaken"

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

Post by eman7613 » Wed Jan 30, 2008 3:06 am

general benifits of java, smaller aplication size, runs in a VM (cant hurt your computer that much), and cross platform. It can be slightly slower 5-10%, but it is general its the same speed
Yes i know, my spelling sucks

Post Reply
137 posts

Who is online

Users browsing this forum: No registered users and 1 guest