Re: [osg-users] Texturing issues second window

2008-09-08 Thread amalric alexandre
Hi Robert,

Thank you for the tip, you are right.

I used osgConv without optimisation on my original openflight model, and
texture are OK in both windows (for ive and osg).

If I don't want the optimizer to unref images, I have to remove
OPTIMIZE_TEXTURE_SETTINGS
parameter, but what might I loss in terms of performance without this
parameter enabled ?



2008/9/5 Robert Osfield [EMAIL PROTECTED]

 HI Amalric,

 If you open the second graphics window after the first second graphics
 has been rendered and they share the same view, and the texture's are
 set up to unref images after apply, then only the second graphics
 window there will be no image to apply.  If you have this particular
 combination of viewer usage then you will have to ensure you don't use
 the unref images after apply optimization in Textures - by default
 this is off, but the osgUtil::Optimizer can enable it, so perhaps this
 has been done from your .ive files, but not your .osg files.

 Robert.


 On Fri, Sep 5, 2008 at 11:28 AM, amalric alexandre
 [EMAIL PROTECTED] wrote:
  Hi Scott,
 
  I'm currently having the same problem as you, i'm using last developper
  release OSG 2.7.1.
  When I open an .osg file in the second view everything is ok, but when I
  load an .ive file, the texture is missing in the second view.
  Please let us hear if you've found the trick.
  2008/8/3 Robert Osfield [EMAIL PROTECTED]
 
  Hi Scott,
 
  The most likely cause of this type of problem is contextID's for each
  graphics context are not being managed appropriately or contextID's
  are being reused inappropriately.  I can't say for sure though as I
  don't have your code in front of me.
 
  Since 2.4 we have done some work on this area, so the problem might
  already be fixed for you so could you please move to the 2.6.0-rc1 or
  2.6 branch in SVN and then let us know if the problem still occurs.
 
  Robert.
 
  On Mon, Jul 28, 2008 at 3:12 PM, Scott Angster 
 [EMAIL PROTECTED]
  wrote:
   Hello-
  
   We are seeing an interesting problem that we can not track down.
   Several previous postings have been similar but not quite what we are
   seeing.  We are hoping someone can point us in a possible direction to
   find a solution.
  
   We have an OSG/QT application using multiple windows with views into
 the
   same scene graph.  We use multiple instances of the Viewer to do this.
   We are seeing issues in the second/third/etc window for models loaded
 in
   containing textures.  The textures do not load and we get Warning:
   detected OpenGL error 'invalid enumerant' after applying attribute
   Texture2D when the second window is opened.
  
   However if we create an object at runtime, say a sphere, and apply a
   texture to it, the second/third/etc window do not have problems with
 it.
   If we save out the node we created to an IVE file and reload it, the
   problem is there.
  
   I have tried to duplicate this problem using the osgviewer QT example
   such that I have a simpler code base to work with, and I can't.  I
 have
   made this example more complex, adding features to it to replicate our
   code (HUD, textured background, our update loop for updating dynamic
   transform nodes and camera positioning, our state settings, thread
   settings, etc).
  
   We seem to have an issue with PagedLOD too in our application for the
   second/third windows.  I hope this issue is related so if we focus on
   the texture problem, maybe the other will be solved.
  
   We are using OSG 2.4 and currently QT 3.3 (hope to be moving to 4.X
   soon).  We are seeing this on both our Linux and Windows machines.
  
   Thanks for any suggestions or insight into this.
  
   Scott
  
  
  
  
  
   ___
   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
 
 
 
  --
  Alexandre AMALRIC Ingénieur RD
  ===
  PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
  http://www.pixxim.fr
 
  ___
  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




-- 
Alexandre AMALRIC Ingénieur RD
===
PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
http://www.pixxim.fr
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Texturing issues second window

2008-09-05 Thread amalric alexandre
Hi Scott,

I'm currently having the same problem as you, i'm using last developper
release OSG 2.7.1.
When I open an .osg file in the second view everything is ok, but when I
load an .ive file, the texture is missing in the second view.
Please let us hear if you've found the trick.
2008/8/3 Robert Osfield [EMAIL PROTECTED]

 Hi Scott,

 The most likely cause of this type of problem is contextID's for each
 graphics context are not being managed appropriately or contextID's
 are being reused inappropriately.  I can't say for sure though as I
 don't have your code in front of me.

 Since 2.4 we have done some work on this area, so the problem might
 already be fixed for you so could you please move to the 2.6.0-rc1 or
 2.6 branch in SVN and then let us know if the problem still occurs.

 Robert.

 On Mon, Jul 28, 2008 at 3:12 PM, Scott Angster [EMAIL PROTECTED]
 wrote:
   Hello-
 
  We are seeing an interesting problem that we can not track down.
  Several previous postings have been similar but not quite what we are
  seeing.  We are hoping someone can point us in a possible direction to
  find a solution.
 
  We have an OSG/QT application using multiple windows with views into the
  same scene graph.  We use multiple instances of the Viewer to do this.
  We are seeing issues in the second/third/etc window for models loaded in
  containing textures.  The textures do not load and we get Warning:
  detected OpenGL error 'invalid enumerant' after applying attribute
  Texture2D when the second window is opened.
 
  However if we create an object at runtime, say a sphere, and apply a
  texture to it, the second/third/etc window do not have problems with it.
  If we save out the node we created to an IVE file and reload it, the
  problem is there.
 
  I have tried to duplicate this problem using the osgviewer QT example
  such that I have a simpler code base to work with, and I can't.  I have
  made this example more complex, adding features to it to replicate our
  code (HUD, textured background, our update loop for updating dynamic
  transform nodes and camera positioning, our state settings, thread
  settings, etc).
 
  We seem to have an issue with PagedLOD too in our application for the
  second/third windows.  I hope this issue is related so if we focus on
  the texture problem, maybe the other will be solved.
 
  We are using OSG 2.4 and currently QT 3.3 (hope to be moving to 4.X
  soon).  We are seeing this on both our Linux and Windows machines.
 
  Thanks for any suggestions or insight into this.
 
  Scott
 
 
 
 
 
  ___
  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




-- 
Alexandre AMALRIC Ingénieur RD
===
PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
http://www.pixxim.fr
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Texturing issues second window

2008-09-05 Thread Robert Osfield
HI Amalric,

If you open the second graphics window after the first second graphics
has been rendered and they share the same view, and the texture's are
set up to unref images after apply, then only the second graphics
window there will be no image to apply.  If you have this particular
combination of viewer usage then you will have to ensure you don't use
the unref images after apply optimization in Textures - by default
this is off, but the osgUtil::Optimizer can enable it, so perhaps this
has been done from your .ive files, but not your .osg files.

Robert.


On Fri, Sep 5, 2008 at 11:28 AM, amalric alexandre
[EMAIL PROTECTED] wrote:
 Hi Scott,

 I'm currently having the same problem as you, i'm using last developper
 release OSG 2.7.1.
 When I open an .osg file in the second view everything is ok, but when I
 load an .ive file, the texture is missing in the second view.
 Please let us hear if you've found the trick.
 2008/8/3 Robert Osfield [EMAIL PROTECTED]

 Hi Scott,

 The most likely cause of this type of problem is contextID's for each
 graphics context are not being managed appropriately or contextID's
 are being reused inappropriately.  I can't say for sure though as I
 don't have your code in front of me.

 Since 2.4 we have done some work on this area, so the problem might
 already be fixed for you so could you please move to the 2.6.0-rc1 or
 2.6 branch in SVN and then let us know if the problem still occurs.

 Robert.

 On Mon, Jul 28, 2008 at 3:12 PM, Scott Angster [EMAIL PROTECTED]
 wrote:
  Hello-
 
  We are seeing an interesting problem that we can not track down.
  Several previous postings have been similar but not quite what we are
  seeing.  We are hoping someone can point us in a possible direction to
  find a solution.
 
  We have an OSG/QT application using multiple windows with views into the
  same scene graph.  We use multiple instances of the Viewer to do this.
  We are seeing issues in the second/third/etc window for models loaded in
  containing textures.  The textures do not load and we get Warning:
  detected OpenGL error 'invalid enumerant' after applying attribute
  Texture2D when the second window is opened.
 
  However if we create an object at runtime, say a sphere, and apply a
  texture to it, the second/third/etc window do not have problems with it.
  If we save out the node we created to an IVE file and reload it, the
  problem is there.
 
  I have tried to duplicate this problem using the osgviewer QT example
  such that I have a simpler code base to work with, and I can't.  I have
  made this example more complex, adding features to it to replicate our
  code (HUD, textured background, our update loop for updating dynamic
  transform nodes and camera positioning, our state settings, thread
  settings, etc).
 
  We seem to have an issue with PagedLOD too in our application for the
  second/third windows.  I hope this issue is related so if we focus on
  the texture problem, maybe the other will be solved.
 
  We are using OSG 2.4 and currently QT 3.3 (hope to be moving to 4.X
  soon).  We are seeing this on both our Linux and Windows machines.
 
  Thanks for any suggestions or insight into this.
 
  Scott
 
 
 
 
 
  ___
  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



 --
 Alexandre AMALRIC Ingénieur RD
 ===
 PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
 http://www.pixxim.fr

 ___
 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] Texturing issues second window

2008-08-03 Thread Robert Osfield
Hi Scott,

The most likely cause of this type of problem is contextID's for each
graphics context are not being managed appropriately or contextID's
are being reused inappropriately.  I can't say for sure though as I
don't have your code in front of me.

Since 2.4 we have done some work on this area, so the problem might
already be fixed for you so could you please move to the 2.6.0-rc1 or
2.6 branch in SVN and then let us know if the problem still occurs.

Robert.

On Mon, Jul 28, 2008 at 3:12 PM, Scott Angster [EMAIL PROTECTED] wrote:
 Hello-

 We are seeing an interesting problem that we can not track down.
 Several previous postings have been similar but not quite what we are
 seeing.  We are hoping someone can point us in a possible direction to
 find a solution.

 We have an OSG/QT application using multiple windows with views into the
 same scene graph.  We use multiple instances of the Viewer to do this.
 We are seeing issues in the second/third/etc window for models loaded in
 containing textures.  The textures do not load and we get Warning:
 detected OpenGL error 'invalid enumerant' after applying attribute
 Texture2D when the second window is opened.

 However if we create an object at runtime, say a sphere, and apply a
 texture to it, the second/third/etc window do not have problems with it.
 If we save out the node we created to an IVE file and reload it, the
 problem is there.

 I have tried to duplicate this problem using the osgviewer QT example
 such that I have a simpler code base to work with, and I can't.  I have
 made this example more complex, adding features to it to replicate our
 code (HUD, textured background, our update loop for updating dynamic
 transform nodes and camera positioning, our state settings, thread
 settings, etc).

 We seem to have an issue with PagedLOD too in our application for the
 second/third windows.  I hope this issue is related so if we focus on
 the texture problem, maybe the other will be solved.

 We are using OSG 2.4 and currently QT 3.3 (hope to be moving to 4.X
 soon).  We are seeing this on both our Linux and Windows machines.

 Thanks for any suggestions or insight into this.

 Scott





 ___
 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] Texturing issues second window

2008-07-29 Thread Scott Angster
We are seeing the texture problem in the additional windows for simple
objects, ones that are not using paged LOD.  It definitely seems to be
related to the contexts but can't find the right settings to get it to
work.  What is strange is that, like I mentioned before, if we create
the sphere and texture it internally, it works fine.  But if I load a
sphere with a texture on it, it will have problems in the second/third
windows, giving the invalid enumerant error.

Thanks again.

Scott

On Mon, 2008-07-28 at 16:38 +0200, Serge Lages wrote:
 Hi Scott,
 
 Have you setted the pager to not unref images after applying them ?
 When you have multiple contexts, you have to make sure images are not
 deleted before each context has applied it.
 
 On Mon, Jul 28, 2008 at 4:12 PM, Scott Angster
 [EMAIL PROTECTED] wrote:
 Hello-
 
 We are seeing an interesting problem that we can not track
 down.
 Several previous postings have been similar but not quite what
 we are
 seeing.  We are hoping someone can point us in a possible
 direction to
 find a solution.
 
 We have an OSG/QT application using multiple windows with
 views into the
 same scene graph.  We use multiple instances of the Viewer to
 do this.
 We are seeing issues in the second/third/etc window for models
 loaded in
 containing textures.  The textures do not load and we get
 Warning:
 detected OpenGL error 'invalid enumerant' after applying
 attribute
 Texture2D when the second window is opened.
 
 However if we create an object at runtime, say a sphere, and
 apply a
 texture to it, the second/third/etc window do not have
 problems with it.
 If we save out the node we created to an IVE file and reload
 it, the
 problem is there.
 
 I have tried to duplicate this problem using the osgviewer QT
 example
 such that I have a simpler code base to work with, and I
 can't.  I have
 made this example more complex, adding features to it to
 replicate our
 code (HUD, textured background, our update loop for updating
 dynamic
 transform nodes and camera positioning, our state settings,
 thread
 settings, etc).
 
 We seem to have an issue with PagedLOD too in our application
 for the
 second/third windows.  I hope this issue is related so if we
 focus on
 the texture problem, maybe the other will be solved.
 
 We are using OSG 2.4 and currently QT 3.3 (hope to be moving
 to 4.X
 soon).  We are seeing this on both our Linux and Windows
 machines.
 
 Thanks for any suggestions or insight into this.
 
 Scott
 
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 
 
 -- 
 Serge Lages
 http://www.tharsis-software.com
 
 ___
 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] Texturing issues second window

2008-07-28 Thread Serge Lages
Hi Scott,

Have you setted the pager to not unref images after applying them ? When you
have multiple contexts, you have to make sure images are not deleted before
each context has applied it.

On Mon, Jul 28, 2008 at 4:12 PM, Scott Angster [EMAIL PROTECTED]wrote:

 Hello-

 We are seeing an interesting problem that we can not track down.
 Several previous postings have been similar but not quite what we are
 seeing.  We are hoping someone can point us in a possible direction to
 find a solution.

 We have an OSG/QT application using multiple windows with views into the
 same scene graph.  We use multiple instances of the Viewer to do this.
 We are seeing issues in the second/third/etc window for models loaded in
 containing textures.  The textures do not load and we get Warning:
 detected OpenGL error 'invalid enumerant' after applying attribute
 Texture2D when the second window is opened.

 However if we create an object at runtime, say a sphere, and apply a
 texture to it, the second/third/etc window do not have problems with it.
 If we save out the node we created to an IVE file and reload it, the
 problem is there.

 I have tried to duplicate this problem using the osgviewer QT example
 such that I have a simpler code base to work with, and I can't.  I have
 made this example more complex, adding features to it to replicate our
 code (HUD, textured background, our update loop for updating dynamic
 transform nodes and camera positioning, our state settings, thread
 settings, etc).

 We seem to have an issue with PagedLOD too in our application for the
 second/third windows.  I hope this issue is related so if we focus on
 the texture problem, maybe the other will be solved.

 We are using OSG 2.4 and currently QT 3.3 (hope to be moving to 4.X
 soon).  We are seeing this on both our Linux and Windows machines.

 Thanks for any suggestions or insight into this.

 Scott





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




-- 
Serge Lages
http://www.tharsis-software.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org