Dear Ryan, I commited an updated CMakeLists.txt file to find GLUT in the SDK. Here I set only the root search path of GLUT. In my current working environment I created a base directory "glut" in the root of the SDK directory tree. The include file glut.h resides in .\glut\include\GL\glut.h which is the default from the sources. The library glut32.lib resides in .\glut\Release\glut32.lib which is the location where the default FindGLUT from CMake 2.6.4 searches for the library. Thats all on win32 platfrom to work. I used the same sources from Nate Robins to build the static GLUT library (see also thread "Re: The way to 2009.2").
Guido Ryan Sleevi schrieb: > Compiled my own x64 version (using the Glut For Win32 sources - > http://www.xmission.com/~nate/glut.html ), as I wanted to see if there was > going to be any headache on Windows. Some wonky macros, but nothing fatal. > In order to get CMake to find Glut, I had to touch my FindGLUT macro, but I > imagine that's because of the use of Glut for Win32. > > I'll see what other video cards I can scrape up and see how they handle. > > Is there some particular set of test data to use? Just threw some simple > stuff at it, nothing complex, but it all turned out fine. > > Test System: Vista x64 (SP2) > Video Card: GeForce 8800 GTS (256 mb) > Video BIOS: 60.80.0D.00.01 > Video Driver: 186.18 > RAM: 8GB > Proc: C2D 6600 @ 2.40 GHz > > SVN: 4169 > Summary: No problems - Image was adjusted as expected > > Log: > > nona: using graphics card: NVIDIA Corporation GeForce 8800 GTS/PCI/SSE2 > destStart=[17, 50] > destEnd=[3001, 2600] > destSize=[(2984, 2550)] > srcSize=[(4296, 2856)] > srcBuffer=0000000005DB0040 > srcAlphaBuffer=0000000009DF0040 > destBuffer=00000000080D0040 > destAlphaBuffer=00000000096A0040 > destGLInternalFormat=GL_RGBA8 > destGLFormat=GL_RGB > destGLType=GL_UNSIGNED_BYTE > srcGLInternalFormat=GL_RGBA8 > srcGLFormat=GL_RGB > srcGLType=GL_UNSIGNED_BYTE > srcAlphaGLType=GL_UNSIGNED_BYTE > destAlphaGLType=GL_UNSIGNED_BYTE > warparound=0 > needsAtanWorkaround=0 > maxTextureSize=8192 > Source chunks: > [(0, 0) to (4296, 2856) = (4296x2856)] > Dest chunks: > [(0, 0) to (1492, 1275) = (1492x1275)] > [(1492, 0) to (2984, 1275) = (1492x1275)] > [(0, 1275) to (1492, 2550) = (1492x1275)] > [(1492, 1275) to (2984, 2550) = (1492x1275)] > Total GPU memory used: 181856208 > Interpolator chunks: > [(0, 0) to (4, 4) = (4x4)] > #version 110 > #extension GL_ARB_texture_rectangle : enable > uniform sampler2DRect SrcTexture; > float sinh(const in float x) { return (exp(x) - exp(-x)) / 2.0; } > float cosh(const in float x) { return (exp(x) + exp(-x)) / 2.0; } > float atan2_xge0(const in float y, const in float x) { > return atan(y, x); > } > float atan2_safe(const in float y, const in float x) { > return atan(y, x); > } > float atan_safe(const in float yx) { > return atan(yx); > } > void main(void) > { > float discardA = 1.0; > float discardB = 0.0; > vec2 src = gl_TexCoord[0].st; > src -= vec2(1500.0000000000000000, 1300.0000000000000000); > > // rotate_erect(18000.000000000000000, -13.341048242108400000) > { > src.s += -13.341048242108400000; > float w = (abs(src.s) > 18000.000000000000000) ? 1.0 : 0.0; > float n = (src.s < 0.0) ? 0.5 : -0.5; > src.s += w * -36000.000000000000000 * ceil(src.s / > 36000.000000000000000 + n); > } > > // sphere_tp_erect(5729.5779513082325000) > { > float phi = src.s / 5729.5779513082325000; > float theta = -src.t / 5729.5779513082325000 + > 1.5707963267948966000; > if (theta < 0.0) { > theta = -theta; > phi += 3.1415926535897931000; > } > if (theta > 3.1415926535897931000) { > theta = 3.1415926535897931000 - (theta - 3.1415926535897931000); > phi += 3.1415926535897931000; > } > float s = sin(theta); > vec2 v = vec2(s * sin(phi), cos(theta)); > float r = length(v); > theta = 5729.5779513082325000 * atan2_safe(r, s * cos(phi)); > src = v * (theta / r); > } > > // persp_sphere(5729.5779513082325000) > { > mat3 m = mat3(0.86726875127917369000, 0.49776314112882103000, > -0.0087617571429537341000, > -0.49784024852824299000, 0.86713442538204355000, > -0.015263527203445419000, > 0.00000000000000000000, 0.017599535531440003000, > 0.99984511618003991000); > float r = length(src); > float theta = r / 5729.5779513082325000; > float s = 0.0; > if (r != 0.0) s = sin(theta) / r; > vec3 v = vec3(s * src.s, s * src.t, cos(theta)); > vec3 u = v * m; > r = length(u.st); > theta = 0.0; > if (r != 0.0) theta = 5729.5779513082325000 * atan2_safe(r, u.p) / > r; > src = theta * u.st; > } > > // rect_sphere_tp(5729.5779513082325000) > { > float r = length(src); > float theta = r / 5729.5779513082325000; > float rho = 0.0; > if (theta >= 1.5707963267948966000) rho = 1.6e16; > else if (theta == 0.0) rho = 1.0; > else rho = tan(theta) / theta; > src *= rho; > } > > // resize(1.6728386297652815000, 1.6728386297652815000) > src *= vec2(1.6728386297652815000, 1.6728386297652815000); > > src += vec2(2144.5000000000000000, 1427.5000000000000000); > > src = src * discardA + vec2(-1000.0, -1000.0) * discardB; > gl_FragColor = vec4(src.s, 0.0, 0.0, src.t); > } > #version 110 > #extension GL_ARB_texture_rectangle : enable > uniform sampler2DRect CoordTexture; > uniform sampler2DRect SrcTexture; > uniform sampler2DRect AccumTexture; > uniform vec2 SrcUL; > uniform vec2 SrcLR; > uniform vec2 KernelUL; > uniform vec2 KernelWH; > float w(const in float i, const in float f) { > float A = -0.75000000000000000000; > float c = abs(i - 1.0); > float m = (i > 1.0) ? -1.0 : 1.0; > float p = c + m * f; > if (i == 1.0 || i == 2.0) { > return (( A + 2.0 )*p - ( A + 3.0 ))*p*p + 1.0; > } else { > return (( A * p - 5.0 * A ) * p + 8.0 * A ) * p - 4.0 * A; > } > } > void main(void) > { > vec2 src = texture2DRect(CoordTexture, gl_TexCoord[0].st).sq; > vec4 accum = texture2DRect(AccumTexture, gl_TexCoord[0].st); > > src -= SrcUL; > vec2 t = floor(src) + -0.50000000000000000000; > vec2 f = fract(src); > vec2 k = vec2(0.0, 0.0); > > for (float ky = 0.0; ky < 4.0000000000000000000; ky += 1.0) { > k.t = ky + KernelUL.t; > float wy = w(k.t, f.t); > for (float kx = 0.0; kx < 4.0000000000000000000; kx += 1.0) { > k.s = kx + KernelUL.s; > float wx = w(k.s, f.s); > vec2 ix = t + k; > vec4 sp = texture2DRect(SrcTexture, ix); > float weight = wx * wy * sp.a; > accum += sp * weight; > } > } > > gl_FragColor = accum; > } > > #version 120 > #extension GL_ARB_texture_rectangle : enable > uniform sampler2DRect NormTexture; > uniform sampler2DRect CoordTexture; > uniform sampler2DRect InvLutTexture; > uniform sampler2DRect DestLutTexture; > void main(void) > { > // Normalization > vec4 n = texture2DRect(NormTexture, gl_TexCoord[0].st); > vec4 p = vec4(0.0, 0.0, 0.0, 0.0); > if (n.a >= 0.2) p = n / n.a; > > // Photometric > // invLutSize = 256.00000000000000000 > // pixelMax = 255.00000000000000000 > // destLutSize = 1024.0000000000000000 > // destExposure = 0.95663269200564105000 > // srcExposure = 0.95663269262595030000 > // whiteBalanceRed = 1.0000000000000000000 > // whiteBalanceBlue = 1.0000000000000000000 > p.rgb = p.rgb * 255.00000000000000000; > vec2 invR = texture2DRect(InvLutTexture, vec2(p.r, 0.0)).sq; > vec2 invG = texture2DRect(InvLutTexture, vec2(p.g, 0.0)).sq; > vec2 invB = texture2DRect(InvLutTexture, vec2(p.b, 0.0)).sq; > vec3 invX = vec3(invR.x, invG.x, invB.x); > vec3 invY = vec3(invR.y, invG.y, invB.y); > vec3 invA = fract(p.rgb); > p.rgb = mix(invX, invY, invA); > // VigCorrMode=VIGCORR_RADIAL > float vig = 1.0; > { > vec2 vigCorrCenter = vec2(2144.5000000000000000, > 1427.5000000000000000); > float radiusScale=0.00038806915548755783000; > float radialVigCorrCoeff[4] = float[4](1.0000000000000000000, > 0.00000000000000000000, 0.00000000000000000000, 0.00000000000000000000); > vec2 src = texture2DRect(CoordTexture, gl_TexCoord[0].st).sq; > vec2 d = src - vigCorrCenter; > d *= radiusScale; > vig = radialVigCorrCoeff[0]; > float r2 = dot(d, d); > float r = r2; > vig += radialVigCorrCoeff[1] * r; > r *= r2; > vig += radialVigCorrCoeff[2] * r; > r *= r2; > vig += radialVigCorrCoeff[3] * r; > } > vec3 exposure_whitebalance = vec3(0.99999999935157013000, > 0.99999999935157013000, 0.99999999935157013000); > p.rgb = (p.rgb * exposure_whitebalance) / vig; > p.rgb = p.rgb * 1023.0000000000000000; > vec2 destR = texture2DRect(DestLutTexture, vec2(p.r, 0.0)).sq; > vec2 destG = texture2DRect(DestLutTexture, vec2(p.g, 0.0)).sq; > vec2 destB = texture2DRect(DestLutTexture, vec2(p.b, 0.0)).sq; > vec3 destX = vec3(destR.x, destG.x, destB.x); > vec3 destY = vec3(destR.y, destG.y, destB.y); > vec3 destA = fract(p.rgb); > p.rgb = mix(destX, destY, destA); > > gl_FragColor = p; > } > > gpu shader program compile time = 0.046 > gpu shader texture/framebuffer setup time = 0 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] coord image render > time = 0.016 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] source chunk=[(0, 0) > to (4296, 2856) = (4296x2856)] src upload = 0.062 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] source chunk=[(0, 0) > to (4296, 2856) = (4296x2856)] src alpha upload = 0.016 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] source chunk=[(0, 0) > to (4296, 2856) = (4296x2856)] src+alpha render = 0.047 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] source chunk=[(0, 0) > to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to (4, 4) = > (4x4)] setup = 0.015 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] source chunk=[(0, 0) > to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to (4, 4) = > (4x4)] render = 0 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] normalization setup = > 0 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] normalization render = > 0.016 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] dest rgb disassembly > setup = 0 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] dest rgb disassembly > render = 0 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] rgb readback = 0.016 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] dest alpha disassembly > setup = 0 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] dest alpha disassembly > render = 0 > gpu dest chunk=[(0, 0) to (1492, 1275) = (1492x1275)] alpha readback = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] coord image render > time = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] source chunk=[(0, > 0) to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to (4, 4) = > (4x4)] setup = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] source chunk=[(0, > 0) to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to (4, 4) = > (4x4)] render = 0.015 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] normalization setup > = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] normalization > render = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] dest rgb > disassembly setup = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] dest rgb > disassembly render = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] rgb readback = > 0.016 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] dest alpha > disassembly setup = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] dest alpha > disassembly render = 0 > gpu dest chunk=[(1492, 0) to (2984, 1275) = (1492x1275)] alpha readback = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] coord image render > time = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] source chunk=[(0, > 0) to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to (4, 4) = > (4x4)] setup = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] source chunk=[(0, > 0) to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to (4, 4) = > (4x4)] render = 0.015 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] normalization setup > = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] normalization > render = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] dest rgb > disassembly setup = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] dest rgb > disassembly render = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] rgb readback = > 0.016 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] dest alpha > disassembly setup = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] dest alpha > disassembly render = 0 > gpu dest chunk=[(0, 1275) to (1492, 2550) = (1492x1275)] alpha readback = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] coord image > render time = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] source > chunk=[(0, 0) to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to > (4, 4) = (4x4)] setup = 0.016 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] source > chunk=[(0, 0) to (4296, 2856) = (4296x2856)] interpolation chunk=[(0, 0) to > (4, 4) = (4x4)] render = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] normalization > setup = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] normalization > render = 0.015 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] dest rgb > disassembly setup = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] dest rgb > disassembly render = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] rgb readback = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] dest alpha > disassembly setup = 0.016 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] dest alpha > disassembly render = 0 > gpu dest chunk=[(1492, 1275) to (2984, 2550) = (1492x1275)] alpha readback = > 0 > gpu destruct time = 0.047 > gpu total time = 0.39 > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
