HRay source code released

The source code to Kenneth Hoste’s HRay raytracer including its Gtk2Hs GUI is now available.
HRay screenshots »

10 Responses to “HRay source code released”

  1. Gour Says:

    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

  2. Duncan Says:

    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.

  3. boegel Says:

    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.

  4. Gour Says:

    Hi!

    Thanks for your interest in HRay.

    Well, being a Haskell & Gtk2hs newbie, I’m definitely interested for every piece of good code enabling me to learn something ;)

    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.

    It’s not a rush :-)

    Nice that you provide for a darcs repo ;)

    Sincerely,
    Gour

  5. boegel Says:

    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 !

  6. Gour Says:

    Hi!

    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 !

    Now it compiles; cui works, but gui does not work, i.e. File Open dialog does not react :-(

    Sincerely,
    Gour

  7. boegel Says:

    That’s because there is no dialog :) You have to enter the path yourself… It’s pretty basic :)

  8. duncan Says:

    You want to use the new FileChooserButton! :-)

    (available in Gtk2Hs 0.9.8 with Gtk+ 2.6)

  9. Gour Says:

    That’s because there is no dialog :) You have to enter the path yourself… It’s pretty basic :)

    Huh…OK. It works :-)

    But I didn’t see it was mentioned in the help file ;)

    Sincerely,
    Gour

  10. Gour Says:

    Hi!

    You want to use the new FileChooserButton!

    This GTK(2hs) is really nice!

    Sincerely,
    Gour