HRay source code released
The source code to Kenneth Hoste’s HRay raytracer including its Gtk2Hs GUI is now available.
HRay screenshots »
The source code to Kenneth Hoste’s HRay raytracer including its Gtk2Hs GUI is now available.
HRay screenshots »
June 12th, 2005 at 7:20 am
Hi!
Attempt to compile source code with 0.9.7.92 yields:
gour@gaura-nitai ~/prj/hray $ ghc –make -O HRayGUI -o HRayGUI
Chasing modules from: HRayGUI
Compiling PixBufInternals ( ./PixBufInternals.lhs, ./PixBufInternals.o )
./PixBufInternals.lhs:47:15:
Ambiguous occurrence `pixbufGetPixels’
It could refer to either `PixBufInternals.pixbufGetPixels’, defined at ./PixBufInternals.lhs:51:1
or `Graphics.UI.Gtk.Gdk.Pixbuf.pixbufGetPixels’, imported from Graphics.UI.Gtk at ./PixBufInternals.lhs:17:1-22
Sincerely,
Gour
June 12th, 2005 at 12:28 pm
Yes, HRay included some code which is now included in the 0.9.8 release. So HRay no longer needs the PixBufInternals module and instead needs a small patch to use the new Pixbuf manipulation features in Gtk2Hs 0.9.8.
June 12th, 2005 at 5:40 pm
Hey Gour,
Thanks for your interest in HRay. I’m aware of the Pixbuf related problem with the new Gthk2Hs release, and I’ll try and solve it asap. When it’s done, I’ll add a patch to the darcs repo, and provide an extra zip with a release for 0.9.8.
June 13th, 2005 at 5:24 am
Hi!
Well, being a Haskell & Gtk2hs newbie, I’m definitely interested for every piece of good code enabling me to learn something
It’s not a rush
Nice that you provide for a darcs repo
Sincerely,
Gour
June 13th, 2005 at 8:48 pm
I’ve updated the darcs repo with the patch provided to me by Duncan. It should work fine now with Gtk2Hs 0.9.8. Feel free to comment on it !
June 14th, 2005 at 9:59 am
Hi!
Now it compiles; cui works, but gui does not work, i.e. File Open dialog does not react
Sincerely,
Gour
June 14th, 2005 at 11:26 am
That’s because there is no dialog
You have to enter the path yourself… It’s pretty basic
June 14th, 2005 at 11:48 am
You want to use the new FileChooserButton!

(available in Gtk2Hs 0.9.8 with Gtk+ 2.6)
June 14th, 2005 at 12:34 pm
Huh…OK. It works
But I didn’t see it was mentioned in the help file
Sincerely,
Gour
June 14th, 2005 at 12:36 pm
Hi!
This GTK(2hs) is really nice!
Sincerely,
Gour