Porting Violet to Java

A forum for exporter development discussion.
Post Reply
137 posts
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 3:24 am

Doug, as I wrote above ... implement .HDR instead. I'll ask Ian if I might
share the partially code of radium with you, then you just have to copy
the stuff and plug it in jViolet. If you're interested I'll dispatch a mail to
Ian in a second and will get back to you as soon as possible. ;)


take care
psor
Last edited by psor on Tue Jan 29, 2008 3:31 am, edited 1 time in total.
"The sleeper must awaken"

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

Post by dougal2 » Tue Jan 29, 2008 3:28 am

Leave it a while psor. There's still plenty work to do just to make it useable with IGIs.
Extending to other formats can come later.

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

Ok, as you wish! 8) :lol: ;)



take care
psor
"The sleeper must awaken"

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 3:38 am

Just as a quick note. I quickly checked the latest code of sunflow that's
available per svn, ... and they already have the .exr and .hdr stuff
included. So if you're interested, or anyone else, ... take a look there.
So there is no need to bug Ian. :oops: :roll: :wink:

nb: They also have the IGI read/write stuff in there. :shock:




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 » Tue Jan 29, 2008 3:40 am

hmm, ok if it's already been done I may have a quick look at how they did it.
If I have to start from scratch, it'll have to wait a while.

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 3:54 am

Thanx Doug! :oops: 8) :wink:


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 » Tue Jan 29, 2008 9:11 am

Hang on a sec... why do you want to save the LDR output from Violet into HDR formats?
This doesn't make much sense.

On the other hand I can understand full reading HDR and EXR files.
Sunflow has sources for reading HDR only, I'll have a look at that first.

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

Post by eman7613 » Tue Jan 29, 2008 9:19 am

Okay, after anoying power problems my api work on the gui was lost, but not a big deal the hard part i had a backup up :D

Currently trying to reslove one anoying conflict as svn wont let me commit till im done, but any way here is what it looks like (Metal l&f dosent line up right due to diffrent fonts, but it sucks anyway so im not so concerned)

Everything in the GUI should be responsive and change when you play with it, but its not connected to anything (again, lost my api work)
Attachments
jViloetGUI.PNG
New GUI of jViolet
jViloetGUI.PNG (27.84 KiB) Viewed 4078 times
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 9:28 am

You might not have been able to commit due to my server being down this afternoon after a powercut.
Strange we both had power problems today :?

Anyway, the GUI looks good :)

I've done yet more refactoring I'm afraid - trying to move away from the slightly dis-organised c++ file layout and make the Java packages more logical.
If you can't manage to commit or resolve conflicts etc, you can attach or PM me your sources and I'll merge it by hand.

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

Post by Kram1032 » Tue Jan 29, 2008 9:52 am

Are you able to fix the histogram-problem, I found earlier?

The one, that gets visible, if you resize the window :)

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 am

First attempt at loading an HDR image, using a class from sunflow:

Almost there... I'm reading the data in the right order at least, just a problem with scaling or number format or something.
(This is the debevec grace cathedral probe http://www.debevec.org/Probes/ )
Attachments
grace_probe_641.png
grace_probe_641.png (447.86 KiB) Viewed 4064 times

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

Post by dougal2 » Tue Jan 29, 2008 12:05 pm

psor, you got it ... Radiance HDR loading ;)
Attachments
grace_probe.png
grace_probe.png (949.75 KiB) Viewed 4059 times

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

Post by dougal2 » Tue Jan 29, 2008 12:46 pm

BTW, eman:
I'm going to stop committing revisions now until we've got your GUI in place. Sorry if my obsessive updates make it hard for you.

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

Post by eman7613 » Tue Jan 29, 2008 1:03 pm

Okay, your commiting help me a lot, i had files from 3 different commits and didnt know it! :twisted: Its now up there still w/o the api as i was trying to get the damn thing to comit. Im actualy going to write a file listener that can do what psor was asking casue i think i can :P

also, make sure the sunflow's license will let you barrow their code.
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 1:10 pm

Sunflow Licence:
Copyright (c) 2003-2007 Christopher Kulla

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.
Probably jViolet will end up with the same licence, so there's no problems.

Post Reply
137 posts

Who is online

Users browsing this forum: No registered users and 36 guests