Hi group,

I tested nona-gpu a bit further.

After update of graphic driver, I got the follow error from nona:

nona: GL info log:
Fragment shader failed to compile with the following errors:
ERROR: 0:4: 'const in' : overloaded functions must have the same
parameter qualifiers
ERROR: 0:5: 'const in' : overloaded functions must have the same
parameter qualifiers
ERROR:  compilation errors.  No code generated.


nona: coordinate transform shader program could not be compiled.

The following patch (changed interface of sinh and cosh) solved this
problem:

Index: src/hugin_base/vigra_ext/ImageTransformsGPU.cpp
===================================================================
--- src/hugin_base/vigra_ext/ImageTransformsGPU.cpp     (Revision 4282)
+++ src/hugin_base/vigra_ext/ImageTransformsGPU.cpp     (Arbeitskopie)
@@ -391,8 +391,8 @@
     oss << "#version 110" << endl
         << "#extension GL_ARB_texture_rectangle : enable" << endl
         << "uniform sampler2DRect SrcTexture;" << endl
-        << "float sinh(const in float x) { return (exp(x) - exp(-
x)) / 2.0; }" << endl
-        << "float cosh(const in float x) { return (exp(x) + exp(-
x)) / 2.0; }" << endl;
+        << "float sinh(in float x) { return (exp(x) - exp(-x)) /
2.0; }" << endl
+        << "float cosh(in float x) { return (exp(x) + exp(-x)) /
2.0; }" << endl;

     if (needsAtanWorkaround) {
         oss << "float atan2_xge0(const in float y, const in float x)
{" << endl

Now nona is partially running:

>From inside hugin the output is ok when
* project with cropped tif output (n"TIFF_m c:NONE r:CROP") with and
without cropped output area
* project without cropped tif output (n"TIFF_m c:NONE") without
cropped output area

When using a project without cropped tif output and with cropped
output area nona is crashing after the first image (but the first
image is correctly saved, then crashing)

Using nona from the command line (nona -g -o test project.pto) does
not work. Nona is always crashing after the first image. With some
settings the first image is saved, with other only an empty file is
created.

Maybe there's a bug in the save procedure?

Thomas

PS: When enabling GPU remapping in hugin preferences and open a new
project the normal preview window is not working. Hugin is crashing or
I'm getting the hugin error: ERROR:  (..\..\..\..\hugin-trunk\src
\hugin1\hugin\PreviewPanel.cpp:487) PreviewPanel::updatePreview():
error during stitching:  Precondition violation!
RemappedPanoImage<RemapImage,AlphaImage>::remapImage(): image sizes
not consistent
(After deactivating the GPU option and reloading the project the
normal preview window is working again.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to