Re: [osg-users] memory increasing util crash

2008-01-24 Thread Mike Weiblen
Obligatory link: http://www.catb.org/~esr/faqs/smart-questions.html
Especially the part about thinking you've found a bug.

Now then:
- What OS?
- my application v. osgviewer's bug : if your application is not
osgviewer, why suspect it's osgviewer's bug?

You need to do some homework and narrow down your test case.

hth
-- mew



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of ZHMW
 Sent: Thursday, January 24, 2008 5:52 AM
 To: OpenSceneGraph Users
 Subject: [osg-users] memory increasing util crash
 
 Hi EveryOne!
 
 I'm using OSG-2.2 version in my application. and my application
 will crash after a while(the time is totally different in various
 machine). I found the memory size of my application is increasing all
 the time even I just open it and did nothing. I don't know why.
 
 May be it's a osgviewer's bug I guess. But It only happens in
 release version. while the debug version seems to be ok.
 
 desire for your sugggests. Help me!!
 
 Best Wishes
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 64bit question

2008-01-24 Thread Wojciech Lewandowski
Hi,

We have one 64bit setup in our company. It was not used for few months, but
in the summer we we built couple osg releases using it. In that time, it was
just a matter of selecting target 64 bit VS environment, when Cmake was run
for the very first time in OSG directory. This selection is also available
as a result of Cmake clear cache command.  Clearing cache will bring
target selection dialog again. Look carefully - you should be able to find
64 bit VS 2005 target. Maybe new cmake has 64 bit 2008 as well

We ended up using VS 2005 Standard for 64 bit. VS 2005 Express does not
offer 64 bit builds out of the box. Cmake won't also generate 64bit solution
for VS 2005 Express. 64 bit in VS Express is theoretically possible with
some hacking using Platform SDK compiler. But I attempted this path and give
up due to some strange issues with compilation of stl and some predefined
macros. Apparently Sdk compiler has to use Platform SDK headers and libs. It
did not work well with Stl from VS 2005 express. So we ended up buing the
cheapest commercial VS relases that alllowed to do this.

Cheers,
Wojtek Lewandowski

  -Original Message-
  From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gordon
Tomlinson
  Sent: Thursday, January 24, 2008 5:37 AM
  To: osg-users@lists.openscenegraph.org
  Subject: [osg-users] 64bit question


  Hi

  Ok possibly stupid question, we have tasked one of our engineers to start
the process of finally upgrading to OSG 2.3.x from 1.2. One of the things we
do need is both is 32bit and x64 on windows, the Gent we have getting things
upto speed cannot seem to find any thing to do 64 bit builds in the Cmake
configs etc. ( Cmake is all new to him and I'm about the same )

  I'm sort of asking this question blind as I'm not in a position to check
things ( sorry), so as said possibly dumb/stupid question,

  But what do we need to do to get Cmake etc to throw out 64bit solutions
for windozes as well as 32bit



  thanks

  G.

  __
  Gordon Tomlinson

  Email   : [EMAIL PROTECTED]
  YIM/AIM : gordon3dBrit
  MSN IM  : [EMAIL PROTECTED]
  Website : www.vis-sim.com www.gordontomlinson.com

  __


  Self defence is not a function of learning tricks
  but is a function of how quickly and intensely one
  can arouse one's instinct for survival
  -Master Tambo Tetsura

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


[osg-users] user meeting (WAS Siggraph Course)

2008-01-24 Thread Mike Weiblen
Cool, do tell.  How many folks showed up (eg beyond class attendees)?
Got any pictures or good gossip??

-- mew


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of Eric Sokolowsky
 Sent: Thursday, January 24, 2008 10:36 AM
 To: OpenSceneGraph Users
 Subject: [osg-users] Siggraph Course
 
 OSG users,
 
 At last night's OSG user meeting in Washington D.C., sponsored by Paul
 Martz and Bob Kuehne, 
...

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


Re: [osg-users] Texture/Shader inlined output to .osg files

2008-01-24 Thread Mike Weiblen
Hi Art,

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of Art Tevs
 Sent: Thursday, January 24, 2008 10:48 AM
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] Texture/Shader inlined output to .osg files
 
 Hi Mike,
 
 I have posted a patch to the submission list which do
 include this changes. The patch doesn't break any
 current functionality of the osg but just improve it.

Ok, great.

 So take a look into the description I have posted
 together with the patch. Or try it out. Maybe this is
 what also can help you.

Thanks, but don't wait on me; crunching on deadlines...

Cheers
-- mew

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


Re: [osg-users] user meeting (WAS Siggraph Course)

2008-01-24 Thread Eric Sokolowsky
Mike Weiblen wrote:
 Cool, do tell.  How many folks showed up (eg beyond class attendees)?
 Got any pictures or good gossip??

There were about 10 people there, some from the class, some not. I did 
not attend the class. Paul Martz did get a group picture. Here are the 
people I know were there:

Paul Martz
Bob Kuehne
Eric Sokolowsky
Donald Leich
Steve Satterfield
John Kelso
Glenn Waldron
Jean-Sebastien Guay
Paul Brewster

I think there were a couple of others there, but I don't know their names.

Paul showed his occluder work, and there were other presentations by 
Donald Leich and J.S. There was also some discussion of the osg viewer. 
I had a good time.

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


Re: [osg-users] user meeting (WAS Siggraph Course)

2008-01-24 Thread Jean-Sebastien Guay
Hi Mike,

 Cool, do tell.  How many folks showed up (eg beyond class attendees)?
 Got any pictures or good gossip??

No gossip (at least I don't think) ;-)

The meeting was in a conference room in the Hotel Helix (that hotel almost
burned my retinas...). It was very very cool and interesting.

I'm not really good with names, but here's who I remember (and some of whom I
have business cards of). Please reply to add yourself if I didn't remember, and
feel free to correct any of this info...

Paul Martz (Skew Matrix Software)
Bob Kuehne (Blue Newt Software)
Dave Wolfe (Fifth Sally Software)
Eric Sokolowsky (NASA Goddard)
Paul Brewster (NASA Langley)
Glenn Waldron (Pelican Mapping)
Donald R. Leich (Intelligent Light)
Steven G. Satterfield and John Kelso (NIST)
Nevin Fry (not sure what company he works for, but it's near DC)
Jean-Sébastien Guay (CM Labs Simulations Inc.)

We took a photo which I hope Bob will post soon! :-)

In general we went around discussing versions of OSG used, problems in our
applications, what tools they used as well as suggesting possible solutions to
specific problems or situations. Donald also showed some very nice videos of
what they're doing with real-time visualization of large CFD result sets, and I
did a quick presentation and demo of what CM Labs does (integration of our high
quality physics engine, Vortex, with OSG in various simulators).

I will try to put up a page on the wiki about this (there was a past events
page before but it seems to have gone away in the move to the new wiki).

By the way, I want to thank everyone who was there. It was very cool to meet
people and hear their experiences and insights on the OSG and other topics. I
hope I'm able to attend Siggraph this year and meet even more of you people!

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

2008-01-24 Thread Stephane Lamoliatte
Hi,

I want to know if it is possible to render a scene to a frame buffer 
object with antialiasing (MSAA).
If it is possible, how to do that with OpenSceneGraph ?

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


Re: [osg-users] Implementing a 3D GUI

2008-01-24 Thread Brian

Unfortunately, this will most likely not be open sourced due to the fact that 
I'm developing it for my employer.  There is certainly an advantage to open 
sourcing it, I know, especially when it comes to fixing bugs and adding new 
features.  However, my employer probably isn't ready to take that step forward 
yet.

Incidentally, I was able to get the picker to work with my application.  It 
took a little extra doing since the other 3rd party utility that I use, 
Delta3D, doesn't use the osgProducer class (still using OSG 1.2).  My only bugs 
now that I have seen involve the mouse cursor flickering or the caret not 
showing (depending on the implementation used which gets complicated.)  
Unfortunately, those aren't OSG related; so asking for help with those is more 
than a bit off topic.

-Brian

 On Thu Jan 24 13:27 , Jeremy Moles [EMAIL PROTECTED] sent:


On Tue, 2008-01-22 at 12:00 -0500, Brian wrote:
 Hi,
 
 I am in the process of trying to create an interactive Macromedia Flash 
 drawable.  I am now at the point where the Flash movie is rendering, but it 
 has no available mouse input.  My problem is how to determine what the 
 coordinates of my mouse cursor are (in 2D space) when the mouse is over the 
 drawable.  Preferably, I'd like to know the 2D coordinate of the mouse 
 position in terms of (0..1, 0..1).  The drawable itself is in 3D space.

Is this code Open Source? I'd love to help test it out a bit, and
perhaps apply anything I learn therein to osgWidget...

 I know that the IntersectVistor allows me to do certain things, but I have 
 never really used it before.  I've taken a look at the osgPick example and 
 see that I can get the local and world coordinates of an intersection, but I 
 am unclear as to whether there are any helper OSG classes/functions that 
 will allow me to map that intersection point to the correct 2D coordinate to 
 pass to the Flash player.  Also, is it possible to restrict the intersection 
 tests  for my Flash drawables only?
 
 Thanks,
 Brian
 ___
 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] FBO and Antialiasing

2008-01-24 Thread Bunfield, Dennis AMRDEC/Davidson
3 options  (there may be others)
1)  Depending on the fidelity you need, render to a fbo some factor  the 
desired size of your target then downsample in fragment shader (Alternatively, 
use generate mipmaps in the camera-attach() when you apply the target to your 
fbo and let the gpu downsample for you).  This is the easiest to implement and 
produces adequate results in most cases.
2)  Get yourself an NV80 based (i.e. 8800 or quadro 5600) graphics card and 
modify the osg framebuffer cpp file to use the nvidia multisample frame buffer 
extension.
3)  Write your own custom multipass antialias routine for each object in your 
scene  (do this if you have lots of development time and want full control over 
your scene)



From: [EMAIL PROTECTED] on behalf of Stephane Lamoliatte
Sent: Thu 1/24/2008 3:49 PM
To: OpenSceneGraph Users
Subject: [osg-users] FBO and Antialiasing



Hi,

I want to know if it is possible to render a scene to a frame buffer
object with antialiasing (MSAA).
If it is possible, how to do that with OpenSceneGraph ?

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


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


Re: [osg-users] FW: building osgwrapper using Visual Studio 2005 or 2008

2008-01-24 Thread maya leonard

Hi Robert
 
Yes I meant to say SVN version.
The error returned is:
 
include\osg\array(236) : fatal error C1128: number of sections exceeded object 
file format limit : compile with /bigobj
Maya
 
 Date: Thu, 24 Jan 2008 09:06:20 + From: [EMAIL PROTECTED] To: 
 osg-users@lists.openscenegraph.org Subject: Re: [osg-users] FW: building 
 osgwrapper using Visual Studio 2005 or 2008  Hi Maya,  Do you mean SVN 
 version rather than CVS? We haven't used CVS for over a year.  Could you 
 supply the error you are getting.  Robert.  On Jan 24, 2008 3:46 AM, maya 
 leonard [EMAIL PROTECTED] wrote:  Hi Robert   Heads up, I 
 needed to added /bigobj to the c++ commandline option (next to  /zm100) to 
 get today's cvs version of osgwrapper to compile on both Visual  Studio 
 2005 and 2008.  Everything else compiled fine :)Cheers  Maya 
     Need to know the score, 
 the latest news, or you need your Hotmail(R)-get your  fix. Check it 
 out.     Connect and share in new ways 
 with Windows Live. Get it now!   
 ___  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
_
Climb to the top of the charts! Play the word scramble challenge with star 
power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] wx with OSG canvas resize bug

2008-01-24 Thread Tamer El Nashar
Ok, so we dug deeper into the problem and found we have a problem with
intersection code. We call osgViewer::View::ComputeIntersections to
intersect an x, y position in screen coordinates to a grid in the scene to
produce a position in world space. osgViewer::View::ComputeIntersections is
reporting the wrong intersection points. The problem occurs when the
application is first started and after the wxGLCanvas window is resized. The
only way to fix the problem is to move the mouse pointer over the wxGLCanvas
window and click a mouse button. Sending the window a mouse event to hack a
fix does not work.
We've tracked down this problem to bad valued in the eventState class in the
eventQueue. The sequence of events are as follows:
osgViewer::View::ComputeIntersections calls
osgViewer::View::getCameraContainingPosition which calls
getEventQueue()-getCurrentEventState()

Hopefully someone has crossed this before.

The event state before the mouse click is:

-eventState0x18560430 {_handled=false _eventType=NONE _time=
0.0 ...}const osgGA::GUIEventAdapter *
+osg::Object{_name={} _dataVariance=UNSPECIFIED
_userData={_ptr=0x {_refMutex=??? _refCount=??? _observers=??? } }
}osg::Object
_handledfalsebool
_eventTypeNONEosgGA::GUIEventAdapter::EventType
_time0.0double
_windowX0int
_windowY0int
_windowWidth1280int
_windowHeight1024int
_key0int
_button0int
_Xmin0.float
_Xmax938.0float
_Ymin0.float
_Ymax250.0float
_mx5.6843419e-014float
_my249.0float
_pressure0.float
_buttonMask1unsigned int
_modKeyMask0unsigned int
_scrollingMotionSCROLL_NONE
osgGA::GUIEventAdapter::ScrollingMotion
_scrollingDeltaX0.float
_scrollingDeltaY0.float
_mouseYOrientationY_INCREASING_UPWARDS
osgGA::GUIEventAdapter::MouseYOrientation
_tabletPointerTypeUNKNOWN
osgGA::GUIEventAdapter::TabletPointerType

After the mouse click it is:

-eventState0x0a809358 {_handled=false _eventType=NONE _time=
0.0 ...}const osgGA::GUIEventAdapter *
+osg::Object{_name={} _dataVariance=UNSPECIFIED
_userData={_ptr=0x {_refMutex=??? _refCount=??? _observers=??? } }
}osg::Object
_handledfalsebool
_eventTypeNONEosgGA::GUIEventAdapter::EventType
_time0.0double
_windowX0int
_windowY0int
_windowWidth1280int
_windowHeight1024int
_key0int
_button0int
_Xmin0.float
_Xmax656.0float
_Ymin0.float
_Ymax250.0float
_mx367.0float
_my48.00float
_pressure0.float
_buttonMask0unsigned int
_modKeyMask0unsigned int
_scrollingMotionSCROLL_NONE
osgGA::GUIEventAdapter::ScrollingMotion
_scrollingDeltaX0.float
_scrollingDeltaY0.float
_mouseYOrientationY_INCREASING_UPWARDS
osgGA::GUIEventAdapter::MouseYOrientation
_tabletPointerTypeUNKNOWN
osgGA::GUIEventAdapter::TabletPointerType

The values for _Xmax, _mx and _my are wrong before the mouse click which
results in the wrong mapping from screen coordinates to world coordinates.

Tamer El Nashar wrote:

 i do that, the following is my resize code:

void SS3DCanvas::OnSize(wxSizeEvent event)
{
// this is also necessary to update the context on some platforms
wxGLCanvas::OnSize(event);

// set GL viewport (not called by wxGLCanvas::OnSize on all
platforms...)
int width = event.GetSize().x, height = event.GetSize().y;
//GetClientSize(width, height);

width = max(5, width);
height = max(5, height);

// update the window dimensions, in case the window has been resized.
getEventQueue()-windowResize(0, 0, width, height);
resized(0, 0, width, height);

m_HUD-OnSize(width, height);

// This is a HACK to un-stick the canvas windows on startup.
// For some unknown reason, the canvas windows require a single mouse
event before they'll start
// responding to user events. By posting a single, mouse up event we
un-stick the windows so they'll
// respond to the first user event.
//wxMouseEvent mouseEvent;
//mouseEvent.m_x = 10;
//mouseEvent.m_y = 10;
//mouseEvent.m_leftDown = true;
//mouseEvent.SetEventType(wxEVT_MOTION);
//wxPostEvent(this, mouseEvent);
}

Thibault Genessay wrote:

Hi Tamer,

Have you tried to pass the new graphics window size to the OSG when it
changes ? Your canvas should intercept the resize events and send the
updated sizes to all OSG views, e.g.
myView-getEventQueue()-windowResize(0, 0, width, height);

Thibault

Re: [osg-users] user meeting (WAS Siggraph Course)

2008-01-24 Thread Paul Martz
Quite a bit of atmosphere in the Hotel Helix. It's a little like having a
sleepover at Andy Warhol's factory. I keep expecting the Velvet Underground
will appear and start playing. I feel an uncontrollable urge to use the word
groovy. :-)

Good meetinmg. One of the things I enjoy about 3D graphics is the industry
is filled with great people. Fun to get together, put faces with names, talk
about projects people are involved in, see demos, etc.

I snapped a group photo, then Bob snapped a photo of me solo, which he
pledged to photoshop in to the group. I'm assuming he'll post when complete.

I hope the DC group will continue to have UG meetings in the future.
   -Paul


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jean-Sebastien Guay
Sent: Thursday, January 24, 2008 12:19 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] user meeting (WAS Siggraph Course)

Hi Mike,

 Cool, do tell.  How many folks showed up (eg beyond class attendees)?
 Got any pictures or good gossip??

No gossip (at least I don't think) ;-)

The meeting was in a conference room in the Hotel Helix (that hotel almost
burned my retinas...). It was very very cool and interesting.

I'm not really good with names, but here's who I remember (and some of whom
I have business cards of). Please reply to add yourself if I didn't
remember, and feel free to correct any of this info...

Paul Martz (Skew Matrix Software)
Bob Kuehne (Blue Newt Software)
Dave Wolfe (Fifth Sally Software)
Eric Sokolowsky (NASA Goddard)
Paul Brewster (NASA Langley)
Glenn Waldron (Pelican Mapping)
Donald R. Leich (Intelligent Light)
Steven G. Satterfield and John Kelso (NIST) Nevin Fry (not sure what company
he works for, but it's near DC) Jean-Sébastien Guay (CM Labs Simulations
Inc.)

We took a photo which I hope Bob will post soon! :-)

In general we went around discussing versions of OSG used, problems in our
applications, what tools they used as well as suggesting possible solutions
to specific problems or situations. Donald also showed some very nice videos
of what they're doing with real-time visualization of large CFD result sets,
and I did a quick presentation and demo of what CM Labs does (integration of
our high quality physics engine, Vortex, with OSG in various simulators).

I will try to put up a page on the wiki about this (there was a past
events
page before but it seems to have gone away in the move to the new wiki).

By the way, I want to thank everyone who was there. It was very cool to meet
people and hear their experiences and insights on the OSG and other topics.
I hope I'm able to attend Siggraph this year and meet even more of you
people!

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

2008-01-24 Thread Paul Pocock

Hi Robert, I was wondering how you would use osg::Observer and are there
any examples. Would you construct it as

osg::observer_ptrosg::Object pagedLODObserver  ?

and catch page unloads by testing for objectDeleted() ?

On Thu, 2008-01-24 at 09:01 +, Robert Osfield wrote:
 Hi Michael,
 
 To monitor file loads you just need to assign a custom
 osdDB::Registry::ReadCallback to the Registry..
 
 To catch unloads you have two routes, add an custom osg::Observer to
 PagedLOD objects to get informed when they get deleted or to create
 your own DatabasePager subclass.
 
 Robert.
 
 On Jan 23, 2008 10:47 PM, Guerrero, Michael (CIV) [EMAIL PROTECTED] wrote:
 
 
 
 
  Hi, I'm searching for a convenient way to be alerted when a PagedLOD node
  gets either paged in or out.  Is there a preferred method of doing this?
 
 
 
  Thanks,
 
  Michael
  ___
  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


IMPORTANT: This email remains the property of the Australian Defence 
Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 
1914.  If you have received this email in error, you are requested to contact 
the sender and delete the email.


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


[osg-users] Terrain (.osga) optimization tips

2008-01-24 Thread Richard S. Wright Jr.


I'm loading a terrain set created with osgdem (.osga) via something  
like this:


   pTerrain = osgDB::readNodeFile(oahu-10.osga);

Easy as pie. However, for a really dense terrain, the performance is a  
bit lack-luster. I wonder if everybody knows a trick that I haven't  
discovered yet for speeding this up a bit. Some standard  
optimization node configuration or setting that a newbie might have  
missed that can make a big difference.


Richard

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


Re: [osg-users] memory increasing util crash

2008-01-24 Thread ZHMW
I did that on windows OS, and compile that by vc2005. I have test the osg
Animate example. Its release version also has this problem. But in the
vc2005 environment, running the release version is ok also. So I rewrite a
deleteHandler of Referenced to delete the objects immdiately , then it
become fine. I don't know why?

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


Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread amalric alexandre
Hi Jean-Sébastien

I got the same problem using VS8, my app crash at exit in
osgdb_freetped.dll.

It crashes at line : if (getDeleteHandler()) deleteUsingDeleteHandler();
in osg28-osgd.dll

I'm using latest freetype  lib 2.3.5






2008/1/7, Jean-Sébastien Guay [EMAIL PROTECTED]:

 Hello all,

 Is anyone else seeing a crash on exit with OSG applications (even
 osgviewer and the examples) under MS VS8.0 when running in the debugger?

 To be specific:

 * Running in Visual Studio 8.0SP1
 * Debug configuration
 * Mike's 3rd Party binaries for VS 8.0SP1

 Repro steps: run osgviewer with cow.osg as argument (in debug properties).

 A) If you just do some things and exit, no crash on exit.
 B) If you press 's' (or I guess any other text - anything that will
 load osgdb_freetyped.dll to be loaded), and then exit, crash.

 Running from the command line does not show any problem. I need to be
 in the debugger for it to show up.


 The actual message I get is:
 ___

 HEAP[osgviewerd.exe]: HEAP: Free Heap block 1d01268 modified at
 1d11d18 after it was freed
 Windows has triggered a breakpoint in osgviewerd.exe.

 This may be due to a corruption of the heap, and indicates a bug in
 osgviewerd.exe or any of the DLLs it has loaded.
 ___


 The stack trace is:
 ___

ntdll.dll!77212ea8()
[Frames below may be incorrect and/or missing, no symbols loaded
 for ntdll.dll]
ntdll.dll!77280c9a()
ntdll.dll!7724d4c8()
ntdll.dll!77231d37()
ntdll.dll!77280f2b()
ntdll.dll!77281ee4()
ntdll.dll!77281ec8()
ntdll.dll!77281ec8()
ntdll.dll!7724d9fa()
ntdll.dll!77281ec8()
ntdll.dll!77231c21()
ntdll.dll!77281e58()
ntdll.dll!7724d9fa()
ntdll.dll!77232033()
ntdll.dll!77231c21()
kernel32.dll!76ef7a5e()
msvcr80d.dll!_free_base(void * pBlock=0x01d01208)  Line 109 + 0x13
 bytesC
msvcr80d.dll!_free_dbg_nolock(void * pUserData=0x01d01228, int
 nBlockUse=1)  Line 1388 + 0x9 bytes C++
msvcr80d.dll!_free_dbg(void * pUserData=0x01d01228, int
 nBlockUse=1)  Line 1220 + 0xd bytes C++
msvcr80d.dll!free(void * pUserData=0x01d01228)  Line 1178 + 0xb
 bytes   C++
osgdb_freetyped.dll!_FT_New_Memory()  + 0xf6 bytes
osgdb_freetyped.dll!_ft_mem_free()  + 0x1c bytes
osgdb_freetyped.dll!_FT_Remove_Module()  + 0x1a6 bytes
osgdb_freetyped.dll!_FT_Remove_Module()  + 0xab bytes
osgdb_freetyped.dll!_FT_Done_Library()  + 0xcf bytes
osgdb_freetyped.dll!_FT_Done_FreeType()  + 0x22 bytes
osgdb_freetyped.dll!FreeTypeLibrary::~FreeTypeLibrary()  Line 61 +
 0xc bytes   C++
osgdb_freetyped.dll!FreeTypeLibrary::`scalar deleting destructor'()
 + 0x16 bytes  C++
osg27-osgd.dll!osg::Referenced::unref()  Line 155 + 0x23
 bytes  C++


 osgdb_freetyped.dll!osg::ref_ptrFreeTypeLibrary::~ref_ptrFreeTypeLibrary()
   Line
 30 + 0x24
 bytes   C++
osgdb_freetyped.dll!`FreeTypeLibrary::instance'::`2'::`dynamic
 atexit destructor for 's_library''()  + 0xd bytes   C++
osgdb_freetyped.dll!_CRT_INIT(void * hDllHandle=0x08c7,
 unsigned long dwReason=0, void * lpreserved=0x0001)  Line 420   C
osgdb_freetyped.dll!__DllMainCRTStartup(void *
 hDllHandle=0x08c7, unsigned long dwReason=0, void *
 lpreserved=0x0001)  Line 512 + 0x11 bytes   C
osgdb_freetyped.dll!_DllMainCRTStartup(void *
 hDllHandle=0x08c7, unsigned long dwReason=0, void *
 lpreserved=0x0001)  Line 462 + 0x11 bytes   C
ntdll.dll!7723a604()
ntdll.dll!7720a303()
ntdll.dll!7723602a()
ntdll.dll!7720a2e2()
ntdll.dll!7720a38e()
kernel32.dll!76eed85b()
msvcr80d.dll!__crtExitProcess(int status=0)  Line 684   C
msvcr80d.dll!doexit(int code=0, int quick=0, int retcaller=0)  Line
 596 + 0x9 bytes C
msvcr80d.dll!exit(int code=0)  Line 398 + 0xd bytes C
osgviewerd.exe!__tmainCRTStartup()  Line 610C
osgviewerd.exe!mainCRTStartup()  Line 414   C
kernel32.dll!76ef381b()
ntdll.dll!7720a9bd()

 


 The last code I can inspect is in msvcr80d.dll!_free_base(void *
 pBlock). The last relevant OSG call is
 osgdb_freetyped.dll!_FT_New_Memory() called by
 osgdb_freetyped.dll!_ft_mem_free(). But I can't inspect that code.

 I think I'll try to compile a local version of FreeType and see if
 it's a problem with the version that's in Mike's binaries.

 In the mean time, can anyone please try to reproduce this? (see above)

 Thanks,

 J-S
 --
 __
 Jean-Sebastien Guay [EMAIL PROTECTED]
 http://whitestar02.webhop.org/

 

Re: [osg-users] PagedLOD node page callback

2008-01-24 Thread Robert Osfield
Hi Michael,

To monitor file loads you just need to assign a custom
osdDB::Registry::ReadCallback to the Registry..

To catch unloads you have two routes, add an custom osg::Observer to
PagedLOD objects to get informed when they get deleted or to create
your own DatabasePager subclass.

Robert.

On Jan 23, 2008 10:47 PM, Guerrero, Michael (CIV) [EMAIL PROTECTED] wrote:




 Hi, I'm searching for a convenient way to be alerted when a PagedLOD node
 gets either paged in or out.  Is there a preferred method of doing this?



 Thanks,

 Michael
 ___
 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] ShapeDrawables intersection

2008-01-24 Thread Robert Osfield
Hi Renan,

On Jan 23, 2008 10:51 PM, Renan Mendes [EMAIL PROTECTED] wrote:
   I'd like to know a way to detect intersection between two
 ShapeDrawables and its position.

No there isn't any support for this.  The closet you could get woudl
be to fit a polytope around one of the shape drawable and then do use
a PolytopeIntersector.

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


Re: [osg-users] SRTM DTED data

2008-01-24 Thread Robert Osfield
Hi Micahel,

osgdem supports all the formats that GDAL does, to find out what
supported formats are do:

 gdalinfo --formats

You can use Jpegs but you'll need to manually specify the coordinate
system for it via command line parameters, this is a bit of pain so
its generally much easier just to use geospecifc DEMs and imagery.

Robert.

On Jan 24, 2008 3:32 AM, Michael W. Hall [EMAIL PROTECTED] wrote:
 I would like to use the BMNG image file to create a model of earth in my
 program.  I have one of the BMNG jpgs.  Can I use osgdem with the jpg
 file to create a earth model?  Do I need DTED data?  I am trying to
 improve my knowledge of maps and learn OpenSceneGraph.

 Also, how do you know if a texture map and the data you have go
 together?



 ___
 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] FW: building osgwrapper using Visual Studio 2005 or 2008

2008-01-24 Thread Robert Osfield
Hi Maya,

Do you mean SVN version rather than CVS?  We haven't used CVS for over a year.

Could you supply the error you are getting.

Robert.

On Jan 24, 2008 3:46 AM, maya leonard [EMAIL PROTECTED] wrote:




  Hi Robert

 Heads up, I needed to added /bigobj to the c++ commandline option (next to
 /zm100) to get today's cvs version of osgwrapper to compile on both Visual
 Studio 2005 and 2008.
  Everything else compiled fine :)


 Cheers
 Maya




  

  Need to know the score, the latest news, or you need your Hotmail(R)-get your
 fix. Check it out.

 
 Connect and share in new ways with Windows Live. Get it now!

 ___
 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-users Digest, Vol 7, Issue 55

2008-01-24 Thread Robert Osfield
Hi,

On Jan 24, 2008 6:34 AM, hesicong2006 [EMAIL PROTECTED] wrote:
 Hi,robert, do you received my osgVolume(modified).zip?

Yes I have, but haven't had a chance to review it yet.

BTW, could you provide you full name so that any merge and submission
I make I can properly credit you.

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


Re: [osg-users] doubles in geometry?

2008-01-24 Thread Robert Osfield
Hi Virgina,

The OpenSceneGraph-2.3.x dev series has support for Vec3dArray etc.
Its used for loading large scale data such as whole earth shape files
where the precision is required.

There is a big but though, OpenGL hardware is designed around 32bit
floats so has to convert all 64bit floats into 32bit and this
conversion really stuffs up performance, so while Vec3dArray might be
useful for passing large scale data around its not good for rendering.

Robert.

On Jan 23, 2008 9:28 PM, Virginia Holmstrom [EMAIL PROTECTED] wrote:
 This may be a newbie question, but why is there no double type in the 
 definition of array (pasted below)?  How does one create geometry specified 
 with doubles if Geometry::setVertexArray can not accept doubles?



 class OSG_EXPORT Array : public Object

 {



 public:



 enum Type

 {

 ArrayType = 0,

 ByteArrayType = 1,

 ShortArrayType= 2,

 IntArrayType  = 3,

 UByteArrayType= 4,

 UShortArrayType   = 5,

 UIntArrayType = 6,

 Vec4ubArrayType   = 7,

 FloatArrayType= 8,

 Vec2ArrayType = 9,

 Vec3ArrayType = 10,

 Vec4ArrayType = 11,

 Vec2sArrayType= 12,

 Vec3sArrayType= 13,

 Vec4sArrayType= 14,

 Vec2bArrayType= 15,

 Vec3bArrayType= 16,

 Vec4bArrayType= 17



 };





 Thank you very much,

 Virginia





 *
 The information transmitted herewith is sensitive information intended only 
 for use by the individual or entity to which it is addressed. If the reader 
 of this message is not the intended recipient, you are hereby notified that 
 any review, retransmission, dissemination, distribution, copying or other use 
 of, or taking of any action in reliance upon, this information is strictly 
 prohibited. If you have received this communication in error, please contact 
 the sender and delete the material from your computer.
 **


 ___
 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] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread Robert Osfield
Hi Guys,

Its a bit of long shot but I just had a look at the DeleteHandeler
code in src/osg/Referenced.cpp and src/osg/DeleteHandler.cpp and
noticed a duplicate definition of the DeleteHandlerPointer struct, one
in Referenced.cpp, and one in DeleteHandler.cpp.  I have removed the
duplicate in DeleteHandler.cpp and checked this in.

Could you do an svn update and see if this makes any difference.

Robert.

On Jan 24, 2008 8:43 AM, amalric alexandre [EMAIL PROTECTED] wrote:
 Hi Jean-Sébastien

 I got the same problem using VS8, my app crash at exit in
 osgdb_freetped.dll.

 It crashes at line : if (getDeleteHandler()) deleteUsingDeleteHandler();
 in osg28-osgd.dll

 I'm using latest freetype  lib 2.3.5






 2008/1/7, Jean-Sébastien Guay [EMAIL PROTECTED]:

  Hello all,
 
  Is anyone else seeing a crash on exit with OSG applications (even
  osgviewer and the examples) under MS VS8.0 when running in the debugger?
 
  To be specific:
 
  * Running in Visual Studio 8.0SP1
  * Debug configuration
  * Mike's 3rd Party binaries for VS 8.0SP1
 
  Repro steps: run osgviewer with cow.osg as argument (in debug properties).
 
  A) If you just do some things and exit, no crash on exit.
  B) If you press 's' (or I guess any other text - anything that will
  load osgdb_freetyped.dll to be loaded), and then exit, crash.
 
  Running from the command line does not show any problem. I need to be
  in the debugger for it to show up.
 
 
  The actual message I get is:
  ___
 
  HEAP[osgviewerd.exe]: HEAP: Free Heap block 1d01268 modified at
  1d11d18 after it was freed
  Windows has triggered a breakpoint in osgviewerd.exe.
 
  This may be due to a corruption of the heap, and indicates a bug in
  osgviewerd.exe or any of the DLLs it has loaded.
  ___
 
 
  The stack trace is:
  ___
 
 ntdll.dll!77212ea8()
 [Frames below may be incorrect and/or missing, no symbols loaded
  for ntdll.dll]
 ntdll.dll!77280c9a()
 ntdll.dll!7724d4c8()
 ntdll.dll!77231d37()
 ntdll.dll!77280f2b()
 ntdll.dll!77281ee4()
 ntdll.dll!77281ec8()
 ntdll.dll!77281ec8()
 ntdll.dll!7724d9fa ()
 ntdll.dll!77281ec8()
 ntdll.dll!77231c21()
 ntdll.dll!77281e58()
 ntdll.dll!7724d9fa()
 ntdll.dll!77232033()
 ntdll.dll!77231c21()
 kernel32.dll!76ef7a5e()
 msvcr80d.dll!_free_base(void * pBlock=0x01d01208)  Line 109 + 0x13
 bytesC
 msvcr80d.dll!_free_dbg_nolock(void * pUserData=0x01d01228, int
  nBlockUse=1)  Line 1388 + 0x9 bytes C++
 msvcr80d.dll!_free_dbg(void * pUserData=0x01d01228, int
  nBlockUse=1)  Line 1220 + 0xd bytes C++
 msvcr80d.dll!free(void * pUserData=0x01d01228)  Line 1178 + 0xb
 bytes   C++
 osgdb_freetyped.dll!_FT_New_Memory()  + 0xf6 bytes
 osgdb_freetyped.dll!_ft_mem_free()  + 0x1c bytes
 osgdb_freetyped.dll!_FT_Remove_Module()  + 0x1a6 bytes
 osgdb_freetyped.dll!_FT_Remove_Module()  + 0xab bytes
 osgdb_freetyped.dll!_FT_Done_Library()  + 0xcf bytes
 osgdb_freetyped.dll!_FT_Done_FreeType()  + 0x22 bytes
 osgdb_freetyped.dll!FreeTypeLibrary::~FreeTypeLibrary()  Line 61 +
  0xc bytes   C++
 osgdb_freetyped.dll!FreeTypeLibrary::`scalar deleting destructor'()
  + 0x16 bytes  C++
 osg27-osgd.dll!osg::Referenced::unref()  Line 155 + 0x23 bytes
 C++
 
 
 osgdb_freetyped.dll!osg::ref_ptrFreeTypeLibrary::~ref_ptrFreeTypeLibrary()
 Line 30 + 0x24
  bytes   C++
 osgdb_freetyped.dll!`FreeTypeLibrary::instance'::`2'::`dynamic
  atexit destructor for 's_library''()  + 0xd bytes   C++
 osgdb_freetyped.dll!_CRT_INIT(void * hDllHandle=0x08c7,
  unsigned long dwReason=0, void * lpreserved=0x0001)  Line 420   C
 osgdb_freetyped.dll!__DllMainCRTStartup(void *
  hDllHandle=0x08c7, unsigned long dwReason=0, void *
  lpreserved=0x0001)  Line 512 + 0x11 bytes   C
 osgdb_freetyped.dll!_DllMainCRTStartup(void *
  hDllHandle=0x08c7, unsigned long dwReason=0, void *
  lpreserved=0x0001)  Line 462 + 0x11 bytes   C
 ntdll.dll!7723a604()
 ntdll.dll!7720a303 ()
 ntdll.dll!7723602a()
 ntdll.dll!7720a2e2()
 ntdll.dll!7720a38e()
 kernel32.dll!76eed85b()
 msvcr80d.dll!__crtExitProcess(int status=0)  Line 684   C
 msvcr80d.dll!doexit (int code=0, int quick=0, int retcaller=0)
 Line
  596 + 0x9 bytes C
 msvcr80d.dll!exit(int code=0)  Line 398 + 0xd bytes C
 osgviewerd.exe!__tmainCRTStartup()  Line 610C
 osgviewerd.exe!mainCRTStartup ()  Line 414   C
 kernel32.dll!76ef381b()
 ntdll.dll!7720a9bd()
 
  
 
 
  The last code I can inspect is in msvcr80d.dll!_free_base(void *
  

[osg-users] RW ive exceptions

2008-01-24 Thread Lionel Lagarde
Hi,

My application is an helicopter simulator on huge terrain database. The 
terrain is paged.

OSG and the application are compiled with VC 2005 express.

On the development machines, the application works fine.

On the simulation machines (where VC express is not installed, only 
vcredist_x86 is installed), some errors occur in the DatabasePager thread.

The errors come from the ive RW plugin:
Error reading file: DataInputStream::readChar(): Failed to read XXX value.

Errors don't happen all the time and when they occur, the current read 
file is always different.

I don't know where and what I should look for.

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


Re: [osg-users] Texture/Shader inlined output to .osg files

2008-01-24 Thread Art Tevs
Hi Mike,


 Should ReaderWriter should somehow preserve the
 representation between
 reading and possible future rewriting, or should it
 always expect an
 explicit option?  
To preserve backwards compatibility I would say that
the Writer should embed the code into .osg directly.
Only if user passes specified options the writer
writes only the filename of the stored shader source.

 What filename should be stored in
 the written .osg
 file (the source filename is not preserved in the
 osg::Shader)?  
As it is done for the Images, the filename should be
also stored in the osg::Shader class. This name is
used   then in .osg file.

 Should
 the shader source files themselves also be rewritten
 (perhaps the shader
 was modified)?
I think per default not, since it is mostly unnatural
to change the shader source in the program during the
runtime. However if the Shader is created on the fly
during the execution time, then it should be written
to the file, of course.


 
 I agree it would be nice to expose the option to use
 a filename
 reference; due to all the issues, I just defaulted
 to the safest path.
I see, but I think we should still stay by the safest
path, however provide the user with the possibility to
shift the shader sources to external files manually.

 Currently when I want a filename reference, I
 manually edit the .osg
 file; not a good answer, but it works.
I know, this is the way how I also would do this ;-)


Best regards,
Art

 cheers
 -- mew
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:osg-users-
  [EMAIL PROTECTED] On Behalf Of Art
 Tevs
  Sent: Wednesday, January 23, 2008 10:31 AM
  To: OpenSceneGraph Users
  Subject: [osg-users] Texture/Shader inlined output
 to .osg files
  
  Hello,
  
  If one writes a texture to the .osg file, then the
  texture is not inlined, but it's file path is
 written
  to the .osg file.
  
  I am wonder why the same doesn't happen to shader
  programs. The shaders are inlined into the .osg
 file.
  As from my point of view shader programs are also
  resources, which might be changed without changing
 the
  .osg file and hence be loaded differently on the
 next
  app start.
  
  Would it be make sense to provide a patch which do
  either inline the shader code or write a file path
 of
  the file from where the shader code was retrieved.
  This should be somehow defined through the Options
  object given to the reader.
  
  What do you think?
  
  Best,
  Art
  
  P.S. I looked into the code and encountered that
  reading of shaders from files is already supported
 but
  writing not.
  
  
  
  
Machen Sie Yahoo! zu Ihrer Startseite. Los
 geht's:
  http://de.yahoo.com/set
  ___
  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
 



  Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s 
mit dem neuen Yahoo! Mail. www.yahoo.de/mail
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] memory increasing util crash

2008-01-24 Thread ZHMW
Hi EveryOne!

I'm using OSG-2.2 version in my application. and my application will
crash after a while(the time is totally different in various machine). I
found the memory size of my application is increasing all the time even I
just open it and did nothing. I don't know why.

May be it's a osgviewer's bug I guess. But It only happens in release
version. while the debug version seems to be ok.

desire for your sugggests. Help me!!

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


[osg-users] OSG-2.3.3, Ubuntu 7.10 and GLU

2008-01-24 Thread Eduardo Gutiérrez Sanmartín
Hi!

I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors of the
type undefined reference to... when it's linking osgviewer to libosg.so,
libosgUtil.so... All those functions beginning with glu (gluScaleImage,
gluGetString...) but I have installed libglu1-mesa-dev.

What it's wrong?

Thx!

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


Re: [osg-users] OSG-2.3.3, Ubuntu 7.10 and GLU

2008-01-24 Thread Robert Osfield
Hi Eduardo,

On Jan 24, 2008 12:25 PM, Eduardo Gutiérrez Sanmartín
[EMAIL PROTECTED] wrote:
 I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors of the
 type undefined reference to... when it's linking osgviewer to libosg.so,
 libosgUtil.so... All those functions beginning with glu (gluScaleImage,
 gluGetString...) but I have installed libglu1-mesa-dev.

 What it's wrong?

I don't know what is wrong. I have Kubuntu 7.10 here and also use the
libglu1-mesa-dev 7.0.1 for GLU and everything compiles and links just
fine.

Try doing a

 make VERBOSE=1

To see if that reveals anything about what its linking against.

Is this the first time you've tried to compile the OSG?

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


[osg-users] How to ADD rotation to a matrix

2008-01-24 Thread Tobias Münch
Hello

I have matrix that is placed somewhere in space. Now I want to add rotation
of few degrees to the existing rotation. Therefor I create a new matrix that
is placed in the origin and set the additional part of rotation. Then I move
the first matrix also to origin (remove translation) and multiply it with
the new matrix  (m1 * m2) to get the new total rotation. After that I move
the matrix back to its place.

I thinks this is a correct process but in reality, the rotation and also
translation aren't the expected ones. The x and z axis are interchanged for
both.

When I display the first or the additional matrix alone, everythin looks
fine, so the problem isn't a false convertion between camera and world
coordinates.

Am I using a good way to add rotation of matrices or is there a general
problem? How can I fix it?

Thank you a lot, Tobias
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG-2.3.3, Ubuntu 7.10 and GLU

2008-01-24 Thread Eduardo Gutiérrez Sanmartín
Hi Robert,

Yes, this is the first time I'm trying to compile the OSG in linux.

Doing make VERBOSE=1 I got the following:

...
Linking CXX executable ../../bin/osgviewer
cd /GIS3D/OpenSceneGraph/applications/osgviewer  /usr/bin/cmake -P
CMakeFiles/application_osgviewer.dir/cmake_clean_target.cmake
cd /GIS3D/OpenSceneGraph/applications/osgviewer  /usr/bin/c++  -fPIC
CMakeFiles/application_osgviewer.dir/osgviewer.o   -o ../../bin/osgviewer
-rdynamic -L/GIS3D/OpenSceneGraph/lib -lOpenThreads -losg -losgDB -losgUtil
-losgGA -losgViewer -losgText -losgGA -losgUtil -losgDB -losg -lm
-lOpenThreads -lpthread -lGL -lX11 -Wl,-rpath,/GIS3D/OpenSceneGraph/lib
/GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluScaleImage'
/GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluGetString'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to `gluNewTess'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessProperty'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessEndPolygon'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessBeginPolygon'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessNormal'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessVertex'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessCallback'
/GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluErrorString'
/GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
`gluBuild1DMipmaps'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluDeleteTess'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessBeginContour'
/GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
`gluBuild2DMipmaps'
/GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
`gluTessEndContour'
collect2: ld devolvió el estado de salida 1
make[2]: *** [bin/osgviewer] Error 1
...

Thanks!

Edu



2008/1/24, Robert Osfield [EMAIL PROTECTED]:

 Hi Eduardo,

 On Jan 24, 2008 12:25 PM, Eduardo Gutiérrez Sanmartín
 [EMAIL PROTECTED] wrote:
  I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors of
 the
  type undefined reference to... when it's linking osgviewer to
 libosg.so,
  libosgUtil.so... All those functions beginning with glu (gluScaleImage,
  gluGetString...) but I have installed libglu1-mesa-dev.
 
  What it's wrong?

 I don't know what is wrong. I have Kubuntu 7.10 here and also use the
 libglu1-mesa-dev 7.0.1 for GLU and everything compiles and links just
 fine.

 Try doing a

 make VERBOSE=1

 To see if that reveals anything about what its linking against.

 Is this the first time you've tried to compile the OSG?

 Robert.
 ___
 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-2.3.3, Ubuntu 7.10 and GLU

2008-01-24 Thread Robert Osfield
Hi Edu,

When I run make VERBOSE=1 on the osgviewer application I get an -lGLU
entry just before the -lGL entry, while you have just the -lGL entry.
So this is the cause, the question is why Cmake hasn't added in -lGLU
where it should.

cd into the root of OpenSceneGraph directory and then type ccmake .  ie.

  cd OpenSceneGraph
  ccmake .

Then press 't' to get all the advanced options, then scroll down the
list to get to the OPENGL_glu_LIBRARY entry.  Mine points to
/usr/lib/libGLU.so, as your should do, but perhaps this hasn't been
picked up.

Robert.


On Jan 24, 2008 1:12 PM, Eduardo Gutiérrez Sanmartín
[EMAIL PROTECTED] wrote:
 Hi Robert,

 Yes, this is the first time I'm trying to compile the OSG in linux.

 Doing make VERBOSE=1 I got the following:

 ...
 Linking CXX executable ../../bin/osgviewer
 cd /GIS3D/OpenSceneGraph/applications/osgviewer  /usr/bin/cmake -P
 CMakeFiles/application_osgviewer.dir/cmake_clean_target.cmake
 cd /GIS3D/OpenSceneGraph/applications/osgviewer  /usr/bin/c++  -fPIC
 CMakeFiles/application_osgviewer.dir/osgviewer.o   -o ../../bin/osgviewer
 -rdynamic -L/GIS3D/OpenSceneGraph/lib -lOpenThreads -losg -losgDB -losgUtil
 -losgGA -losgViewer -losgText -losgGA -losgUtil -losgDB -losg -lm
 -lOpenThreads -lpthread -lGL -lX11 -Wl,-rpath,/GIS3D/OpenSceneGraph/lib
 /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluScaleImage'
 /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluGetString'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to `gluNewTess'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessProperty'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessEndPolygon'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessBeginPolygon'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessNormal'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessVertex'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessCallback'
 /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to `gluErrorString'
 /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluBuild1DMipmaps'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluDeleteTess'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessBeginContour'
 /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluBuild2DMipmaps'
 /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluTessEndContour'
 collect2: ld devolvió el estado de salida 1
 make[2]: *** [bin/osgviewer] Error 1
 ...

 Thanks!

 Edu



 2008/1/24, Robert Osfield  [EMAIL PROTECTED]:
 
 
 
  Hi Eduardo,
 
  On Jan 24, 2008 12:25 PM, Eduardo Gutiérrez Sanmartín
  [EMAIL PROTECTED] wrote:
   I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors of
 the
   type undefined reference to... when it's linking osgviewer to
 libosg.so,
   libosgUtil.so... All those functions beginning with glu (gluScaleImage,
   gluGetString...) but I have installed libglu1-mesa-dev.
  
   What it's wrong?
 
  I don't know what is wrong. I have Kubuntu 7.10 here and also use the
  libglu1-mesa-dev 7.0.1 for GLU and everything compiles and links just
  fine.
 
  Try doing a
 
  make VERBOSE=1
 
  To see if that reveals anything about what its linking against.
 
  Is this the first time you've tried to compile the OSG?
 
  Robert.
  ___
  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] OSG-2.3.3, Ubuntu 7.10 and GLU

2008-01-24 Thread J.P. Delport
Hi,

when did you install libglu1-mesa-dev, before starting to compile OSG or 
only after you got the error?

If only after, try recompiling from scratch.

jp

Eduardo Gutiérrez Sanmartín wrote:
 Hi!
 
 I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors of 
 the type undefined reference to... when it's linking osgviewer to 
 libosg.so, libosgUtil.so... All those functions beginning with glu 
 (gluScaleImage, gluGetString...) but I have installed libglu1-mesa-dev.
 
 What it's wrong?
 
 Thx!
 
 Edu
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.

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


[osg-users] Kinematics support

2008-01-24 Thread Claudio Arduino
Hi to All,
what is the basic kinematics support (classes,methods etc) in
OpenSceneGraph?
Thanks!!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG-2.3.3, Ubuntu 7.10 and GLU

2008-01-24 Thread Eduardo Gutiérrez Sanmartín
Hi,

I wrote /usr/lib/libGLU.so in OPENGL_glu_LIBRARY and it linked OK!
Thanks!

I tried to compile OSG before I install libglu1-mesa-dev, as J.P. Delport
ask me, but after I installed it I ran again cmake as the first time and I
thought it was enough.

Thanks, again!

Edu


2008/1/24, Robert Osfield [EMAIL PROTECTED]:

 Hi Edu,

 When I run make VERBOSE=1 on the osgviewer application I get an -lGLU
 entry just before the -lGL entry, while you have just the -lGL entry.
 So this is the cause, the question is why Cmake hasn't added in -lGLU
 where it should.

 cd into the root of OpenSceneGraph directory and then type ccmake .  ie.

   cd OpenSceneGraph
   ccmake .

 Then press 't' to get all the advanced options, then scroll down the
 list to get to the OPENGL_glu_LIBRARY entry.  Mine points to
 /usr/lib/libGLU.so, as your should do, but perhaps this hasn't been
 picked up.

 Robert.


 On Jan 24, 2008 1:12 PM, Eduardo Gutiérrez Sanmartín
 [EMAIL PROTECTED] wrote:
  Hi Robert,
 
  Yes, this is the first time I'm trying to compile the OSG in linux.
 
  Doing make VERBOSE=1 I got the following:
 
  ...
  Linking CXX executable ../../bin/osgviewer
  cd /GIS3D/OpenSceneGraph/applications/osgviewer  /usr/bin/cmake -P
  CMakeFiles/application_osgviewer.dir/cmake_clean_target.cmake
  cd /GIS3D/OpenSceneGraph/applications/osgviewer 
 /usr/bin/c++  -fPIC
  CMakeFiles/application_osgviewer.dir/osgviewer.o   -o
 ../../bin/osgviewer
  -rdynamic -L/GIS3D/OpenSceneGraph/lib -lOpenThreads -losg -losgDB
 -losgUtil
  -losgGA -losgViewer -losgText -losgGA -losgUtil -losgDB -losg -lm
  -lOpenThreads -lpthread -lGL -lX11 -Wl,-rpath,/GIS3D/OpenSceneGraph/lib
  /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluScaleImage'
  /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluGetString'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluNewTess'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessProperty'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessEndPolygon'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessBeginPolygon'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessNormal'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessVertex'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessCallback'
  /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluErrorString'
  /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
  `gluBuild1DMipmaps'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluDeleteTess'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessBeginContour'
  /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
  `gluBuild2DMipmaps'
  /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
  `gluTessEndContour'
  collect2: ld devolvió el estado de salida 1
  make[2]: *** [bin/osgviewer] Error 1
  ...
 
  Thanks!
 
  Edu
 
 
 
  2008/1/24, Robert Osfield  [EMAIL PROTECTED]:
  
  
  
   Hi Eduardo,
  
   On Jan 24, 2008 12:25 PM, Eduardo Gutiérrez Sanmartín
   [EMAIL PROTECTED] wrote:
I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors
 of
  the
type undefined reference to... when it's linking osgviewer to
  libosg.so,
libosgUtil.so... All those functions beginning with glu
 (gluScaleImage,
gluGetString...) but I have installed libglu1-mesa-dev.
   
What it's wrong?
  
   I don't know what is wrong. I have Kubuntu 7.10 here and also use the
   libglu1-mesa-dev 7.0.1 for GLU and everything compiles and links just
   fine.
  
   Try doing a
  
   make VERBOSE=1
  
   To see if that reveals anything about what its linking against.
  
   Is this the first time you've tried to compile the OSG?
  
   Robert.
   ___
   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

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


Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread Jean-Sebastien Guay
Bonjour Alexandre,

 I got the same problem using VS8, my app crash at exit in
 osgdb_freetped.dll.

 It crashes at line : if (getDeleteHandler()) deleteUsingDeleteHandler();
 in osg28-osgd.dll

 I'm using latest freetype  lib 2.3.5

Ok, good to at least have one confirmation... I've been looking around trying to
debug this, but haven't had any luck. I've tried compiling my own freetype, and
I get the same problem...

Did the rest of the message I sent match your situation as well? i.e. no crash
as long as you don't display any text, and as soon as you press either 's' or
'h' or anything that displays text, it crashes on exit in the freetype lib?

Thanks, maybe together we can get to the bottom of this...

J-S

--
__
Jean-Sebastien Guay [EMAIL PROTECTED]
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] Changing single fields of Traits of a GraphicContext at runtime

2008-01-24 Thread DKa
What I want to do is provide a method with the ability
to change the window title.

Viewer-getCamera()-getGraphicsContext()-getTraits()-windowName
= New Name;

This doesn't work because the traits are constant. Do
I have to create a GraphicsContext from scratch,
copying all but the fields I want to change in the
traits in order to do this? Is there a quicker way?
This used to be a lot more straightforward with
OpenProducer.

Cheers,
DKa


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Fix Warning in Teture.cpp

2008-01-24 Thread Kremser, Andreas (Praktikant)
Hi,
@Robert
we just found a minor issue with both the constructor and the
copy-constructor of the class Texture in Texture.cpp.
_internalFormatType(text._internalFormatType),
shall be initialized after
_internalFormatMode(text._internalFormatMode), because
no matter what order you specify in the initializer list- the member
variables will be initialized in the order you declared them.
Just to avoid compiler warnings ;)
Regards,
Oli  Andi

C++STD
12.6.2 - Initializing bases and members [class.base.init]
5.
Then, nonstatic data members shall be initialized in the order they were
declared in the class definition (again regardless of the order of the
mem-initializers).
/C++STD 
 
***
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und 
loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.
 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
***
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Changing single fields of Traits of a GraphicContext at runtime

2008-01-24 Thread Stephan Maximilian Huber
DKa schrieb:
 What I want to do is provide a method with the ability
 to change the window title.

 Viewer-getCamera()-getGraphicsContext()-getTraits()-windowName
 = New Name;

 This doesn't work because the traits are constant. Do
 I have to create a GraphicsContext from scratch,
 copying all but the fields I want to change in the
 traits in order to do this? Is there a quicker way?
try this instead:

osg::GraphicsWindow* win = 
dynamic_castosg::GraphicsWindow*(Viewer-getCamera()-getGraphicsContext());
if (win) win-setWindowName(new Name);


cheers,
Stephan

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


Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread Jean-Sebastien Guay
Hello Robert,

 Its a bit of long shot but I just had a look at the DeleteHandeler
 code in src/osg/Referenced.cpp and src/osg/DeleteHandler.cpp and
 noticed a duplicate definition of the DeleteHandlerPointer struct, one
 in Referenced.cpp, and one in DeleteHandler.cpp.  I have removed the
 duplicate in DeleteHandler.cpp and checked this in.

 Could you do an svn update and see if this makes any difference.

It was a good try, but no cigar... I still get the same symptoms.

I have the impression the problem is in freetype itself, because I get some
freetype functions in the stack trace. Unfortunately I can't trace into the
freetype source even though I'm linking to the debug lib, which I don't
understand why.

I think I'll backtrack to an older version of freetype and see if that helps.
But it'll have to wait till at least next Monday.

J-S
--
__
Jean-Sebastien Guay [EMAIL PROTECTED]
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] OSG-2.3.3, Ubuntu 7.10 and GLU

2008-01-24 Thread Robert Osfield
Hi Edu,

What probably happened is that Cmake just used the CMakeCache.txt that
it built on first run of cmake in subsequent runs of cmake and didn't
recreate it.  Removing CMakeCache.txt forces cmake to do a full check
against dependencies.

FYI, use ./configure to invoke cmake as this makes sure that the
Release build is enabled, the extra optimization flags make a big
difference to performance.

Robert



On Jan 24, 2008 1:56 PM, Eduardo Gutiérrez Sanmartín
[EMAIL PROTECTED] wrote:
 Hi,

 I wrote /usr/lib/libGLU.so in OPENGL_glu_LIBRARY and it linked OK!
 Thanks!

 I tried to compile OSG before I install libglu1-mesa-dev, as J.P. Delport
 ask me, but after I installed it I ran again cmake as the first time and I
 thought it was enough.

 Thanks, again!

 Edu




 2008/1/24, Robert Osfield [EMAIL PROTECTED]:
 
 
 
  Hi Edu,
 
  When I run make VERBOSE=1 on the osgviewer application I get an -lGLU
  entry just before the -lGL entry, while you have just the -lGL entry.
  So this is the cause, the question is why Cmake hasn't added in -lGLU
  where it should.
 
  cd into the root of OpenSceneGraph directory and then type ccmake .  ie.
 
cd OpenSceneGraph
ccmake .
 
  Then press 't' to get all the advanced options, then scroll down the
  list to get to the OPENGL_glu_LIBRARY entry.  Mine points to
  /usr/lib/libGLU.so, as your should do, but perhaps this hasn't been
  picked up.
 
  Robert.
 
 
  On Jan 24, 2008 1:12 PM, Eduardo Gutiérrez Sanmartín
  [EMAIL PROTECTED] wrote:
   Hi Robert,
  
   Yes, this is the first time I'm trying to compile the OSG in linux.
  
   Doing make VERBOSE=1 I got the following:
  
   ...
   Linking CXX executable ../../bin/osgviewer
   cd /GIS3D/OpenSceneGraph/applications/osgviewer  /usr/bin/cmake -P
   CMakeFiles/application_osgviewer.dir/cmake_clean_target.cmake
   cd /GIS3D/OpenSceneGraph/applications/osgviewer  /usr/bin/c++
 -fPIC
   CMakeFiles/application_osgviewer.dir/osgviewer.o   -o
 ../../bin/osgviewer
   -rdynamic -L/GIS3D/OpenSceneGraph/lib -lOpenThreads -losg -losgDB
 -losgUtil
   -losgGA -losgViewer -losgText -losgGA -losgUtil -losgDB -losg -lm
   -lOpenThreads -lpthread -lGL -lX11 -Wl,-rpath,/GIS3D/OpenSceneGraph/lib
   /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluScaleImage'
   /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluGetString'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
 `gluNewTess'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessProperty'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessEndPolygon'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessBeginPolygon'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessNormal'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessVertex'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessCallback'
   /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
 `gluErrorString'
   /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
   `gluBuild1DMipmaps'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluDeleteTess'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessBeginContour'
   /GIS3D/OpenSceneGraph/lib/libosg.so: undefined reference to
   `gluBuild2DMipmaps'
   /GIS3D/OpenSceneGraph/lib/libosgUtil.so: undefined reference to
   `gluTessEndContour'
   collect2: ld devolvió el estado de salida 1
   make[2]: *** [bin/osgviewer] Error 1
   ...
  
   Thanks!
  
   Edu
  
  
  
   2008/1/24, Robert Osfield  [EMAIL PROTECTED]:
   
   
   
Hi Eduardo,
   
On Jan 24, 2008 12:25 PM, Eduardo Gutiérrez Sanmartín
[EMAIL PROTECTED] wrote:
 I'm trying to compile OSG-2.3.3 in Ubuntu 7.10 and I get some errors
 of
   the
 type undefined reference to... when it's linking osgviewer to
   libosg.so,
 libosgUtil.so... All those functions beginning with glu
 (gluScaleImage,
 gluGetString...) but I have installed libglu1-mesa-dev.

 What it's wrong?
   
I don't know what is wrong. I have Kubuntu 7.10 here and also use the
libglu1-mesa-dev 7.0.1 for GLU and everything compiles and links just
fine.
   
Try doing a
   
make VERBOSE=1
   
To see if that reveals anything about what its linking against.
   
Is this the first time you've tried to compile the OSG?
   
Robert.
___
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
  

Re: [osg-users] Fix Warning in Teture.cpp

2008-01-24 Thread Robert Osfield
Hi Andreas,

Which version of the OSG are you building against?

Also submission should whole files sent to osg-submission, this
ensures 1) the submission doesn't get lost 2) there is no ambiguity
about actual what one has to change.

Robert.

On Jan 24, 2008 2:22 PM, Kremser, Andreas (Praktikant)
[EMAIL PROTECTED] wrote:
 Hi,
 @Robert
 we just found a minor issue with both the constructor and the
 copy-constructor of the class Texture in Texture.cpp.
 _internalFormatType(text._internalFormatType),
 shall be initialized after
 _internalFormatMode(text._internalFormatMode), because
 no matter what order you specify in the initializer list- the member
 variables will be initialized in the order you declared them.
 Just to avoid compiler warnings ;)
 Regards,
 Oli  Andi

 C++STD
 12.6.2 - Initializing bases and members [class.base.init]
 5.
 Then, nonstatic data members shall be initialized in the order they were
 declared in the class definition (again regardless of the order of the
 mem-initializers).
 /C++STD

 ***
 Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
 Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
 irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und 
 loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
 Weitergabe dieser Mail ist nicht gestattet.

 This e-mail may contain confidential and/or privileged information. If you 
 are not the intended recipient (or have received this e-mail in error) please 
 notify the sender immediately and delete this e-mail. Any unauthorized 
 copying, disclosure or distribution of the contents in this e-mail is 
 strictly forbidden.
 ***
 ___
 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] osgHUD 0.1.4 (testing)

2008-01-24 Thread Jeremy Moles
Sorry I couldn't respond earlier. I can only send e-mail from work, and
was out of the office yesterday.

On Wed, 2008-01-23 at 11:31 -0500, Lucas Goss wrote:
 The newest revision (68) has a compile error (added to issues):
 http://code.google.com/p/osghud/issues/detail?id=3

Thanks, fixed.

 Do you prefer issues posted here or there (or both)?

Here, please. :)

 Also I've compiled some of the osghud stuff on Mac in XCode (made my
 own XCode project as I'm not very familiar with CMake), and it seems
 to compile fine.
 
 And one more thing... are you going to change the name to osgWidget
 like Robert suggested? I agree with him in thinking that osgWidget is
 a better name for the project.

I'll name it whatever people think is best for inclusion into OSG.
However, if Robert really wants it named something else, it would be
optimal to know now so I can go ahead and change it before doing so is a
day-long task unto itself. :)

 ___
 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] Fix Warning in Teture.cpp

2008-01-24 Thread Kremser, Andreas (Praktikant)
The Version we use is the latest stable Release version=2.2. 
We will not upload our files because while porting everything to opengl es - 
all of our code includes too many dirty hacks ;)
and actually the file is not Teture.cpp but src/Texture.cpp.

Oli  Andreas

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Im Auftrag 
von Robert Osfield
Gesendet: Donnerstag, 24. Januar 2008 15:48
An: OpenSceneGraph Users
Betreff: Re: [osg-users] Fix Warning in Teture.cpp

Hi Andreas,

Which version of the OSG are you building against?

Also submission should whole files sent to osg-submission, 
this ensures 1) the submission doesn't get lost 2) there is no 
ambiguity about actual what one has to change.

Robert.

On Jan 24, 2008 2:22 PM, Kremser, Andreas (Praktikant) 
[EMAIL PROTECTED] wrote:
 Hi,
 @Robert
 we just found a minor issue with both the constructor and the 
 copy-constructor of the class Texture in Texture.cpp.
 _internalFormatType(text._internalFormatType),
 shall be initialized after
 _internalFormatMode(text._internalFormatMode), because no 
matter what 
 order you specify in the initializer list- the member variables will 
 be initialized in the order you declared them.
 Just to avoid compiler warnings ;)
 Regards,
 Oli  Andi

 C++STD
 12.6.2 - Initializing bases and members [class.base.init] 5.
 Then, nonstatic data members shall be initialized in the order they 
 were declared in the class definition (again regardless of the order 
 of the mem-initializers).
 /C++STD

 ***
 Diese E-Mail enthaelt vertrauliche und/oder rechtlich 
geschuetzte Informationen. Wenn Sie nicht der richtige 
Adressat sind oder diese E-Mail irrtuemlich erhalten haben, 
informieren Sie bitte sofort den Absender und loeschen Sie 
diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser Mail ist nicht gestattet.

 This e-mail may contain confidential and/or privileged 
information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender 
immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is 
strictly forbidden.
 ***
 ___
 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-openscen
egraph.org

 
 
***
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und 
loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.
 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
***
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Changing single fields of Traits of a GraphicContext at runtime

2008-01-24 Thread DKa
 osg::GraphicsWindow* win = 
  
dynamic_castosg::GraphicsWindow*(Viewer-getCamera()-getGraphicsContext());
 if (win) win-setWindowName(new Name);

Thanks for this suggestion. But GraphicsWindow does
not have a setWindowName method!?

Cheers,
DKa


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ShapeDrawables intersection

2008-01-24 Thread Renan Mendes
Hi, Robert.

 I think I really need a tutorial on intersections. How to compute them,
how to locate it in my world coordinates, etc. I don't really know what
Polytopes are, let alone deal with them... Could you give me a reference (or
several) on the subject?

Thanks,

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


Re: [osg-users] osgHUD 0.1.4 (testing)

2008-01-24 Thread Robert Osfield
 I'll name it whatever people think is best for inclusion into OSG.
 However, if Robert really wants it named something else, it would be
 optimal to know now so I can go ahead and change it before doing so is a
 day-long task unto itself. :)

As mentioned before, osgWidget is the name I feel is most appropriate.
 When osgHUD makes its way into core OSG it'll be renamed to osgWidget
so if you make this change beforehand then it'll save me a job which I
always appreciate ;-)

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


Re: [osg-users] Changing single fields of Traits of a GraphicContext at runtime

2008-01-24 Thread Robert Osfield
On Jan 24, 2008 2:53 PM, DKa [EMAIL PROTECTED] wrote:
  osg::GraphicsWindow* win =
 
 dynamic_castosg::GraphicsWindow*(Viewer-getCamera()-getGraphicsContext());
  if (win) win-setWindowName(new Name);

 Thanks for this suggestion. But GraphicsWindow does
 not have a setWindowName method!?

I think it was added in OSG-2.1.x.

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


[osg-users] XCode-Framework-osg BrainFart

2008-01-24 Thread Richard S. Wright Jr.
After merrily going along my way using OSG on my Mac laptop for a few  
months, I got a new MacPro and started setting everything up fresh.

No matter how I install OSG (download prebuild frameworks, or make  
them myself), when I add them to an XCode project I get a linking  
error framework not found osg. All the OSG frameworks including  
OpenThreads give me this error when I add them to the project. No  
other frameworks do this, just the OSG frameworks. I'm building on  
Leopard.

Yes, I know something is fu-barred, I never had this problem on my  
MacBook Pro and I have built OSG many times. This is some sort  
esoteric Xcode problem and/or tangentially related to how OSG is  
built. OSG apps build on my MacBook Pro run fine on the MacPro, so the  
frameworks really are there...

Any Mac/OSG/XCoders run into this before?  I'm using GLUT, and the  
XCode project included (I'm using OSG 2.2 from source) that builds OSG  
works, but I cannot find any compiler or linker settings in that  
project that when transported to the other do the trick.

Richard

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


[osg-users] How to override default plugins....

2008-01-24 Thread neil.hughes
Hi all,

I wish to supply my own plugin for the zip format, which unzips to memory. 

I've created my plugin derived from the existing zip plugin, overridden the 
readnode functions for file and stream, and at the bottom of my class I've 
called the RegisterReaderWriterProxy template for my class.

It all appears to work, but I now have two zip file format plugins. The 
original, and mine. My one gets called second due to the way the 
RegisterReaderWriterProxy template appends to the existing list of known 
plugins, the plugin it is given.

Ideally I would like to remove the existing plugin from the known list, thus 
there would only be my zip file plugin, and life is happy. However I am unclear 
how to do this, or even whether it is possible. Can anyone suggest what to do 
please ?

I can see that there is a call removeReaderWriter in the registry, but can't 
see how I could call it with the original zip plugin reader, as this would 
surely have problems at shut down when the proxy class was destroyed.

Please help

Neil.

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


Re: [osg-users] XCode-Framework-osg BrainFart

2008-01-24 Thread Stephen Northcott
Richard,

Probably a stupid suggestion, but have you tried using the OSG  
Template, and then adding to that.

You may be doing that already, but from the way you describe it it  
looks like you are doing it the other way around.

I have not run into the problem you describe, but have found that  
sometimes something gets borked when you try to combine other projects  
with different dependencies.. When that does happen I have learned  
from experience (or perhaps as a function of my inexperience) that  
creating a fresh project, and putting it all together cleanly will  
solve the problem quicker than a lot of rooting around.

Hope that is some help,
Stephen.

On Jan 24, 2008, at 10:21 PM, Richard S. Wright Jr. wrote:

 After merrily going along my way using OSG on my Mac laptop for a few
 months, I got a new MacPro and started setting everything up fresh.

 No matter how I install OSG (download prebuild frameworks, or make
 them myself), when I add them to an XCode project I get a linking
 error framework not found osg. All the OSG frameworks including
 OpenThreads give me this error when I add them to the project. No
 other frameworks do this, just the OSG frameworks. I'm building on
 Leopard.

 Yes, I know something is fu-barred, I never had this problem on my
 MacBook Pro and I have built OSG many times. This is some sort
 esoteric Xcode problem and/or tangentially related to how OSG is
 built. OSG apps build on my MacBook Pro run fine on the MacPro, so the
 frameworks really are there...

 Any Mac/OSG/XCoders run into this before?  I'm using GLUT, and the
 XCode project included (I'm using OSG 2.2 from source) that builds OSG
 works, but I cannot find any compiler or linker settings in that
 project that when transported to the other do the trick.

 Richard

 ___
 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] How to override default plugins....

2008-01-24 Thread Robert Osfield
Hi Neil,

The easiest way to make sure that your plugin is loaded is to
pre-loaded it - just load your plugin, there are helper functions in
osgDB::Registry, or just statically link your plugin into your app.
The other way is to add your own alias to the Registry to map .zip to
your plugin.

Robert.

On Jan 24, 2008 3:37 PM,  [EMAIL PROTECTED] wrote:
 Hi all,

 I wish to supply my own plugin for the zip format, which unzips to memory.

 I've created my plugin derived from the existing zip plugin, overridden the 
 readnode functions for file and stream, and at the bottom of my class I've 
 called the RegisterReaderWriterProxy template for my class.

 It all appears to work, but I now have two zip file format plugins. The 
 original, and mine. My one gets called second due to the way the 
 RegisterReaderWriterProxy template appends to the existing list of known 
 plugins, the plugin it is given.

 Ideally I would like to remove the existing plugin from the known list, thus 
 there would only be my zip file plugin, and life is happy. However I am 
 unclear how to do this, or even whether it is possible. Can anyone suggest 
 what to do please ?

 I can see that there is a call removeReaderWriter in the registry, but can't 
 see how I could call it with the original zip plugin reader, as this would 
 surely have problems at shut down when the proxy class was destroyed.

 Please help

 Neil.

 ___
 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] Siggraph Course

2008-01-24 Thread Eric Sokolowsky
OSG users,

At last night's OSG user meeting in Washington D.C., sponsored by Paul 
Martz and Bob Kuehne, we discussed the possibility of submitting a 
course again to Siggraph. We don't have much time (the deadline is 
January 30), but I think that we can tweak last year's submission to be 
ready in time. The submission process is significantly different this 
year, and in many ways it's more streamlined. Courses from years past 
are now called classes, and last either one session (quarter day) or 
two sessions (half day). I think we could propose two classes, one for 
introductory material and one for advanced topics. This would basically 
break up last year's submission into two pieces.

Here are the required pieces for the general submission:

Title of the Submission
Summary Statement (50 words max)
Description (150 words max)
Web URL for publicity (optional)
Primary submission area (choose one:)
   Complexity and Accessibility
   Future History
   Global Responsibility
   Impact on Society
   Professional Development and Education
   Siggraph Core
   Slow Art
   Computer Animation Festival
Secondary submission area (optional)
Primary category (choose one:)
   Animation and Visual Effects
   Best Practices, Case Studies, Tips and Tricks
   Creative Expression
   Crossing Boundaries
   Evolving Concepts
   Methods  Systems
   Research
Secondary catetory (optional)
Keywords (1 required, up to 3 more optional)
Details on this work appearing or submitted elsewhere
If presentation at the conference is different from the materials 
uploaded, and details

Rights information and release

Abstract (pdf)
Representative image (tif)
Supplementary Supporting Document (optional - pdf)
Supplementary videos and images (optional)


For the class submission:
Describe your intended audience
Prerequisites
Level of Difficulty
Length of class
Instructor Bios
Example of class notes, supplementary materials
Has course been taught at siggraph previously?
Special presentation requirements (optional)


We created most of these things last year. Who's interested in 
presenting? What specific topics are most interesting?

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


Re: [osg-users] osgHUD 0.1.4 (testing)

2008-01-24 Thread Jeremy Moles

On Thu, 2008-01-24 at 14:59 +, Robert Osfield wrote:
  I'll name it whatever people think is best for inclusion into OSG.
  However, if Robert really wants it named something else, it would be
  optimal to know now so I can go ahead and change it before doing so is a
  day-long task unto itself. :)
 
 As mentioned before, osgWidget is the name I feel is most appropriate.
  When osgHUD makes its way into core OSG it'll be renamed to osgWidget
 so if you make this change beforehand then it'll save me a job which I
 always appreciate ;-)

Okay, it's done. :)

http://osgwidget.googlecode.com

I'm working on an example now using another NodeKit I created a while
back (but one I haven't made a fuss about until I can pair it with
osgWidget to demonstrate it's awesomeness) called osgCairo. I should
have screenshots later showing osgWidget using vector graphics for
buttons, scaled to whatever resolution suits your fancy with no loss in
clarity.

At any rate, I still hope to have this ready by April or May. Since my
real life job has ZERO to do with graphics, I can only really work on it
at home and at night... otherwise, it'd be ready a lot sooner. :)

 Robert.
 

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


Re: [osg-users] Siggraph Course

2008-01-24 Thread Art Tevs
Hi Eric,

 We created most of these things last year. Who's
 interested in 
 presenting? What specific topics are most
 interesting?

I would be interested in presenting the osgPPU stuff,
if it is fine ;-) However unfortunately I haven't
submitted any research work this year to Siggraph,
hence there is no way that I get paid for the trip to
Siggraph by my institute ;-) So if one of you guys is
interested in presenting this, I can prepare you ;-)


Best,
Art


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

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



   __ Ihr erstes Fernweh? Wo gibt es den 
schönsten Strand? www.yahoo.de/clever
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Texture/Shader inlined output to .osg files

2008-01-24 Thread Art Tevs
Hi Mike,

I have posted a patch to the submission list which do
include this changes. The patch doesn't break any
current functionality of the osg but just improve it. 

So take a look into the description I have posted
together with the patch. Or try it out. Maybe this is
what also can help you.

Cheers,
Art


--- Mike Weiblen [EMAIL PROTECTED] schrieb:

 Hi,
 
 Yes the .osg file Reader does support both
 representations of filename
 or embedded source text, so it does just become an
 issue of conveying
 the preference to the Writer.  That raises several
 issues tho
 
 Should ReaderWriter should somehow preserve the
 representation between
 reading and possible future rewriting, or should it
 always expect an
 explicit option?  What filename should be stored in
 the written .osg
 file (the source filename is not preserved in the
 osg::Shader)?  Should
 the shader source files themselves also be rewritten
 (perhaps the shader
 was modified)?  Etc etc
 
 I agree it would be nice to expose the option to use
 a filename
 reference; due to all the issues, I just defaulted
 to the safest path.
 Currently when I want a filename reference, I
 manually edit the .osg
 file; not a good answer, but it works.
 
 cheers
 -- mew
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:osg-users-
  [EMAIL PROTECTED] On Behalf Of Art
 Tevs
  Sent: Wednesday, January 23, 2008 10:31 AM
  To: OpenSceneGraph Users
  Subject: [osg-users] Texture/Shader inlined output
 to .osg files
  
  Hello,
  
  If one writes a texture to the .osg file, then the
  texture is not inlined, but it's file path is
 written
  to the .osg file.
  
  I am wonder why the same doesn't happen to shader
  programs. The shaders are inlined into the .osg
 file.
  As from my point of view shader programs are also
  resources, which might be changed without changing
 the
  .osg file and hence be loaded differently on the
 next
  app start.
  
  Would it be make sense to provide a patch which do
  either inline the shader code or write a file path
 of
  the file from where the shader code was retrieved.
  This should be somehow defined through the Options
  object given to the reader.
  
  What do you think?
  
  Best,
  Art
  
  P.S. I looked into the code and encountered that
  reading of shaders from files is already supported
 but
  writing not.
  
  
  
  
Machen Sie Yahoo! zu Ihrer Startseite. Los
 geht's:
  http://de.yahoo.com/set
  ___
  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
 



__  Ihr erstes Baby? Holen Sie sich 
Tipps von anderen Eltern.  www.yahoo.de/clever
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Implementing a 3D GUI

2008-01-24 Thread Jeremy Moles

On Tue, 2008-01-22 at 12:00 -0500, Brian wrote:
 Hi,
 
 I am in the process of trying to create an interactive Macromedia Flash 
 drawable.  I am now at the point where the Flash movie is rendering, but it 
 has no available mouse input.  My problem is how to determine what the 
 coordinates of my mouse cursor are (in 2D space) when the mouse is over the 
 drawable.  Preferably, I'd like to know the 2D coordinate of the mouse 
 position in terms of (0..1, 0..1).  The drawable itself is in 3D space.

Is this code Open Source? I'd love to help test it out a bit, and
perhaps apply anything I learn therein to osgWidget...

 I know that the IntersectVistor allows me to do certain things, but I have 
 never really used it before.  I've taken a look at the osgPick example and 
 see that I can get the local and world coordinates of an intersection, but I 
 am unclear as to whether there are any helper OSG classes/functions that will 
 allow me to map that intersection point to the correct 2D coordinate to pass 
 to the Flash player.  Also, is it possible to restrict the intersection tests 
  for my Flash drawables only?
 
 Thanks,
 Brian
 ___
 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