bug#54973: Blender has no denoiser

2022-06-10 Thread Haider Mirza
I will close this Issue as it is open for pretty much no reason.
Thank you to Raingloom and anyone else who responded!

I might send a patch in the future tackling this problem.


signature.asc
Description: PGP signature


bug#54973: Blender has no denoiser

2022-04-16 Thread Haider Mirza

I had tried to package ISPC but CMake doesnt seem to work with me.

(define-module (ispc)
 #:use-module (guix packages)
 #:use-module (gnu packages bison)
 #:use-module (gnu packages llvm)
 #:use-module (gnu packages python)
 #:use-module (gnu packages flex)
 #:use-module (gnu packages m4)
 #:use-module (gnu packages version-control)
 #:use-module (gnu packages cmake)
 #:use-module (guix git-download)
 #:use-module (guix build-system cmake)
 #:use-module ((guix licenses) #:prefix license:))

(define-public ispc
 (package
  (name "ispc")
  (version "1.17.0")
  (source
   (origin
(method git-fetch)
(uri (git-reference
  (url "https://github.com/ispc/ispc.git";)
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
 (base32 
 "1klk1mhxjvyhzf1kqznimdb2f96czp76k8riv8yda87gfrk7cmfn"

  (build-system cmake-build-system)
  (inputs
   (list cmake python bison flex m4 git clang)) ; for 
   scripts/MakeHeader.py

  (home-page "https://www.openimagedenoise.org/";)
  (synopsis "compiler for a variant of the C programming 
  language")

  (description
   "ispc is a compiler for a variant of the C programming 
   language, with extensions for single program, multiple data 
   programming.")

  (license license:bsd-3)))


bug#54973: Blender has no denoiser

2022-04-16 Thread raingloom
On Sat, 16 Apr 2022 18:30:19 +
Ekaitz Zarraga  wrote:

> Hi,
> 
> --- Original Message ---
> On Saturday, April 16th, 2022 at 6:29 PM, Haider Mirza
>  wrote:
> 
> 
> > The Guix installation of Blender has no denoiser.
> > Blender's compositor says that Blender is compiled without
> > "OpenImageDenoise"
> >
> > Last time I checked OIDN (OpenImageDenoise) is free software and
> > all it's dependancies are also.
> > I tried to packaged OIDN but it just ended up being a massive pain
> > and It's depenadancy (ispc) just refused to compile.
> > Can you suggest some sort of solution (The IRC has no answers)
> > --
> > Haider Mirza via Emacs on a GNU/Linux system  
> 
> I had a similar issue in the past with blender, it was missing a
> dependency and I had to package it myself. It is what it is.
> Sometimes you need to package this kind of software, it's full of
> compilation errors and so on. The only thing we can do is to help you
> package it. Can you share the package you developed?
> 

It was already sent in the CC'd issue. I think it's best to continue
the discussion there, instead of forking it onto two lists.





bug#54973: Blender has no denoiser

2022-04-16 Thread Haider Mirza

This is currently very broken but this is what I had:
It is requires a package called ISPC.

(define-module (oidn)
 #:use-module (guix packages)
 ;; #:use-module (gnu packages base)
 #:use-module (gnu packages gcc)
 #:use-module (gnu packages python)
 #:use-module (gnu packages tbb)
 #:use-module (gnu packages cmake)
 #:use-module (guix git-download)
 #:use-module (guix build-system cmake)
 #:use-module ((guix licenses) #:prefix license:))

(define-public oidn
 (package
  (name "oidn")
  (version "1.4.3")
  (source
   (origin
(method git-fetch)
(uri (git-reference
  (url "https://github.com/OpenImageDenoise/oidn.git";)
  (commit (string-append "v" version
(file-name (git-file-name name version))
(sha256
 (base32 
 "14zga8xd7pxwhp50n36n0c8j12vdn92i90wf6nz868nlqvlpyakk"

  (build-system cmake-build-system)
  (inputs
   (list cmake gcc python tbb)) ; for scripts/MakeHeader.py
  (home-page "https://www.openimagedenoise.org/";)
  (synopsis "A denoiser")
  (description
   "open source library of high-performance, high-quality 
   denoising filters for images rendered with ray tracing.")

  (license license:asl2.0)))



bug#54973: Blender has no denoiser

2022-04-16 Thread raingloom
On Sat, 16 Apr 2022 14:36:06 +0100
Haider Mirza  wrote:

> Blender in Guix has no denoiser, as Blender is not compiled with 
> OpenImageDenoise or so Blender tells me.
> Therefore, the denoiser just renders a black image if it's 
> enabled.
> 
> Can you try and add this functionality as packaging 
> OpenImageDenoise has turned out to be a massive pain.

Can you send the WIP version of your OID package? Even if it's broken,
the person who tries to package it would benefit from seeing what
approach(es) have failed so far, so they don't repeat the same mistakes.
(That person could be me if no one gets on it. But I have uni stuff so
I'm not gonna promise anything.)

There are also other optional dependencies of Blender that would be
nice to have packages for.





bug#54973: Blender has no denoiser

2022-04-16 Thread Haider Mirza
Blender in Guix has no denoiser, as Blender is not compiled with 
OpenImageDenoise or so Blender tells me.
Therefore, the denoiser just renders a black image if it's 
enabled.


Can you try and add this functionality as packaging 
OpenImageDenoise has turned out to be a massive pain.