Re: [osg-users] WGL_NV_gpu_affinity

2009-01-03 Thread Ferdi Smit

Interesting Stefan, I didn't know that.

So how would one achieve similar effect on non-quadro cards? Surely it 
must be possible to use two GPUs independently? If not, that means that 
multi-GPU systems are inherently broken on windows? Or can I setup truly 
independent screens in driver settings, like with X? I thought that's 
what I did already. But I can see that it's doing this, as the taskbar 
on the other screens shows a preview, so it must still be sending 
commands to both cards then. Seems like a ridiculous default to me; a 
small benefit at great cost.




The default under windows is that all GL commands go to all GPU's, so 
that one can drag a window across multiple GPU's.


The default on X11 is the opposite - you only see GL on the screen 
you've used to open the display connection.


The GPU affinity extension limits the GL commands to a subset of your 
GPU's. I've done tests showing that it gives you ~15% faster 
performance on a dual-GPU system. The window was only on one 
screen/GPU. Sample code and tests can be easily done with Equalizer 
(see signature).


The extension is only available on Quadro cards, and a bit tricky to 
use. You have to create a temporary GL context to get the extension 
function pointers _on a screen driven by an nVidia card_.



HTH,

Stefan.




--
Regards,

Ferdi Smit
INS3 Visualization and 3D Interfaces
CWI Amsterdam, The Netherlands

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] error compiling osg 2.6.1 on mac os x 10.4.11

2009-01-03 Thread Francesco Argese
Hi guys,

i'm trying to install OSG 2.6.1 on Mac OS X 10.4.11.
The version of cmake is 2.6-patch 2.
The version of gcc is i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple
Computer, Inc. build 5250)
The version of g++ is i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple
Computer, Inc. build 5250)
I have typed the following commands (as written on documentation):

./configure
make

The compilation start until 20% when it told me this error (it seems
to be a compiler problem):

[ 20%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.cpp.o
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp: In member
function 'void osgUtil::Tessellator::beginTessellation()':
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44: error:
invalid conversion from 'void (*)()' to 'GLvoid
(*)(...)'/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp: In member
function 'void osgUtil::Tessellator::beginTessellation()':
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'

/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'

/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48: error:
invalid conversion from 'void (*)()' to 'GLvoid (*)(...)'
/Users/argesino/Development/3D
Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48: error:
initializing argument 3 of 'void gluTessCallback(GLUtesselator*,
GLenum, GLvoid (*)(...))'
lipo: can't figure out the architecture type of: /var/tmp//ccn3IWWi.out
make[2]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.cpp.o] Error 1
make[1]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/all] Error 2
make: *** [all] Error 2

Anyone have the same problem? How can i resolve it?

Thanks in advance
Francesco Argese
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] WGL_NV_gpu_affinity

2009-01-03 Thread Stefan Eilemann


On 3. Jan 2009, at 10:01, Ferdi Smit wrote:


Interesting Stefan, I didn't know that.

So how would one achieve similar effect on non-quadro cards?


To my knowledge:

1) Use Linux/OS X
2) Soft-mod your Geforce to a Quadro
3) It might be possible with ATI cards, I haven't checked that for  
some time.



Surely it must be possible to use two GPUs independently?


You can, just not with OpenGL. Cuda, OpenCL and iirc Direct3D can  
address individual GPU's.


If not, that means that multi-GPU systems are inherently broken on  
windows?


Depends on you definition of broken. For a user it is certainly good  
to be able to drag GL windows across GPU's.


Also the overhead is 'just' broadcasting GL commands to all GPU's. If  
your window covers only one GPU, the other GPU(s) will have no  
fragments to process.


Or can I setup truly independent screens in driver settings, like  
with X?


Not that I am aware of, but I'ld like to know if you find a solution.


Cheers,

Stefan.
--
http://www.eyescale.ch
http://www.equalizergraphics.com
http://www.linkedin.com/in/eilemann



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [CMake] Output directory for builds

2009-01-03 Thread Sukender
(This is half-off-topic)

Hi all CMake experts,

I would like to know how OSG's CMake script generates all binaries in one 
directory. I mean osgXX-osg.dll (release) and osgXX-osgd.dll (debug) are 
both generated in /bin, but if I write something like
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
(same for CMAKE_*_OUTPUT_DIRECTORY)
in another project, then I got my binaries in /bin/Debug and /bin/Release.
Any idea?

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] error compiling osg 2.6.1 on mac os x 10.4.11

2009-01-03 Thread Paul Fotheringham
--- On Sat, 3/1/09, Francesco Argese kekk...@gmail.com wrote:

 From: Francesco Argese kekk...@gmail.com
 Subject: [osg-users] error compiling osg 2.6.1 on mac os x 10.4.11
 To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
 Date: Saturday, 3 January, 2009, 11:51 AM
 Hi guys,
 
 i'm trying to install OSG 2.6.1 on Mac OS X 10.4.11.
 The version of cmake is 2.6-patch 2.
 The version of gcc is i686-apple-darwin8-gcc-4.0.1 (GCC)
 4.0.1 (Apple
 Computer, Inc. build 5250)
 The version of g++ is i686-apple-darwin8-g++-4.0.1 (GCC)
 4.0.1 (Apple
 Computer, Inc. build 5250)
 I have typed the following commands (as written on
 documentation):
 
 ./configure
 make
 
 The compilation start until 20% when it told me this error
 (it seems
 to be a compiler problem):
 
 [ 20%] Building CXX object
 src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.cpp.o
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:
 In member
 function 'void
 osgUtil::Tessellator::beginTessellation()':
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'/Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:
 In member
 function 'void
 osgUtil::Tessellator::beginTessellation()':
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:44:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'/Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:45:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:46:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:47:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48:
 error:
 invalid conversion from 'void (*)()' to 'GLvoid
 (*)(...)'
 /Users/argesino/Development/3D
 Graphics/OpenSceneGraph-2.6.1/src/osgUtil/Tessellator.cpp:48:
 error:
 initializing argument 3 of 'void
 gluTessCallback(GLUtesselator*,
 GLenum, GLvoid (*)(...))'
 lipo: can't figure out the architecture type of:
 /var/tmp//ccn3IWWi.out
 make[2]: ***
 [src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.cpp.o] Error
 1
 make[1]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/all] Error
 

[osg-users] Warnings in VS

2009-01-03 Thread Paul Martz
Hi all -- There seems to be a problem with the current svn head CMake. I'm
doing a clean build, and hadn't noticed this problem with current svn head
and an existing CMake cache, so delete your cache to reproduce the problem.
 
The default behavior appears to be /W4, and there doesn't appear to be a
CMake switch to change it. OSG_DISABLE_MSVC_WARNINGS is set to OFF, but this
variable is ignore in the CMake scripts, as near as I can tell.
OSG_USE_AGGRESSIVE_WARNINGS defaults to ON, but setting it to OFF has no
effect.
 
I'm currently working around the problem by manually setting
OSG_AGGRESSIVE_WARNING_FLAGS to /W1 in CMakeLists.txt at line 566. It
looks like the value of this variable is replacing the normal CXX flags
unless I manually set them myself; see CMakeLists.txt line 586.
 
Anyone else seeing this issue?
   -Paul
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [CMake] Output directory for builds

2009-01-03 Thread Ralf Stokholm
Hi Sukender

from osgmacroutils.cmake around line 160 osg 2.6.1

IF(OSG_MSVC_VERSIONED_DLL)
#this is a hack... the build place is set to lib/debug or
release by LIBARARY_OUTPUT_PATH equal to OUTPUT_LIBDIR
#the .lib will be crated in ../ so going straight in lib by
the IMPORT_PREFIX property
#because we want dll placed in OUTPUT_BINDIR ie the bin
folder sibling of lib, we can use ../../bin to go there,
#it is hardcoded, we should compute OUTPUT_BINDIR position
relative to OUTPUT_LIBDIR ... to be implemented
#changing bin to something else breaks this hack
#the dll are placed in bin/${OSG_PLUGINS}
IF(NOT MSVC_IDE)
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES
PREFIX ../bin/${OSG_PLUGINS}/)
ELSE(NOT MSVC_IDE)
SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES
PREFIX ../../bin/${OSG_PLUGINS}/ IMPORT_PREFIX ../)
ENDIF(NOT MSVC_IDE)
ELSE(OSG_MSVC_VERSIONED_DLL)

Brgs.

Ralf Stokholm
www.arenalogic.com
2009/1/4 Sukender suky0...@free.fr

 (This is half-off-topic)

 Hi all CMake experts,

 I would like to know how OSG's CMake script generates all binaries in one
 directory. I mean osgXX-osg.dll (release) and osgXX-osgd.dll (debug) are
 both generated in /bin, but if I write something like
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
(same for CMAKE_*_OUTPUT_DIRECTORY)
 in another project, then I got my binaries in /bin/Debug and /bin/Release.
 Any idea?

 Sukender
 PVLE - Lightweight cross-platform game engine -
 http://pvle.sourceforge.net/
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] DatabasePager failed when loading ive with outside image

2009-01-03 Thread Gordon Tomlinson
Please don't post the same question multiple times just because you get no
answer to the question when you posted it previously, this bad etiquette 

 

If this possible bug is important to you then you could actually try to fix
it, you have already identified where it may lie and you have access to the
full source code  , you have the stack traces when you crashes etc.

 

The only way you can guarantee a fix by a certain time would be to write the
fix yourselves

 



__

Gordon Tomlinson 

 mailto:gor...@gordontomlinson.com gor...@gordontomlinson.com IM:
mailto:gordon3db...@3dscenegraph.com gordon3db...@3dscenegraph.com 
 http://www.vis-sim.com/ www.vis-sim.com
http://www.gordontomlinson.com/ www.gordontomlinson.com 


__

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of gzdmgd al
Sent: Sunday, January 04, 2009 2:40 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] DatabasePager failed when loading ive with outside
image

 

Hi Robert,

pls come back to the mail Multi-threading bug related to Registry .
Recently ,we met the same error.

In our issue,  when using databasePager, we disabled the Node Cache of the
Registry, but enabled the image cache, also, ive plugs-in was used.
Program always crashed when ive plugs-in finished the osgDB::readImageFile()
.  In release version , this crash occured very quickly after some ive
loading from the hard-disk. Also , the  databasePager thread stopped after
the error.

We solved the problem by disabled the image cache, but, loading speed
obsviously come down. So, we guess the main bug is in the ive plugs-in.

We hope to know your solution and if it can be done in the OSG2.8 ?

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org