Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-09 Thread Jan Ciger
Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com wrote:
 In concrete terms, I've personally tested osgOcean on nVidia cards of 
 the 7800, 7900, 8800 and 9800 lines. Realistically, I think anything 
 above 7800 should run it fine. There are even some really good deals in 
 the recent GTX 2xx line that will run it admirably well. Perhaps the 
 6x00 line might run it as well, but I haven't tested it personally. And 
 I doubt the 5x00 line and below will run it at all. Those (the 5x00s) 
 had finicky shader support IIRC.
 

I have it running on GeForce Go 7600 (laptop) and Quadro FX 4500 (GeForce 7800 
equivalent), but do not expect super high framerates on such hardware. The 
shaders are quite slow on those cards. On the other hand, my 8800GT runs it 
smoothly at 1920x1200. 

Regards,

Jan



signature.asc
Description: This is a digitally signed message part.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-09 Thread Jean-Sébastien Guay

Hi Jan,

I have it running on GeForce Go 7600 (laptop) and Quadro FX 4500 (GeForce 7800 
equivalent), but do not expect super high framerates on such hardware. The 
shaders are quite slow on those cards. On the other hand, my 8800GT runs it 
smoothly at 1920x1200. 


Interesting, thanks for the additional data. I'll look about starting 
that wiki page soon.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-09 Thread Jean-Sébastien Guay

Hi again,


I'll look about starting that wiki page soon.


Here you go,

http://code.google.com/p/osgocean/wiki/HarwareSupport

I'll add details as time passes...

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-09 Thread Jean-Sébastien Guay

Hi Kim,


http://code.google.com/p/osgocean/wiki/HardwareSupport


Heh, did I actually make a typo in the page title? Geez... Sorry, I was 
in a hurry and didn't notice it.


Thanks for your vigilance.

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-08 Thread Jean-Sébastien Guay

Hi Gopal,


osgviewer cow.osg  output.txt 21


You need to do this before:

(on Windows:)
set OSG_NOTIFY_LEVEL=DEBUG

(on bash:)
export OSG_NOTIFY_LEVEL=DEBUG

and then run the osgviewer command. That will tell OSG to be verbose 
about everything and the output.txt should contain the info we need.


But even then, as I said before, on the video card you have you won't be 
able to do much with osgOcean in its present form. It was just not 
designed to run with reduced features like that.


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-08 Thread gopal goenka
Hi S-J,

may I know the minimum config of the machine that will be successful to run the 
osgOcean along with the graphic card requirement

Thank you!

 :) gopal

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18099#18099





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


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-08 Thread Jean-Sébastien Guay

Hello Gopal,


may I know the minimum config of the machine that will be successful to run the 
osgOcean along with the graphic card requirement


For processor type I'm not sure, most of the processing is offloaded to 
the GPU so you might be able to get away with something quite modest, 
though with the current way osgOcean switches tiles and frames of 
animation there's a bit going on in the Update traversal.


GPU side, you need something that supports GLSL shaders at the very 
least, and that's if you disable all the special effects like 
reflection/refraction, depth of field, etc. For those, you'll need a 
card that supports FrameBuffer Objects (FBOs).


In concrete terms, I've personally tested osgOcean on nVidia cards of 
the 7800, 7900, 8800 and 9800 lines. Realistically, I think anything 
above 7800 should run it fine. There are even some really good deals in 
the recent GTX 2xx line that will run it admirably well. Perhaps the 
6x00 line might run it as well, but I haven't tested it personally. And 
I doubt the 5x00 line and below will run it at all. Those (the 5x00s) 
had finicky shader support IIRC.


As for ATI, well, I haven't tested anything other than a Radeon HD 4350, 
which runs it well (though I had other problems, see another thread that 
hasn't gotten any answers yet). Basically I guess anything that's in the 
same generations as what I said about nVidia cards above should perform 
similarly. But I can't guarantee anything.


I think I'll put up a page on the osgOcean wiki for people to report 
their experiences with different cards. It would give us a better idea 
of where it's supported, and maybe even if we can do something to 
support older cards (which as I said I'll be working on soon).


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-07 Thread gopal goenka
Hi,

I have tried to run that example you suggested but the output.txt is empty
after runing the example as ...
osgviewer cow.osg  output.txt 21

the example ran well i mean there was no problems as the cow.osg was loaded 
properly
and i was able to see it in the osgViewer

Thank you!

gopal

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18068#18068





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


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-05 Thread Kim Bale
Hi Gopal,

After consulting with J-S I've got a few more suggestions for you,

Typing bt or backtrace' after the seg fault in the gdb prompt would
shed a few more clues..

and..if you run the command:

export OSG_NOTIFY_LEVEL=DEBUG
osgviewer cow.osg  output.txt 21

and send the file to me, I will be able to check if your card supports
the required extensions to run osgOcean.

Finally.. the i915_dri.so suggests you're using an intel integrated
graphics card. What graphics card are you using? The intel integrated
cards are notoriously poor at hardware accelerated 3D and osgOcean
uses a lot of shaders so it's possible that it is causing problems.

Is there any chance you could test on a machine with a better graphics
card - something by nvidia or ati would be preferable.

I think that's all i can do, short of you sending me your machine for
testing ;-)

Regards,

Kim.


2009/10/3 gopal goenka gopal.goe...@hed.ltindia.com:
 Hi Kim

 as you suggested I made osgOcean to run with gdb

 as follows this is what it says..

 (gdb) run
 Starting program: /usr/local/bin/oceanExample
 Error while mapping shared library sections:
 libosgOcean.so: Success.
 [Thread debugging using libthread_db enabled]
 [New Thread -1208244544 (LWP 7038)]

 Program received signal SIGFPE, Arithmetic exception.
 [Switching to Thread -1208244544 (LWP 7038)]
 0x0100bf84 in _mesa_test_os_sse_exception_support () from 
 /usr/X11R6/lib/modules/dri/i915_dri.so
 (gdb) Quit


 I have also checked for the path for libfftss.a it is also set in 
 $LD_LIBRARY_PATH var...

 Thank you!

 Cheers,
 gopal

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=17819#17819





 ___
 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] [3rdparty] How to run osgOcean

2009-10-05 Thread gopal goenka
Hi kim,

this i have got typing bt in gdb and i am using 

00:02.0 VGA compatible controller: Intel Corporation 945G/GZ Express Integrated 
Graphics Controller (rev 02)  graphics card.

[r...@localhost bin]# gdb ./oceanExample
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-redhat-linux-gnu...(no debugging symbols 
found)
Using host libthread_db library /lib/tls/libthread_db.so.1.

(gdb) run
Starting program: /usr/local/bin/oceanExample
Error while mapping shared library sections:
libosgOcean.so: Success.
[Thread debugging using libthread_db enabled]
[New Thread -1208379712 (LWP 7610)]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1208379712 (LWP 7610)]
0x00f23f84 in _mesa_test_os_sse_exception_support () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
(gdb)
(gdb)
(gdb) bt
#0  0x00f23f84 in _mesa_test_os_sse_exception_support () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#1  0x00f23e81 in _mesa_init_all_x86_transform_asm () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#2  0x00e9cbc9 in _math_init () from /usr/X11R6/lib/modules/dri/i915_dri.so
#3  0x00e1efee in _mesa_initialize_context () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#4  0x00f415b5 in intelInitContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#5  0x00f34e56 in i915CreateContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#6  0x00f45742 in intelCreateContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#7  0x00f2d00f in driCreateNewContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#8  0x002b83d2 in __indirect_glCompressedTexSubImage3D () from 
/usr/X11R6/lib/libGL.so.1
#9  0x002b8817 in glXCreateContext () from /usr/X11R6/lib/libGL.so.1
#10 0x00b4161f in osgViewer::GraphicsWindowX11::init () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#11 0x00b43c56 in X11WindowingSystemInterface::createGraphicsContext ()
   from /usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#12 0x008bc156 in osg::GraphicsContext::createGraphicsContext () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosg.so.55
#13 0x00b088c5 in osgViewer::View::setUpViewInWindow () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#14 0x08060387 in main ()
(gdb) 

Thank you!

Cheers,
gopal

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17873#17873





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


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-05 Thread Jean-Sébastien Guay

Hi Gopal,


00:02.0 VGA compatible controller: Intel Corporation 945G/GZ Express Integrated 
Graphics Controller (rev 02)  graphics card.


Yeah, that isn't going to work with osgOcean in its current form. We 
could possibly check for a set of extensions we know we need 
(EXT_FRAMEBUFFER_OBJECT, the various shader extensions, etc.) or a given 
OpenGL version, and then disable most shaders and effects if these are 
not found. That would give you a straight ocean surface that would 
animate but which wouldn't have reflections, refractions, underwater 
depth of field and so on.


You could possibly modify the oceanExample's application.cpp to disable 
all effects (reflection, refraction, depth of field, god rays, glare, 
distortion, silt), then recompile it and try to run that. It might work, 
but the ocean surface might look weird because the shaders will try to 
compile and probably fail. osgOcean really needs to detect this kind of 
card and set itself up correctly to run in reduced mode in that case.


I'll be working on this in the next few weeks (our own clients need to 
run an app that uses osgOcean on various graphics cards, some of which 
are similar to what you mention above) so if you can wait a bit, I'll 
send a word to the mailing list once it's done so you'll be able to test 
again.


I would really like to get the list of extensions your card supports. 
The easiest way to get that is to do this on the command line, as Kim 
mentioned:


  export OSG_NOTIFY_LEVEL=DEBUG
  osgviewer cow.osg  output.txt 21

and then press Escape as soon as the cow shows up, and send us the 
resulting output.txt file on this thread. That will contain valuable 
information that will help me design the tests needed to detect 
situations similar to yours correctly in the osgOcean code.



About your backtrace:


(gdb) bt
#0  0x00f23f84 in _mesa_test_os_sse_exception_support () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#1  0x00f23e81 in _mesa_init_all_x86_transform_asm () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#2  0x00e9cbc9 in _math_init () from /usr/X11R6/lib/modules/dri/i915_dri.so
#3  0x00e1efee in _mesa_initialize_context () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#4  0x00f415b5 in intelInitContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#5  0x00f34e56 in i915CreateContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#6  0x00f45742 in intelCreateContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#7  0x00f2d00f in driCreateNewContext () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
#8  0x002b83d2 in __indirect_glCompressedTexSubImage3D () from 
/usr/X11R6/lib/libGL.so.1
#9  0x002b8817 in glXCreateContext () from /usr/X11R6/lib/libGL.so.1
#10 0x00b4161f in osgViewer::GraphicsWindowX11::init () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#11 0x00b43c56 in X11WindowingSystemInterface::createGraphicsContext ()
   from /usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#12 0x008bc156 in osg::GraphicsContext::createGraphicsContext () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosg.so.55
#13 0x00b088c5 in osgViewer::View::setUpViewInWindow () from 
/usr/local/OpenSceneGraph-2.8.0/lib/libosgViewer.so.55
#14 0x08060387 in main ()
(gdb) 


Weird that it's crashing in the create context... Do other OSG examples 
run well? For example just run


  osgviewer cow.osg

Does that run well? If not then try to update your graphics driver, 
because creating a graphics context is a basic operation that all 
graphics apps will need to do and if it's failing, then you have a 
bigger problem than osgOcean not running...


But in any case, this is not related to what I said above about your 
card probably not being able to run osgOcean at all in its current form 
because it does not support the features osgOcean was designed for.


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-03 Thread gopal goenka
Hi Kim

as you suggested I made osgOcean to run with gdb

as follows this is what it says..

(gdb) run
Starting program: /usr/local/bin/oceanExample
Error while mapping shared library sections:
libosgOcean.so: Success.
[Thread debugging using libthread_db enabled]
[New Thread -1208244544 (LWP 7038)]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1208244544 (LWP 7038)]
0x0100bf84 in _mesa_test_os_sse_exception_support () from 
/usr/X11R6/lib/modules/dri/i915_dri.so
(gdb) Quit


I have also checked for the path for libfftss.a it is also set in 
$LD_LIBRARY_PATH var...

Thank you!

Cheers,
gopal

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17819#17819





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


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-02 Thread Jan Ciger
Hi Gopal,

gopal goenka gopal.goe...@hed.ltindia.com wrote:
...
 Segmentation fault
 [r...@localhost bin]#
 
  i may have missed in installation can any body give me the steps to
  install it a fresh and how to run it

I cannot help you with the crash, but you should never run software like this 
as root. It is a major security no-no - one bug and your whole system can be 
compromised/wiped/...

While OSG is well written, it is not designed to be with all safety 
precautions required to run is as root.

Regarding the crash - there have been someone else who had the same problem 
few days ago. Try to search the archives. Also, a backtrace of the crash would 
help to track it down. 

Regards,

Jan


signature.asc
Description: This is a digitally signed message part.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [3rdparty] How to run osgOcean

2009-10-02 Thread Kim Bale
Hi Gopal,

I'm afraid you're not giving me enough information to find a solution.

Basically on windows all you need to do to build osgOcean and the
example is this:

1. Download the osgOcean 1.0 src either from the svn or the zipped
version (preferably the svn).
2. Download the osgOcean resource zip and extract it into the
Resources directory within the osgOcean src folder
3. Download FFTSS or FFTW and build them
4. Fire up CMake and configure it to find the FFT library and it's
include directory.
5. Run CMake to configure a build project for your compiler of choice
6. Run the install project that CMake will generate.

Then run the oceanExample in the directory that you specified as an
install directory. I recently dabbled with compiling it in linux
however, being completely new to linux, I didn't get very far , but it
shouldn't be too hard.

You've clearly managed to get the program compiled, perhaps you could
run it through the debugger to provide more information. If the code
is at fault I'd been keen to find out the cause.

Regards,

Kim.



2009/10/2 gopal goenka gopal.goe...@hed.ltindia.com:
 Hi,

 i am trying to run osgOsean .

 my osg version is 2.8.0
 osgOcean 1.0

 i have downloaded both the osgOcean 1.0 and its resourses.
 i have installed it but it gives segmentation fault like this

 [r...@localhost bin]# ./oceanExample
 Warning: font file fonts/arial.ttf not found.
 Warning: font file fonts/arial.ttf not found.
 Warning: font file fonts/arial.ttf not found.
 Building scene...
  . Loading cubemaps: 0.503053s
  . Generating ocean surface: 0.000315s
  . Creating ocean scene: 0.060127s
  . Loading islands: 1.47068s
  . Setting up lighting: 4.3e-05s
 complete.
 Time Taken: 2.05694s
 Segmentation fault
 [r...@localhost bin]#

  i may have missed in installation can any body give me the steps to install 
 it a fresh
 and how to run it


 Thank you!

 Cheers,
 gopal :|

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=17794#17794





 ___
 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