Re: [osg-users] Alternative to osgCal ?

2008-04-28 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Cedric,

Cedric Pinson wrote:
 Hi,
 
 I am currently working on an animation library 
 http://animtk.plopbyte.net is not yet mature and stable as cal3d. Any 
 input will be appreciated
 
 Cedric
 

I see that your library is GPL v2 or later, that is not going to be
useful for many people here due to various legal issues - even for me at
our university (research use).

Of course, you have the right to license your code as you deem fit,
however this was the primary reason why Ruben Lopez has forked the
osgCal code when Loic (who is is one of your developers, as I can see)
changed the original license to GPL.

cal3D is LGPL, that is why it is used (and also because it is the only
mature lib of its kind too).

Regards,

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFIFYyMn11XseNj94gRAnrKAKC1oqzFvDSCFU1ijjYLZ6TdaDlmVACg5veO
tiFQq9MxhBY/3nNL1rOVKRM=
=l9XN
-END PGP SIGNATURE-
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Aircraft Simulation Control by MatrixTransform

2008-04-28 Thread ümit uzun

Hi All;

I am trying to AircraftSimulation project. I have an BlueMarbleEarth database 
(ECEF). I have these nodes in my program ;

1 - Earth Model TrasformMatrixNode
2 - Aircraft Model PositionMatrixTrasform

And these two models are child of CoordinateSystemNode which is Ellipsoid 
Model. In this point I have an Callback which rotates the earth model around 
it's xyz coordinate system. Actually earth is rotating and aircraft is stopping 
on the earth at same coordinate on the screen. So we suppose that the aircraft 
is flying.

And aircraft could rotated it's xyz coordinate system by fixed keyboard button 
too. 

I want to rotate earth model by aircraft model PositionMatrixTrasform matrix. I 
mean when I rotate the aircraft around the z vector (in z up matrix system) 
this make the earth model rotate around the z vector too but opposite position. 
So you turn the aircraft left, earth will be rotated to right automatically.

How can ı do this control?


ÜMİT UZUN

_
Aileye katılmanın tam zamanı! Windows Live Messenger'ın 2008 versiyonunu 
yükleyin! Ücretsiz!
http://get.live.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] vrml files

2008-04-28 Thread Martin Großer
Hello,

I have two little questions. First, how can I load VRML-Files, with the 
osgViewer?

And how can I use the osgUtil::SceneView? Maybe, a little example would be 
helpful.

Cheers,

Martin


-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osg::Viewer remove event handler

2008-04-28 Thread Michele Bosi
Hello,
I need to remove an event handler added to a Viewer using
addEventHandler (osgGA::GUIEventHandler *eventHandler)
I expected to find something like remove/delete/eraseEventHandler
but couldn't find anything, how can I remove then an event handler?

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


Re: [osg-users] Paris OSG Users Group directions

2008-04-28 Thread David Callu
Thanks Paul, see you soon.
David

2008/4/28 Paul Martz [EMAIL PROTECTED]:

  To all who will attend the Paris OSG Users Group tonight... This message
 from Serge tells you how to get there, and how to get in the door once
 you're there.

 See you tonight!
-Paul


  --
 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Serge Lages
 *Sent:* Wednesday, April 02, 2008 9:22 AM
 *To:* OpenSceneGraph Users
 *Subject:* Re: [osg-users] OSG user meeting in Paris - Monday 28 April

 Hi all,

 About the place, here is the address :

 Tharsis Software - Paris Innovation
 5 Rue d'Uzès
 75002 Paris
 FRANCE

 The google map 
 herehttp://maps.google.fr/maps?f=qhl=frgeocode=q=5,+Rue+d%27Uz%C3%A8s,+75002+2%C3%A8me+Arrondissement,+Parissll=47.15984,2.988281sspn=13.09218,33.09082ie=UTF8ll=48.871998,2.34498spn=0.012364,0.032315z=15iwloc=addror
  :
 http://maps.google.fr/maps?f=qhl=frgeocode=q=5,+Rue+d'Uz%C3%A8s,+75002+2%C3%A8me+Arrondissement,+Parissll=47.15984,2.988281sspn=13.09218,33.09082ie=UTF8ll=48.871998,2.34498spn=0.012364,0.032315z=15iwloc=addrhttp://maps.google.fr/maps?f=qhl=frgeocode=q=5,+Rue+d%27Uz%C3%A8s,+75002+2%C3%A8me+Arrondissement,+Parissll=47.15984,2.988281sspn=13.09218,33.09082ie=UTF8ll=48.871998,2.34498spn=0.012364,0.032315z=15iwloc=addr
 It's next to the subway Grands Boulevards, or Bourse.

 When you'll be in front of the door, you'll have to press the button P
 on the digicode (is it the same word in English ?) to enter. Then in front
 of you, you'll have a new door with another digicode, here you'll have to
 push the button Accueil and the door will open. And finally, you'll just
 have to get up the stairs in front of you. Don't worry, it's easier than it
 seems... :)


 ___
 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::Viewer remove event handler

2008-04-28 Thread Michele Bosi
In case anyone is interested here's my implementation of the
removeEventHandler(), it's a simple removal from the std::list used by
OSG, don't know if there are other interactions that one should take
care of though:

  void removeEventHandler(osgGA::GUIEventHandler* eventHandler)
  {
osgViewer::View::EventHandlers::iterator it =
std::find(_eventHandlers.begin(), _eventHandlers.end(), eventHandler);
if ( it != _eventHandlers.end() )
  _eventHandlers.erase( it );
  }


On Mon, Apr 28, 2008 at 2:08 PM, David Callu [EMAIL PROTECTED] wrote:
 Hi Michele


  Other correct me if i am wrong, but I don't found any method to remove
 EventHandler from an osgViewer::View.
  Fell free to implement one :-).

 HTH
 David Callu

  2008/4/28 Michele Bosi [EMAIL PROTECTED]:
 
 
 
  Hello,
  I need to remove an event handler added to a Viewer using
  addEventHandler (osgGA::GUIEventHandler *eventHandler)
  I expected to find something like remove/delete/eraseEventHandler
  but couldn't find anything, how can I remove then an event handler?
 
  Thanks,
  Michele
  ___
  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


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


Re: [osg-users] vrml files

2008-04-28 Thread Gordon Tomlinson


WRT to ::SceneView, search the examples directory e there are at 2 I think
that use SceneView


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



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Großer
Sent: Monday, April 28, 2008 6:02 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] vrml files

Hello,

I have two little questions. First, how can I load VRML-Files, with the
osgViewer?

And how can I use the osgUtil::SceneView? Maybe, a little example would be
helpful.

Cheers,

Martin


--
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
___
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


[osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread erf
I've created the PickHandler as in the QuickGuide book and added to my Viewer ( 
as embedded! ), but I cant catch mouse events, only FRAME type.

Do you know what I'm doing wrong?

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


Re: [osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread erf
ps.. using osg 2.3.7 on win vista.. could it be some kind of bug with this 
version? do  you think upgrading to 2.4 would solve my problem?

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 28. april 2008 16:07
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Picking as the QuickGuide example only using Viewer as 
embedded window, does only catch FRAME type, no mouse events!

I've created the PickHandler as in the QuickGuide book and added to my Viewer ( 
as embedded! ), but I cant catch mouse events, only FRAME type.

Do you know what I'm doing wrong?

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


Re: [osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread Paul Martz
EventHandlers use the Chain of Responsibility design pattern. If you have
another EventHandler installed earlier that is taking the mouse events, then
downstream EventHandlers do not receive those events.
 
Not sure why else you might not receive those events.
   -Paul
 


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 28, 2008 8:07 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Picking as the QuickGuide example only using Viewer as
embedded window, does only catch FRAME type, no mouse events!



I've created the PickHandler as in the QuickGuide book and added to my
Viewer ( as embedded! ), but I cant catch mouse events, only FRAME type.

 

Do you know what I'm doing wrong?

 

Erlend

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


Re: [osg-users] Picking as the QuickGuide example only using Viewer as embedded window, does only catch FRAME type, no mouse events!

2008-04-28 Thread Jeremy Moles

On Mon, 2008-04-28 at 16:07 +0200, [EMAIL PROTECTED] wrote:
 I've created the PickHandler as in the QuickGuide book and added to my
 Viewer ( as embedded! ), but I cant catch mouse events, only FRAME
 type.
 
  
 
 Do you know what I'm doing wrong?

You won't be able to use standard OSG events unless OSG created and
managed the entire window. You'll have to hook into whatever API you
used to create the Window (Qt, GTK, SDL, etc.) and convert the events
there.

The osgviewerSDL demonstrates this pretty well, and I've written an
osgviewerGTK I plan on submitting once Robert gets back which converts
GTK events into OSG events.

 Erlend
 
 
 ___
 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] Off-screen rendering

2008-04-28 Thread Tessier, Philip
Hmmm.  I'm using Rafa's code, and am getting the failed to create pbuffer 
message each time.
 
Is there some initialization that must preceed this to get it to work?
 
Thanks,
Phil



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafa Gaitan
Sent: Sunday, April 27, 2008 4:53 PM
To: [EMAIL PROTECTED]; OpenSceneGraph Users
Subject: Re: [osg-users] Off-screen rendering


Hi Philip and xbee

We have this code and is working for us:

osg::ref_ptrosg::GraphicsContext::Traits traits = new 
osg::GraphicsContext::Traits;
traits-x =x;
traits-y = y;
traits-width = width;
traits-height = height;
traits-windowDecoration = false;
traits-doubleBuffer = false;
traits-sharedContext = 0;
traits-pbuffer = true;

osg::GraphicsContext* _gc= 
osg::GraphicsContext::createGraphicsContext(traits.get());

if (!_gc)
{
osg::notify(osg::NOTICE)Failed to create pbuffer, failing back to 
normal graphics window.std::endl;

traits-pbuffer = false;
_gc = osg::GraphicsContext::createGraphicsContext(traits.get());
}
v-getCamera()-setGraphicsContext(_gc);
v-getCamera()-setViewport(new osg::Viewport(x,y,width,height));

v is an osgViewer::Viewer.

Hope this helps.



On Sun, Apr 27, 2008 at 7:49 PM, xbee [EMAIL PROTECTED] wrote:


Tessier, Philip a écrit :

 My attempt to use createGraphicsContext() to create an off-screen
 rendering context is failing.  (It's returning NULL.)

 I'm using Win32.

 What am I missing?

 I have added the following to my code:
 osg::GraphicsContext * GetOffscreenGraphicsContext(
   unsigned a_tex_width,
   unsigned a_tex_height
   )
 {
   osg::ref_ptrosg::GraphicsContext::Traits traits=new
 osg::GraphicsContext::Traits;

   traits-width = a_tex_width;
   traits-height = a_tex_height;
 //traits-doubleBuffer = true;
   traits-pbuffer = true;

   osg::ref_ptrosg::GraphicsContext
 gc=osg::GraphicsContext::createGraphicsContext(traits.get());
   // TODO: Above returning NULL!

   return gc.get();
 }

 with the following to hook it in:
   // Setup camera for off-screen rendering.
   osg::ref_ptrosg::GraphicsContext gc=
 GetOffscreenGraphicsContext( tex_width, tex_height);
   camera-setGraphicsContext(gc.get());

 Thanks,
 Phil



Hi,
Found any solution ? I've the same problem, I have a previous solution
with Producer but I want to port my snapshot application to 2.4 release
and I can't save any image without a viewer. Anyone have a solution ?

Thanks

--
   _
  /_/_  .'''.
   =O(X ...' `.
  \_\  `..'''
 `..'
Power corrupts. PowerPoint corrupts absolutely.
My personnal (french) Websites: http://www.xbee.net
and http://www.french-comics-zone.fr.st


___
osg-users mailing list
osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





-- 
Rafael Gaitán Linares 
Instituto de Automática e Informática Industrial http://www.ai2.upv.es
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Off-screen rendering

2008-04-28 Thread nicolas peña
This sound like if your hardware / driver does not support pbuffers,
I have used similar  code in the past and it worked for me.

Cheers,

  Nicolas

2008/4/28 Tessier, Philip [EMAIL PROTECTED]:

  Hmmm.  I'm using Rafa's code, and am getting the failed to create
 pbuffer message each time.

 Is there some initialization that must preceed this to get it to work?

 Thanks,
 Phil

  --
 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Rafa Gaitan
 *Sent:* Sunday, April 27, 2008 4:53 PM
 *To:* [EMAIL PROTECTED]; OpenSceneGraph Users
 *Subject:* Re: [osg-users] Off-screen rendering

 Hi Philip and xbee

 We have this code and is working for us:

 osg::ref_ptrosg::GraphicsContext::Traits traits = new
 osg::GraphicsContext::Traits;
 traits-x =x;
 traits-y = y;
 traits-width = width;
 traits-height = height;
 traits-windowDecoration = false;
 traits-doubleBuffer = false;
 traits-sharedContext = 0;
 traits-pbuffer = true;

 osg::GraphicsContext* _gc=
 osg::GraphicsContext::createGraphicsContext(traits.get());

 if (!_gc)
 {
 osg::notify(osg::NOTICE)Failed to create pbuffer, failing back
 to normal graphics window.std::endl;

 traits-pbuffer = false;
 _gc = osg::GraphicsContext::createGraphicsContext(traits.get());
 }
 v-getCamera()-setGraphicsContext(_gc);
 v-getCamera()-setViewport(new osg::Viewport(x,y,width,height));

 v is an osgViewer::Viewer.

 Hope this helps.


 On Sun, Apr 27, 2008 at 7:49 PM, xbee [EMAIL PROTECTED] wrote:

  Tessier, Philip a écrit :
My attempt to use createGraphicsContext() to create an off-screen
   rendering context is failing.  (It's returning NULL.)
  
   I'm using Win32.
  
   What am I missing?
  
   I have added the following to my code:
   osg::GraphicsContext * GetOffscreenGraphicsContext(
 unsigned a_tex_width,
 unsigned a_tex_height
 )
   {
 osg::ref_ptrosg::GraphicsContext::Traits traits=new
   osg::GraphicsContext::Traits;
  
 traits-width = a_tex_width;
 traits-height = a_tex_height;
   //traits-doubleBuffer = true;
 traits-pbuffer = true;
  
 osg::ref_ptrosg::GraphicsContext
   gc=osg::GraphicsContext::createGraphicsContext(traits.get());
 // TODO: Above returning NULL!
  
 return gc.get();
   }
  
   with the following to hook it in:
 // Setup camera for off-screen rendering.
 osg::ref_ptrosg::GraphicsContext gc=
   GetOffscreenGraphicsContext( tex_width, tex_height);
 camera-setGraphicsContext(gc.get());
  
   Thanks,
   Phil
  
 
  Hi,
  Found any solution ? I've the same problem, I have a previous solution
  with Producer but I want to port my snapshot application to 2.4 release
  and I can't save any image without a viewer. Anyone have a solution ?
 
  Thanks
 
  --
 _
/_/_  .'''.
 =O(X ...' `.
\_\  `..'''
   `..'
  Power corrupts. PowerPoint corrupts absolutely.
  My personnal (french) Websites: http://www.xbee.net
  and http://www.french-comics-zone.fr.st
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 



 --
 Rafael Gaitán Linares
 Instituto de Automática e Informática Industrial http://www.ai2.upv.es
 Ciudad Politécnica de la Innovación
 Universidad Politécnica de Valencia

 ___
 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] Aircraft Simulation Control by MatrixTransform

2008-04-28 Thread ümit uzun

Hi Zoltan,

This aircraft simulation like osgsimulation or palomino3d. But this will be 
most simple from palomino3d. I will control my selected aircraft model on the 
earth and fly everywhere around the world. This is my school project.

When I finish it, I will send the download link to list.

ÜMİT UZUNhttp://umituzun84.blogspot.com/

 From: [EMAIL PROTECTED]
 To: osg-users@lists.openscenegraph.org
 Date: Mon, 28 Apr 2008 14:11:10 +0200
 Subject: Re: [osg-users] Aircraft Simulation Control by MatrixTransform
 
 ümit uzun wrote on Monday 28 April 2008:
  I am trying to AircraftSimulation project.
  [...]
 
 Hello ümit,
 
 I'm new to this list: what AircraftSimulation project is 
 this, please ?
 
 bye
 
 Zoltán
 
 
 
 -- 
  
 
 
 Zoltan
 
 
  
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_
Windows Live Hotmail size ücretsiz 5GB'lık ÜCRETSİZ depolama olanağını sunuyor! 
Ücretsiz Windows Live Hotmail hesabınızı buradan edinin!
http://get.live.com/mail/overview___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Off-screen rendering

2008-04-28 Thread xbee
nicolas peña a écrit :
 This sound like if your hardware / driver does not support pbuffers,
 I have used similar  code in the past and it worked for me.

 Cheers,

   Nicolas

 2008/4/28 Tessier, Philip [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]:


I've the same issue if I don't create a viewer before. With this 
technique, we need a viewer and we have a blink on the screen when the 
snapshot is done :(

Cheers


-- 
_
   /_/_  .'''.
=O(X ...' `.
   \_\  `..'''
  `..'
Power corrupts. PowerPoint corrupts absolutely.
My personnal (french) Websites: http://www.xbee.net
and http://www.french-comics-zone.fr.st 

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


[osg-users] Grabbing depth buffer from pre-render camera?

2008-04-28 Thread Jason Ziglar
I've got a camera set up to perform a pre-render pass, so I can generate 
a shadow map for the scene of interest. I have verified that the camera 
is running via the PostDrawCallback, but the resulting image is the same 
even though the scene is changing between images. The PostDrawCallback 
merely calls dirty() on the image - this code results in a static image. 
Anyone have any clues what is wrong with this code?

Thanks in advance,


ref_ptrCamera m_prerenderCamera;
ref_ptrImage m_shadowImage;
ref_ptrTexture2D m_shadowMap;
const int TextureSize = 1024; 
m_prerenderCamera-setRenderTargetImplementation(Camera::FRAME_BUFFER_OBJECT);
m_prerenderCamera-setClearColor(Vec4(1.0f, 0.0f, 1.0f, 1.0f));
m_prerenderCamera-setClearMask(GL_DEPTH_BUFFER_BIT  | GL_COLOR_BUFFER_BIT);
  m_prerenderCamera-setComputeNearFarMode(Camera::DO_NOT_COMPUTE_NEAR_FAR);

m_prerenderCamera-setReferenceFrame(Transform::ABSOLUTE_RF);
m_prerenderCamera-setProjectionMatrixAsPerspective(90.0, 1024.0/768.0, 
1.0, 100.0);
m_prerenderCamera-setViewMatrix(Matrix::identity());
m_prerenderCamera-setViewport(0, 0, TextureSize, TextureSize);
m_prerenderCamera-setRenderOrder(Camera::PRE_RENDER);

  {
StateSet* ss = m_prerenderCamera-getOrCreateStateSet();

osg::Depth* depth = new osg::Depth;
ss-setAttributeAndModes(depth, StateAttribute::ON);
  }

m_shadowImage-allocateImage(TextureSize, TextureSize, 1, 
GL_DEPTH_COMPONENT, GL_FLOAT);

m_prerenderCamera-attach(Camera::DEPTH_BUFFER, m_shadowImage.get());
m_prerenderCamera-addChild(m_maskingScene.get());

m_shadowMap-setImage(m_shadowImage.get());
m_prerenderCamera-setPostDrawCallback(new CameraCallback(m_shadowImage));

m_shadowMap-setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_BORDER);
m_shadowMap-setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_BORDER);
m_shadowMap-setWrap(osg::Texture::WRAP_R, osg::Texture::CLAMP_TO_BORDER);
{
  StateSet* ss = m_projectedScene-getOrCreateStateSet();
  ss-setTextureAttributeAndModes(m_shadowUnit, m_shadowMap.get(), 
StateAttrib
  ss-setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
  ss-setMode(GL_BLEND, osg::StateAttribute::ON);
}
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] The 3rdParty_Win32binaries_2005_05_10.zip

2008-04-28 Thread GuiYe
 
 
  Hello ,Robert~
  The 3rdParty_Win32binaries_2005_05_10.zip should update.If it does not updat, 
many peopel can't compile OSG2.4!And in China,the svn is so slowly!
Thank you!___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] The 3rdParty_Win32binaries_2005_05_10.zip

2008-04-28 Thread Jean-Sébastien Guay
Hello GuiYe,

 The 3rdParty_Win32binaries_2005_05_10.zip 
 http://www.openscenegraph.org/downloads/dependencies/3rdParty_Win32binaries_2005_05_10.zip
  
 should update.If it does not updat, many peopel can't compile OSG2.4!And 
 in China,the svn is so slowly!
 Thank you!

Robert has no control over Win32 binaries...

Perhaps we could persuade Mike (Weiblen) to make a zip of the current 
dependencies from his SVN?

J-S
-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
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] The 3rdParty_Win32binaries_2005_05_10.zip

2008-04-28 Thread Mike Weiblen
Hello,

That 3rdParty_Win32binaries_2005_05_10.zip of 3rdParty binaries is very very 
old, and only useful for Visual Studio 7.1.  (It should be marked with a big 
red label saying Do Not Use Anymore)

The current right way to get the 3rdParty libraries is to checkout from the 
Subversion at 
https://osgtoy.svn.sourceforge.net/svnroot/osgtoy/3rdParty/branches/3rdParty_win32binaries_vs80sp1/
That is where the latest and actively maintained binaries are made available.

If it is desirable I could create a .zip snapshot for convenience.

cheers
-- mew





 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of GuiYe
 Sent: Monday, April 28, 2008 2:13 PM
 To: osg-users
 Subject: [osg-users] The 3rdParty_Win32binaries_2005_05_10.zip
 
 
 
   Hello ,Robert~
   The 3rdParty_Win32binaries_2005_05_10.zip
 http://www.openscenegraph.org/downloads/dependencies/3rdParty_Win32bin
 aries_2005_05_10.zip  should update.If it does not updat, many peopel
 can't compile OSG2.4!And in China,the svn is so slowly!
 Thank you!
 
 
 
 
 独栋情境别墅230万起,品鉴热线:60692999
 http://popme.163.com/link/003982_0425_6346.html
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osg 2.4 Wrapper Build Errors in VS 7.1

2008-04-28 Thread Donald Cipperly
Visual Studio 7.1 doesn't seem to like osg::ref_ptr  variables in the
wrapper cpp files:

osgViewer\View.cpp(118) : error C2947: expecting '' to terminate
template-argument-list, found ''
osgText\Text3D.cpp(96) : error C2947: expecting '' to terminate
template-argument-list, found ''
osgText\Text.cpp(102) : error C2947: expecting '' to terminate
template-argument-list, found ''

Anyone else seeing this?

Thanks,

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


Re: [osg-users] osg 2.4 Wrapper Build Errors in VS 7.1

2008-04-28 Thread Jean-Sébastien Guay
Hi Donald,

 osgViewer\View.cpp(118) : error C2947: expecting '' to terminate 
 template-argument-list, found ''
 osgText\Text3D.cpp(96) : error C2947: expecting '' to terminate 
 template-argument-list, found ''
 osgText\Text.cpp(102) : error C2947: expecting '' to terminate 
 template-argument-list, found ''

Hehe VS 7.1 doesn't like , it thinks it's the operator. Just put a 
space between the two  signs. Robert will probably fix this when he 
gets back.

J-S
-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
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


[osg-users] Performing non-rendering actions between renderbins

2008-04-28 Thread Jason Baurick
Hi,

I recently started working with OSG and I have what is hopefully a simple
question.  I have a composite viewer with two views, I want to perform an
action on the buffers in each view between the opaque rendering and the
transparent rendering, each view needs to perform a different action.
Currently to make this work I added two nodes to my scene graph, culled out
one for each view and then stuck them in a renderbin between the opaque and
transparent bins.  So I guess what I'm asking is if there is a simpler way
to do this?  I tried setting up camera callbacks, but this happens at the
wrong point, my next thought would be to overload the draw traversal.

Any suggestions would be welcomed, thank you in advance.

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


Re: [osg-users] osg 2.4 Wrapper Build Errors in VS 7.1

2008-04-28 Thread Donald Cipperly
Thanks, adding the space in the macro did indeed fix it.  I'll go ahead and
submit the fix.

- Donny

On Mon, Apr 28, 2008 at 3:31 PM, Jean-Sébastien Guay 
[EMAIL PROTECTED] wrote:

 Hi Donald,

  osgViewer\View.cpp(118) : error C2947: expecting '' to terminate
  template-argument-list, found ''
  osgText\Text3D.cpp(96) : error C2947: expecting '' to terminate
  template-argument-list, found ''
  osgText\Text.cpp(102) : error C2947: expecting '' to terminate
  template-argument-list, found ''

 Hehe VS 7.1 doesn't like , it thinks it's the operator. Just put a
 space between the two  signs. Robert will probably fix this when he
 gets back.

 J-S
 --
 __
 Jean-Sebastien Guay[EMAIL PROTECTED]
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

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


Re: [osg-users] OpenSceneGraph 2.4 released

2008-04-28 Thread Wu Xiaodong
Greate Work. Thanks Robert!

On Fri, Apr 25, 2008 at 8:34 PM, Robert Osfield [EMAIL PROTECTED]
wrote:

 I have just tagged OpenSceneGraph-2.4 stable release and update the
 front page  downloads pages with new release, you can grab 2.4 from
 the downloads page:

   http://www.openscenegraph.org/projects/osg/wiki/Downloads

 The press release for the 2.4 release can be found at :

http://www.openscenegraph.org/projects/osg/wiki/News/Press/OSG2.4

 Updates include:

* Support for OpenGL Geometry shaders
* Support for OpenGL Multiple Render Targets extension to Frame
 Buffer Objects
* Support for OpenGL Occlussion Query extension
* New OpenFlight writer
* New libcurl based plugin for reading http hosted databases
* Quicktime based reading of live video streams under Windows and OSX
* Better load balancing in database pager
* Improvements to osgTerrain for support of terabyte scale whole
 earth terrain databases
* Additions to the Shapefile loader with .dbf attribute file,
 .proj projection file support and loading data as doubles
* Enhanced intersection functionality including double support for
 line intersections
* Parallel build support under Visual Studio
* Support for reading Producer .cfg viewer configuration files
* A wide range of build and bug fixes

 For a full list of changes consult the ChangeLog.

 I would like to pass on my heart felt thanks to all those who've
 contributed to the release, a full list of contributors (now 307 of
 us) to the OSG can be found at:


 http://www.openscenegraph.org/projects/osg/wiki/Support/Contributors/TwoPointFour

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




-- 
Xiaodong Wu
吴晓东
'Xiao' means the time and the view when the sun rises and 'dong' means the
east in Chinese
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] opengl error after switching to 2.4

2008-04-28 Thread Roni Rosenzweig
Hello
I switched to osg 2.4 today (from 2.2) and started receiving a warning:

Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,)
RenderStage::drawInner(,) FBO status= 0x8cd5

It's only printed once.
My application seems to work fine so far (haven't tested everything yet) but
any ideas why this warning comes up?

I'm using a camera rendering to FBO, and a post-render hud camera showing
the FBO contents as a texture on a quad.

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