Re: [osg-users] vertex arrays in a custom drawable

2010-03-13 Thread Otto Cologne
Hi,

ok no answers for a while so I guess i need to explain my problem a bit more. 
The task is to render a selected set of lines out of a bigger dataset 
(http://sites.google.com/site/schurade/pic14.png). The test data I'm usually 
working with is about 70k lines with approx. 5M points but can get bigger 
easily. The selection is interactive so the rendering needs to be fast so it 
doesn't get too sluggish. My previous implementation used VBO's or vertex 
arrays and worked really good even on the slow machine of my boss ( dual core, 
gforce8, 2 gig ram), so this is what he expects now from the new app which uses 
OSG. 

The data (vertex array and at least one color array)  is stored in 
stl::vectorfloat which allos pointer access. I'd prefer to render directly 
from these arrays and not have to copy it into any osg structures for time and 
memory consumption reasons. My approach was the above mentioned draw 
implementation but I can't get it to work.

Thank you!

Cheers,
Otto

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





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


Re: [osg-users] [osgPlugins] iv plugin with coin4 from svn

2010-03-13 Thread Robert Osfield
Hi Michele,

Could you provide a .iv file that reproduces this problem?  This will
help others recreate the problem and be able to dig down to what is
causing the issue.

Thanks,
Robert.

On Fri, Mar 12, 2010 at 7:39 PM, Michele Fiorentino
fiorent...@poliba.it wrote:
 Hi,

 i cannot open any iv or vrml on MS VC 2008 and OSG 2 days ago svn- coin from 
 svn (= mercurial) i got a breakpoint triggered

 in


 Code:
 SoCallbackAction::getNumTextureCoordinates(void) const
 {
  return SoMultiTextureCoordinateElement::getInstance(this-state)-getNum(0);
 }



 call stack :


 Code:
        msvcr90d.dll!_NMSG_WRITE(int rterrnum=10)  Line 198     C
        msvcr90d.dll!abort()  Line 59 + 0x7 bytes       C
        msvcr90d.dll!_wassert(const wchar_t * expr=0x066a6b48, const wchar_t * 
 filename=0x066a6ad8, unsigned int lineno=435)  Line 163  C
        coin4d.dll!SoMultiTextureCoordinateElement::getNum(const int unit=0)  
 Line 435 + 0x27 bytes     C++
       coin4d.dll!SoCallbackAction::getNumTextureCoordinates()  Line 850      
  C++
        osgdb_ivd.dll!ConvertFromInventor::postShape(void * data=0x0013ade8, 
 SoCallbackAction * action=0x0013ac48, const SoNode * node=0x034bb648)  Line 
 913 + 0xb bytes        C++
        coin4d.dll!SoCallbackData::doNodeCallbacks(SoCallbackAction * 
 action=0x0013ac48, const SoNode * node=0x034bb648)  Line 229 + 0x14 bytes C++
        coin4d.dll!SoCallbackAction::invokePostCallbacks(const SoNode * const 
 node=0x034bb648)  Line 1117 + 0x28 bytes  C++
        coin4d.dll!SoNode::callbackS(SoAction * action=0x0013ac48, SoNode * 
 node=0x034bb648)  Line 990  C++
        coin4d.dll!SoAction::traverse(SoNode * const node=0x034bb648)  Line 
 963 + 0xd bytes     C++
        coin4d.dll!SoChildList::traverse(SoAction * const action=0x0013ac48, 
 const int first=0, const int last=1)  Line 337     C++
        coin4d.dll!SoChildList::traverse(SoAction * const action=0x0013ac48)  
 Line 407  C++





 auto variables

 Code:
 +               rterrs  0x10311048 rterrs {rterrno=2 rterrtxt=0x10201cc8 
 R6002
 - floating point support not loaded
  }     rterrmsgs [23]
 +               rterrs[tblindx] {rterrno=10 rterrtxt=0x10201bd8 
 This application has requested the Runtime to terminate it in an unusual way.
 Please contact the application's support team for more information.
  }     rterrmsgs
 +               rterrs[tblindx].rterrtxt        0x10201bd8 
 This application has requested the Runtime to terminate it in an unusual way.
 Please contact the application's support team for more information.
        char *
                tblindx 3       int




 any solution?

 Thank you!

 Cheers,
 Michele

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





 ___
 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] Precipitation and VBO

2010-03-13 Thread Robert Osfield
Hi Guy,

It sounds like your setup is falling back to software rendering for
some reason. The 7950 should be able to handle it just fine so there
must be something in the driver or something in your setup.  I'm
afraid I can't really provide must guidance on what it might be, try
other drivers, different pixel formats etc.

Robert.

On Sat, Mar 13, 2010 at 1:38 AM, Guy Volckaert
guy.volcka...@meggitt.com wrote:
 Hi,

 I am experiencing VERY bad performance (i.e 1 FPS) when I enable 
 precipitation on my Dell laptop (XPS 1710) that uses a GeForce 7950 graphic 
 card (dell driver version 179.xx).

 But here's the kicker... the performance is fine when running on any other 
 desktop systems that has a more recent graphic card (for example a 8800 GTX). 
 I kinda understand that it would run faster, but never expecte a drop to 1 
 FPS on a 7950, especially when there is ABSOLUTELY nothing in the scene.

 I've reduced my application to the bare minimum to isolate the problem. All I 
 have in my scene graph is a pre- post- camera used to render my scene to a 
 texture (using the render-target-implememtation functions of the 
 osg::camera), and an instance of precipitation effect.

 I tried using different render-target-implementation technique (like 
 FRAME_BUFFER) but that did not change anything.

 If I bypass the render-target-implementation (i.e I bypass the 
 osg::camera::attach() method), keep the pre-camera, and remove the 
 post-camera, then everything work fine (running at 60fps).

 Can someone shed some light on why the the render-target-implementation would 
 affect osg::PrecipitationEffect (or vice-versa).

 Note: The problem is not the precipitation effect because I compared my 
 implementation with the osg precipitation example and they are the same. When 
 I run the example the frame rate is 60fps (which is the same as my app when I 
 bypass the rendet to target).

 Cheers,
 Guy

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





 ___
 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] vertex arrays in a custom drawable

2010-03-13 Thread Robert Osfield
Hi Otto,

The OSG uses lazy state updating to prevent unnecessary calls being
made to OpenGL, however, it does mean that if you change OpenGL state
yourself without telling the OSG about it then it can get out of sync
and cause problems. I would recommend using the osg::State methods for
setting the vertex array pointers and enabling them, this way you can
keep everything in sync and avoid making unnecessary OpenGL calls.

Robert.

On Tue, Mar 9, 2010 at 3:07 PM, Otto Cologne schur...@gmx.de wrote:
 Hi,

 i'm trying to use vertex arrays in my own drawable. For some reason it 
 crashes in the glDrawArrays call. The draw implementation is some code that 
 works in another program of mine which uses pure opengl.


 Code:

    glEnableClientState( GL_VERTEX_ARRAY );
    glEnableClientState( GL_COLOR_ARRAY );

    glVertexPointer( 3, GL_FLOAT, 0, (*verts)[0] );
    glColorPointer( 3, GL_FLOAT, 0, (*colors)[0] );

    for ( size_t i = 0; i  active-size(); ++i )
    {
        if ( (*active)[i] )
        {
            glDrawArrays( GL_LINE_STRIP, (*startIndexes)[i] * 3, 
 (*pointsPerLine)[i] );
        }
    }
    glDisableClientState( GL_VERTEX_ARRAY );
    glDisableClientState( GL_COLOR_ARRAY );




 In the constructor of the drawable there is a setSupportsDisplayList( false );

 For the opengl part this looks correct, the only thing i could think of now 
 is that it's not ok to do stuff like glEnableClientState directly but have to 
 use some osg state object. Any hints on how to do it correctly will be 
 greatly appreciated.



 Thank you!

 Cheers,
 Otto

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





 ___
 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] [osgPlugins] iv plugin with coin4 from svn

2010-03-13 Thread Michele Fiorentino
Hi,

this is the simple model i could find.. and gives assert!
the same eror from vrml and more complex files...

cube.iv

Code:
#Inventor V2.1 ascii


DEF _CUBE_SEP Separator {

   Cube {
width 0.1
height 0.1
depth 0.1
}

}






Code:
C:\dev\external_libs\OSG-dataosgviewerglutd cube.iv
osgDB::ReaderWriterIV::readNode() Reading file cube.iv
Assertion failed: unit  PRIVATE(this)-unitdata.getLength(), file ..\..\src\ele
ments\SoMultiTextureCoordinateElement.cpp, line 435







Thank you!

Cheers,
Michele

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





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


Re: [osg-users] Precipitation and VBO

2010-03-13 Thread Guy Volckaert
I will modify the precipitation example to include a render-target 
implementation and see if I can reproduce the problem. If I am successful, I 
will post the example on the forum so that someone can review the 
implementation. Like you said Rob, I may have a bad setup and I just don't know 
it.  

Guy

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





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


Re: [osg-users] vertex arrays in a custom drawable

2010-03-13 Thread Otto Cologne
Well that's what I suspected. My problem is more the how than the if.

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





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


[osg-users] Problem with readNodeFiles

2010-03-13 Thread Paul Martz

Hi Robert and all --

This command works fine:
  osgviewer cow.osg dumptruck.osg

But if I run this command:
  osgviewer cow.osg dumptruck.osg.(-5,-5,-5).trans
I get only the cow.

From cranking up the Notify level, it appears that somewhere in osgDB 
(presumably down in readNodeFiles), the code is trying to find a file 
named dumptruck.osg.(-5,-5,-5).trans and of course it fails to find 
such a file.


Working on 2.8.3 today, else I'd dig in. But it shouldn't be hard to 
identify the source of the issue and fix it, I'd think.

--
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ http://www.skew-matrix.com/
+1 303 859 9466

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


Re: [osg-users] Problem with readNodeFiles

2010-03-13 Thread Paul Martz

Paul Martz wrote:

Hi Robert and all --

This command works fine:
  osgviewer cow.osg dumptruck.osg

But if I run this command:
  osgviewer cow.osg dumptruck.osg.(-5,-5,-5).trans
I get only the cow.


Additional info:

Swapping the order works fine:
  osgviewer dumptruck.osg.(-5,-5,-5).trans cow.osg

And using something other than a .osg file as the first file also works 
fine:

  osgviewer foo.flt dumptruck.osg.(-5,-5,-5).trans

Finally, there are no issues on 2.8.2, so this is new.

I also couldn't resist taking a look at readNodeFiles, but I didn't see 
anything obvious there, so this appears to be some kind of side effect, 
possibly related to the new native file support.

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


Re: [osg-users] Rendering 2 video stream

2010-03-13 Thread cedric pinson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Adrian,

You can stream directly from the source, but in order to avoid the
same machine support the broadcasting and generating the stream, i
used two machine:
o the stream generator
o a server on the net that can send 100Mb/sec

If you have only a few client or if your stream needs to be view in
localnetwork then maybe you can avoid the broadcast server.

To use the flux on a webpage i used http://www.flumotion.net/ . You
can have a look on the web, then the html needed to use the flux is

video width=600 height=400 autoplay=yes
src=http://stream.pok.me/stream.ogg
view-source:http://stream.pok.me/stream.ogg tabindex=0 /video

Off course you will maybe need some fallback depending on your target.

Cheers,
Cedric


On 03/11/10 13:09, Adrian Egli OpenSceneGraph (3D) wrote:
 Hi Cedric,

 Sorry to interrupt you again. Well once i have the video rendered ,
  i launch gstreamer with gst-launch-0.10 and with the parameters
 you send me once. Now the gstream takes the input from location and
 streams it as a ogg video over network. Do i need a webserver
 instance to stream to or how does it work? own can i integrate it
 into a firefox html webpage. say i will stream it from localhost
 and watch on localhost with firefox -console my_Test_page.hmtl with
 the video display. and i have the osgviewer application running and
 i can navigate with my mouse (as common) and watch in real time the
 video beside with a copy of the osgviewer frame buffer output/

 /adrian


 Hi, I render a video game based on osg into a video stream, you can
 have an idea here http://plopbyte.net/?page_id=6/ you need a
 firefox plugin to watch it.

 The basic idea works on linux with gstreamer. Dont tested on
 windows but because there is gstreamer, maybe it works too.

 In the game code i added a thread that write image at a given rate.
 This file is written into a file descriptor created with mkfifo.
 Then i use a command line when the game is running: gst-launch-0.10
 filesrc location=myfifo ! videoparse width=800 height=600 format=15
 framerate=20/1 ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,
 width=800, height=600 ! videoflip method=5  ! theoraenc quality=40
 ! oggmux ! gdppay ! tcpserversink port=12000 21 log

 The advantage using gstreamer is that you can use the codec you
 want to encode the video and stream it over the web.

 The code is inside this project http://hg.plopbyte.net/pokme/

 Cheers, Cedric

 2010/2/6 Cedric Pinson cedric.pin...@plopbyte.net
 mailto:cedric.pin...@plopbyte.net

 Hi Adrian,

 I am sorry i dont have a small proof of concept only the code
 integrated to a project (pokme). I guess it would need one or two
 day of work to setup a small example.

 Cheers, Cedric

 -- Provide OpenGL services around OpenSceneGraph and more +33 659
 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net
 mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net


 On Sat, 2010-02-06 at 11:53 +0100, Adrian Egli OpenSceneGraph (3D)
 wrote:
 Hi all,

 thanks for the short answer. i am looking for a small test.cpp
 (osgviewer - render2video - stream) has someone still
 implemented
 such a demo?

 /adrian

 2010/2/2 Cedric Pinson cedric.pin...@plopbyte.net
 mailto:cedric.pin...@plopbyte.net
 Hi, I render a video game based on osg into a video
 stream, you
 can have an idea here http://plopbyte.net/?page_id=6/ you need a
 firefox
 plugin to watch it.

 The basic idea works on linux with gstreamer. Dont
 tested on
 windows but because there is gstreamer, maybe it works too.

 In the game code i added a thread that write image at
 a given
 rate. This file is written into a file descriptor created with
 mkfifo.
 Then i use a command line when the game is running:
 gst-launch-0.10 filesrc location=myfifo ! videoparse
 width=800
 height=600 format=15 framerate=20/1 ! ffmpegcolorspace !
 videoscale ! video/x-raw-yuv, width=800, height=600 ! videoflip
 method=5  !
 theoraenc quality=40  ! oggmux ! gdppay ! tcpserversink
 port=12000 21
 log

 The advantage using gstreamer is that you can use the
 codec
 you want to encode the video and stream it over the web.

 The code is inside this project
 http://hg.plopbyte.net/pokme/

 Cheers, Cedric

 -- Provide OpenGL services around OpenSceneGraph and more +33 659
 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net
 mailto:cedric.pin...@plopbyte.net
 http://www.plopbyte.net



 On Mon, 2010-02-01 at 17:39 -0500, r...@sensorstar.com
 mailto:r...@sensorstar.com wrote:
 Adrian - A way that I've used for that type of functionality
 is
 through a
 Camera::DrawCallback subclass.  You can get the rendered
 scene through
 an (osg::Image) readPixels() call and pass it out
 through
 whatever
 stream you like frame by frame.  It isn't extremely fast since
 it
 depends on the
 readPixels() call, but on a Quadro or the like it
 has always
 been 'fast
 enough' for my purposes.

 For the video stream output, I can't offer too
 much advice
 because I
 

Re: [osg-users] Problem with readNodeFiles

2010-03-13 Thread Robert Osfield
Hi Paul,

Thanks for the report.  I can reproduce it at my end, but as yet don't
know what it might be.  I will investigate on Monday.

Robert.


On Sat, Mar 13, 2010 at 4:49 PM, Paul Martz pma...@skew-matrix.com wrote:
 Hi Robert and all --

 This command works fine:
  osgviewer cow.osg dumptruck.osg

 But if I run this command:
  osgviewer cow.osg dumptruck.osg.(-5,-5,-5).trans
 I get only the cow.

 From cranking up the Notify level, it appears that somewhere in osgDB
 (presumably down in readNodeFiles), the code is trying to find a file named
 dumptruck.osg.(-5,-5,-5).trans and of course it fails to find such a file.

 Working on 2.8.3 today, else I'd dig in. But it shouldn't be hard to
 identify the source of the issue and fix it, I'd think.
 --
 Paul Martz
 Skew Matrix Software LLC
 _http://www.skew-matrix.com_ http://www.skew-matrix.com/
 +1 303 859 9466

 ___
 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] OSG and VRJuggler example

2010-03-13 Thread Rohit Vijay Bapat
Hi,
I am Rohit . I am working on a cluster with vrJuggler . I want to use 
OpeneSceneGraph on the cluster . I am using a master and three slaves , working 
on VC++ 2008 and Windows XP 64bit. 

Can you provide some basic steps to impliment OSG along with vrJuggler on the 
cluster?
... 

Thank you!

Cheers,
Rohit

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





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


Re: [osg-users] Collision Detection

2010-03-13 Thread ted morris
I have been looking for an example of using this utility PolytopeIntersector
to intersect say, a bounding box, of a more complex object,
with another set of objects in the scene. Are there any example snippets out
there how to go about this?

An example might be wanting to know if a moving car (surrounded by bounding
box) hit a cone or channelizer drum (e.g., cylinder).

thanks all,
Ted

On Fri, Mar 5, 2010 at 11:10 AM, Jason Daly jd...@ist.ucf.edu wrote:

 John Galt wrote:

 Hi,

 I have a noob question.

 Say I have a pyramid defined by points 0,1,2,3,4. And say I have another
 cube determined by points 5,6,7,8,9,10,11,12.

 How do I detect whether the entire cube falls inside the pyramid or not?

 What if the cube is very small and can be defined by a single point 13.
 Can I find out if the point 13 falls within the pyramid with a simple osg
 command?



 I think you should be able to do this with a PolytopeIntersector.  Just add
 each face of the pyramid as a plane in the Polytope, and intersect it
 against the cube.
 The nice thing about the PolytopeIntersector is that it will work with
 points and lines as well as faces, so it should work for your second case.

 --J


 ___
 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] ScreenShot File name

2010-03-13 Thread Danny Lesnik
Hi Jean-Sébastien,

Tahnk you very much for your response it was very helpfull, I implemented your 
advice and it seems to work perfect. 


Code:

osgViewer::ScreenCaptureHandler* _scnsvr;
_scnsvr = new osgViewer::ScreenCaptureHandler(new 
osgViewer::ScreenCaptureHandler::WriteToFile(test,png,osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy::OVERWRITE));




It works nice in standard OSG application, my issue is the following:

I'm using OSG inside of ActiveX control (based on OSGActiveX example) embedded 
into HTML page. First time when I'm loading it and each time I'm taking 
snapshot, I'm getting test_0.png and each snapshot overwrites this file.

When I'm pressing F5 or reloading page using IE address bar I'm starting to 
save snapshots as test_1.png and each snaphot overwrite this file. 

This behavior continues each time I'm reloading page. the counter is being 
incremented by one to test_2, test_3 etc 

the only solution for this problem is to close IE and to wait till ActiveX 
unloads from Memeory. after it the counts start form zero. 

I have no clue how to resolve it and this is major blocking issue for my 
project. 

Could you please help? 

Thank you!

Cheers,
Danny

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





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


Re: [osg-users] Help: how to rotate view camera 90 degrees in relationship to terrain

2010-03-13 Thread Guy Volckaert
Is your viewing camera also using the local coordinate system (i.e 
geocentric)?

Guy

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





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


Re: [osg-users] LOD support

2010-03-13 Thread Guy Volckaert
If I recall correctly, even the osgParticle supports LODs, but I think they are 
called details instead (or something rather).  However, osg does not 
implicitely use it - you need to manage the details yourself. 

Guy

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





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


Re: [osg-users] Problem with readNodeFiles

2010-03-13 Thread Paul Martz

Robert Osfield wrote:

Hi Paul,

Thanks for the report.  I can reproduce it at my end, but as yet don't
know what it might be.  I will investigate on Monday.


Thanks for looking into this. I was curious, so I thought I'd dig a 
little on a Saturday night over a beer.


It appears to be a problem in src/osgPlugins/osg/ReaderWriterOSG2.cpp. 
The prepareReading method checks for the wrong extension but fails to 
immediately return once that has been identified as the case...


Options* prepareReading( ReadResult result, std::string fileName, 
const Options* options ) const

{
std::string ext = osgDB::getLowerCaseFileExtension( fileName );
if ( !acceptsExtension(ext) ) result = 
ReadResult::FILE_NOT_HANDLED; // Should return here?

fileName = osgDB::findDataFile( fileName, options );
if ( fileName.empty() ) result = ReadResult::FILE_NOT_FOUND; 
// Should return here too, right?


osg::ref_ptrOptions local_opt = options ?

static_castOptions*(options-clone(osg::CopyOp::SHALLOW_COPY)) : new 
Options;


local_opt-getDatabasePathList().push_front(osgDB::getFilePath(fileName));
if ( ext==osgt ) local_opt-setOptionString( 
local_opt-getOptionString() +  Ascii );

etc


But I haven't dug deep enough to explain why the issue goes away when 
you swap the order of the two command line arguments. Perhaps due to the 
chain of responsibility pattern.

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


[osg-users] [osgPlugins] WRL Plugin needed

2010-03-13 Thread John Galt
Hi,

I have a wrl file I would like to use as a 3D model. I found lots of sites 
telling me that there is a plugin enabling me to read those, but I couldn't 
find the .dll
file that is actually the plugin.

Can anyone please send me the link to download the plugin?

Thank you!

Cheers,
John

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





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


Re: [osg-users] [osgPlugins] WRL Plugin needed

2010-03-13 Thread Gordon Tomlinson
You Have to get the source and build it

See http://www.openscenegraph.org/projects/osg/wiki/Community/Plugins

Also search the email archive for more details as this has been discussed
many times in the past




__
Gordon Tomlinson 

gor...@gordontomlinson.com
www.photographybyGordon.com
www.vis-sim.com 
www.gordontomlinson.com 
IM: gordon3db...@3dscenegraph.com

__

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of John Galt
Sent: Saturday, March 13, 2010 11:13 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] [osgPlugins] WRL Plugin needed

Hi,

I have a wrl file I would like to use as a 3D model. I found lots of sites
telling me that there is a plugin enabling me to read those, but I couldn't
find the .dll
file that is actually the plugin.

Can anyone please send me the link to download the plugin?

Thank you!

Cheers,
John

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





___
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