[osg-users] Fwd: creating widget for Qt

2009-03-16 Thread ami guru
Hello Ivan,

In the pro file do i have to include OpenGL module

or just the library linker for Openscenegraph will suffice


Regards
Sajjad

-- Forwarded message --
From: Iván osgfo...@tevs.eu
Date: Wed, Mar 4, 2009 at 11:27 PM
Subject: Re: [osg-users] creating widget for Qt
To: osg-users@lists.openscenegraph.org


Hi Sajjad,

Personally I create the whole interface in Qt designer and leave the OSG
widget/s integration in the initialization code.

About the header file, I 've separated the code from the original OSG file
in my own files (.h and .cpp) As you can see in the Qt sample you have
different options to render OSG in a Qt widget.

This works for me except for some warnings because of rendering out of
QPainter events, but I will deal with this later :)

I hope this help you in some way,
Iván.

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





___
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] [build] Unreckognized Commands

2009-03-16 Thread Luigi Calori
I did not used express, a similar problem happend to me when I had an 
osgviewer of one version using a dll from another. Check if you have 
other osg dll in your path and check if
your dll and your exe are all debug or all release. You can also use 
depends to check the dll loaded at runtime. If you are using svn head, 
try to switch to 2.8 release and rebuild from scratch to see if the 
problem persist.

Hope it helps

Adam Wise ha scritto:

Good and bad news: The good: I can access osgviewer. The bad: It crashes every time I try 
to use it. The message I receive is: osgviewer.exe has encountered a problem and 
needs to close, We are sorry for the inconvenience. That message is oddly 
ambiguous...and it happens every time. What should I do?




GordonTomlinson wrote:
  

The D on the end of the name of an EXE or DLL in OSG means you're using the
debug version of the code, rather than the release version which does not
typically have a D at the end

You need to set the environment variable OSGDATA to the location where you
installed the Osg data package

I would recommend you change the environment variable in your system
settings, as opposed to the autoexec.bat , you can change that through
control panel-system-advanced-environment variables and edit the PATH
entries

Note when you change environment variables you will have to close all
instance of Visual studio or other programs that use them as they will not
pick up any changes until you do,


__
Gordon Tomlinson 



IM: 
www.vis-sim.com www.gordontomlinson.com 


__


-Original Message-
From: 
[mailto:] On Behalf Of Adam Wise

Sent: Sunday, March 15, 2009 7:16 PM
To: 
Subject: Re:  [build] Unreckognized Commands


I went to the directory where everything was built, and indeed I found the
executables and ran them in command line. But here's the new problem: it
cannot find the OpenSceneGraph-Data-2.8.0 folder. I'm trying to run the
osgviewer cow.osg example...but that doesn't seem like a possibility right
now. I want to set everything up where my data can be easily found.

Also, Osgviewer...is actually Osgviewerd. What's the difference between the
two?

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





___
osg-users mailing list

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

___
osg-users mailing list

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

 --
Post generated by Mail2Forum




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





___
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] Mouse events are default in OpenScenegraph

2009-03-16 Thread Robert Osfield
On Sun, Mar 15, 2009 at 4:26 PM, Rajesh.R osgfo...@tevs.eu wrote:

 I have downloaded, the  latest version. Before getting into the new
 version. One final question,  Does  this  latest version of osg, has
 built-in arc-ball rotation support?


I don't know what arc-ball rotation support would actually mean... so
no...  I presume an arc-ball is specialist input device.



 If not  Should I implement  it of my own?


You might be able to use osgVRPN that Mike Weiblen

   http://mew.cx/osg/

developed to link with VRPN:

   http://www.cs.unc.edu/Research/vrpn/

Or just integrate the device yourself and inject mouse/leyboard style events
into the viewer via the osgGA::EventQueue.

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


Re: [osg-users] [osgPhysics] How to compile the pal project??l

2009-03-16 Thread Sukender
Hi kangsite(?),

As discussed on the PAL forum ( 
http://sourceforge.net/forum/forum.php?thread_id=3090857forum_id=400130 ), you 
should try the CMake build system I created for PAL. Here is a copy-paste of 
one of my messages:

The current status of this system is complete - approval pending.
To get PAL with CMake build system, checkout the corresponding PAL branch at 
https://pal.svn.sourceforge.net/svnroot/pal/branches/CMake_build_system

Please report anything useful! This way you will help everyone getting this 
system into the trunk (=make it official) faster.

I successfully tested it with VS8 (2005) sp1.

WARNING: This is a branch; it does NOT have all recent features added to PAL in 
the trunk (yet).

If you really need PAL trunk's feature in the branch, just tell me.
See you on the PAL forum (instead of here!)...

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/


Le Fri, 13 Mar 2009 15:43:26 +0100, Wang Rui wangra...@gmail.com a écrit:

 Hi Kangsite(?),

 Just try the SVN version of PAL. It seems to have small problems building
 under Windows at present, but not as serious as you saw.

 Wang Rui
 2009/3/13 kangsite osgfo...@tevs.eu

 Hi
   when I compile the pal project with vs2005,it's wrong.The message as
 follows:

 ___
 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] Getting latitude, longitude and height values from geocentric blue marble layer???

2009-03-16 Thread nalika
Hi


I generated blue marble layer with --geocentric option to get spherical view of 
the
virtual planet earth. I don't know how and from where to extract latitude, 
longitude and height values on mouse move?

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





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


Re: [osg-users] Getting latitude, longitude and height values from geocentric blue marble layer???

2009-03-16 Thread Robert Osfield
Hi Nalika?  Please sign with your name so that others can know who to
address.

On Mon, Mar 16, 2009 at 9:46 AM, nalika osgfo...@tevs.eu wrote:

 I generated blue marble layer with --geocentric option to get spherical
 view of the
 virtual planet earth. I don't know how and from where to extract latitude,
 longitude and height values on mouse move?


The geocentric VPB databases have a osg::CoordianteSystemNode at the root of
the scene graph that has the osg::ElliposodModel for the databases, you can
use this to convert XYZ values into lat,long and height values.  You can get
the XYZ values be intersecting the scene using a ray intersection.  See
osgpick for how to do the interesection.

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


Re: [osg-users] osgText::Text rotation

2009-03-16 Thread Dirk Uys
On Wed, Mar 11, 2009 at 7:53 PM, Glenn Waldron gwald...@gmail.com wrote:
 Try this:

     osg::Matrix cell2map = env-getInputSRS()-getInverseReferenceFrame();
     osg::Vec3d feature_center = point * cell2map;
     feature_center.normalize();
     osg::Vec3d cell_center = osg::Vec3d(0,0,1) * cell2map;
     cell_center.normalize();
     osg::Quat q;
     q.makeRotate( cell_center, feature_center );

Thanks for the suggestion, but I get the same results.

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


[osg-users] Binding user interface to the recording

2009-03-16 Thread sunitha sunagad
-- Hi All
 I need to know how to bind the user interface for ex i am using
Qt toolkit for the GUI and when i click the record option i internally i
need to enable the 'z' option for recording the animation...
Please let me know how to bind it or enable the osg recording option with
the user interface







 Defeat the defeat before defeat defeats you 




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


Re: [osg-users] Binding user interface to the recording

2009-03-16 Thread Robert Osfield
Hi Sunitha,

See the osgvewier.cpp example, it has:

// add the record camera path handler
viewer.addEventHandler(new osgViewer::RecordCameraPathHandler);

Robert.


2009/3/16 sunitha sunagad sunithassuna...@gmail.com



 -- Hi All
  I need to know how to bind the user interface for ex i am
 using Qt toolkit for the GUI and when i click the record option i internally
 i need to enable the 'z' option for recording the animation...
 Please let me know how to bind it or enable the osg recording option with
 the user interface







  Defeat the defeat before defeat defeats you 




 Regards
 Sunitha.S.Sunagad

 ___
 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] osgCal2 releaseGLObjects question

2009-03-16 Thread Vladimir Shabanov
2009/3/10 Laurent Di Cesare laurent.dices...@masagroup.net:
 Hello,

 I wonder if there's still support for osgCal2.

Not much support since I don't use osgCal for some time. I don't read
osg-users currently (only sometimes search for osgCal questions). If
you have some questions it's better to CC me for faster answer.

 I'm currently running into a problem where I believe that osgCal may not be
 doing something right:

 void
 HardwareMesh::releaseGLObjects(osg::State* state) const
 {
   osg::Geometry::releaseGLObjects( state );
   mesh-displayLists-releaseDisplayLists( state );
 }

I didn't find such code in current version, maybe you need to run `svn update`.

 The mesh looks like it's a shared object, and releasing its display lists
 kind of messes with the other instances of the same model.

Mesh display lists would be recreated, but I didn't tested osgCal
behaviour in case of viewer restarts.

 I haven't been able to update my subversion directory from the svn server,
 so does anyone know if it's still maintained?

svn repository works, maybe it was temporal sourceforge.net problem.

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


[osg-users] Quaternion problem

2009-03-16 Thread Antonin Linares

Hi osg users

I use an intersectionVisitor to place tank model on my terrain
i made something like that:

[...]
if(lsi-containIntersection())
{
   //get height and normal under the tank
   osg::Vec3f pos = 
lsi-getFirstIntersection()-getWorldIntersectionPoint();
   osg::Vec3f normal = 
lsi-getFirstIntersection()-getWorldIntersectionNormal();


   //Set up height
   pat-setPosition(pos);

   //Set up alignment with terrain
   float rotation;
   osg::Vec3f origine;
   pat-getAtitude().getRotate(rotation, origine);

   if((origine*normal) != 0){
  osg::Quat corect;
  corect.makeRotation(origine, normal);
  
  pat-setAtitude(corect); 
  //here it's cool my tank was perfectly aligned with terrain but i 
loose it's orientation

  //so i test to do
  osg::Quat rot(rotation, normal);
  pat-setAtitude(corect*rot);   //the tank was well oriented but 
no more aligned with my terrain 
   }

}
 
I looking for any idea to make my tank aligned with the terrain but 
keeping it's previous orientation.


Thanks

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


Re: [osg-users] [3rdparty] about osgCuda

2009-03-16 Thread Jens Orthmann
Hi Ufuk,

actually we plan to release a first version of osgCompute (which
includes osgCuda) within this week.
We will announce the website and the svn information here in this
fabulous forum/mailing lists.

In general there are a couple of ways to connect osg and cuda.
You might think of using a RenderBin or a leaf node.
However, you can take the Cuda Runtime API or the Driver API.
Also the cmake scripts have to find the cuda includes and libs for
proper compiling/linking.

I am sorry that I have no other starting points for you. Maybe it will
also help you to have a closer look
at the Cuda SDK examples.


Best regards,
Jens

--
SVT Group

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





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


Re: [osg-users] osgCal2 releaseGLObjects question

2009-03-16 Thread Laurent Di Cesare

Vladimir Shabanov a écrit :

2009/3/10 Laurent Di Cesare laurent.dices...@masagroup.net:
  

Hello,

I wonder if there's still support for osgCal2.



Not much support since I don't use osgCal for some time. I don't read
osg-users currently (only sometimes search for osgCal questions). If
you have some questions it's better to CC me for faster answer.

  

I'm currently running into a problem where I believe that osgCal may not be
doing something right:

void
HardwareMesh::releaseGLObjects(osg::State* state) const
{
  osg::Geometry::releaseGLObjects( state );
  mesh-displayLists-releaseDisplayLists( state );
}



I didn't find such code in current version, maybe you need to run `svn update`.

  

Yes, in fact it's a patch we applied ourselves, sorry...

The mesh looks like it's a shared object, and releasing its display lists
kind of messes with the other instances of the same model.



Mesh display lists would be recreated, but I didn't tested osgCal
behaviour in case of viewer restarts.
  
The underlying problem is documented here: 
http://sourceforge.net/tracker/index.php?func=detailaid=1871805group_id=79240atid=555954
If I destroy an animated mesh and create a new one, I get black pixels 
instead of my character's texture. This doesn't happen if another 
character with the same mesh exists, so there is a problem with the 
sharing of a model. If it is reused, the displaylists may not be cleaned 
properly but I'm not sure what exactly goes wrong. I think cleaning the 
displaylists of the mesh if the mesh is not shared by anyone else should 
work, but the destructors get called too late for some reason.
  

I haven't been able to update my subversion directory from the svn server,
so does anyone know if it's still maintained?



svn repository works, maybe it was temporal sourceforge.net problem.

  

Laurent.


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


  


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


Re: [osg-users] [3rdparty] about osgCuda

2009-03-16 Thread Jens Orthmann
Hi,

sorry - with my previous answer I am referring to Ufuk's
question about osgCuda. For those who are just reading
the mailing list (and not the forum) might be confused by
my post without citing the original post.


Ufuk wrote:
 Hi,i read the topic about osgCuda. I am happy to hear
 that someone is working on merging these projects.
 i am also trying to do a project with cuda on osg. anyway i got so
 many build problems..
 when i include something, i got another errors..
 
 so do you have any sample projects or any other start points to share
 in this topic?
 
 --
 Ufuk
 
  --
 Post generated by Mail2Forum


Best regards,
Jens

--
SVT Group

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





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


[osg-users] FFmpeg plugin

2009-03-16 Thread Carlos Sanches
Hi all !
I downloaded osg 2.9.1 . I m using  pImageStream =
dynamic_castosg::ImageStream*(hudImage);
to open a movie.
What have I to do to use ffmpeg to read my movies ?

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


Re: [osg-users] FFmpeg plugin

2009-03-16 Thread Robert Osfield
Hi Carlos,

Have a look at the osgmovie example for guidance, it'll boil down to reading
a image, and assing to the a textured quad.  Right now you'll need to
preload the ffmpeg plugin as osgDB won't yet automatically alias the movie
extensions to ffmpeg.  On the movie command line you use the option -e
ffmpeg to pre load the plugin.  Programatically you'd use:

std::string libName =
osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg);
osgDB::Registry::instance()-loadLibrary(libName);

Robert.

2009/3/16 Carlos Sanches ces...@gmail.com


 Hi all !
 I downloaded osg 2.9.1 . I m using  pImageStream =
 dynamic_castosg::ImageStream*(hudImage);
 to open a movie.
 What have I to do to use ffmpeg to read my movies ?

 tks




 ___
 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] [build] openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz decompression is error!

2009-03-16 Thread xh
why is none correct this error?
thx.

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





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


Re: [osg-users] openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz decompression is error!

2009-03-16 Thread xh
why is none correct this error? 
thx.

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





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


Re: [osg-users] openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz decompression is error!

2009-03-16 Thread Paul Melis

xh wrote:

Address:http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/binaries/Windows/VisualStudio9/;
  

The file indeed seems to be corrupt:

16:01|p...@tabu:~ gzip -t 
openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz


gzip: openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz: 
unexpected end of file





openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz decompression is 
error!
Are you this?
Thx.

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





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

  



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


Re: [osg-users] openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz decompression is error!

2009-03-16 Thread Ralph Kern
yes, I also downloaded a fresh copy and checked it.

But you can tell use 7zip on windows to first decompress it and then you
can unpack the uncompressed .tar if you ignore the error message on
decompression.

regards Ralph

Paul Melis schrieb:
 xh wrote:
 Address:http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/binaries/Windows/VisualStudio9/;

   
 The file indeed seems to be corrupt:
 
 16:01|p...@tabu:~ gzip -t
 openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz
 
 gzip: openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz:
 unexpected end of file
 
 
 
 openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz
 decompression is error!
 Are you this?
 Thx.

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





 ___
 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] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Robert Osfield
Hi All,

With the advent of forum.openscenegraph.org developed ably by Art Tevs we
have a great new avenue for users to choice whether they prefer forum or
mailing list for support... which is great but... for mailing list users the
posts from forum members have become rather impersonal, with all too cryptic
usernames, something that can happen with emails too but is happening far
more readily with forum members.   Once postings starting loose who they are
from they also loose the self regulating and personal nature to them, and it
makes bad tempered posts more likely, either at original source, or in
response.

Making the effort to make your posts more personable and friendly is a great
help to general health of the community, signing posts might seem like a
small thing, but it really doesn't make a huge difference - it's a big step
to making exchanges friendly and positive.  Dozens of times of the last
month I've have to ask users to make this tiny little bit of effort, but
with more forum users this is becoming a uphill struggle.

Might there be a technical solution to this?  Does the forum software have
the data to properly sign emails, or to put a proper name in the address?
Either way a solution of some kind really needs to be found.  In the
meantime I can enforce my own little mechanism of just ignoring all posts
with a cryptic author name... so if you want support you'll need to make the
effort to be curtious.

Thanks in advance for all your friendly signatures ;-)
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread schoko wikinger
Hi Guys,

I have just added a RecordCameraPathHandler to my viewer and it works fine, 
which means the animation is recorded by pressing z and replayed by pressing Z. 
But the problem is the saved_animation.path file is never written, although it 
says so. I search the complete disk for *.path

Here is how i added the handler

osgViewer::View* viewP = 
dynamic_castosgViewer::View*(_billInterface-getCamera()-getView());

recordHandler = new osgViewer::RecordCameraPathHandler(ETC.path);
viewP-addEventHandler(recordHandler);

And how do I replay the animation at the next start? I have a play button 
implemented in my GUI, but do not know how to implement the functionality.
like getView()-playAnimationFromFile(ETC.path)

thanks for your help
Felix
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Robert Osfield
Hi Felix,

Have you looked at the class definition for RecordCameraPathHandler?  If not
go have a look at it.  The constructor takes an optional filename that
defaults to saved_animation.path, you can set this to what ever you want,
including full path if you wish.  Normally in default settings the
saved_animation.path will drop in the directory that you ran your
application from.

Robert.

On Mon, Mar 16, 2009 at 3:13 PM, schoko wikinger felixilbr...@gmx.netwrote:

 Hi Guys,

 I have just added a RecordCameraPathHandler to my viewer and it works fine,
 which means the animation is recorded by pressing z and replayed by pressing
 Z. But the problem is the saved_animation.path file is never written,
 although it says so. I search the complete disk for *.path

 Here is how i added the handler

 osgViewer::View* viewP =
 dynamic_castosgViewer::View*(_billInterface-getCamera()-getView());

 recordHandler = new osgViewer::RecordCameraPathHandler(ETC.path);
 viewP-addEventHandler(recordHandler);

 And how do I replay the animation at the next start? I have a play button
 implemented in my GUI, but do not know how to implement the functionality.
 like getView()-playAnimationFromFile(ETC.path)

 thanks for your help
 Felix
 --
 Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
 Telefonanschluss für nur 17,95 Euro/mtl.!*
 http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
 ___
 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] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Paul Melis

Robert Osfield wrote:
With the advent of forum.openscenegraph.org 
http://forum.openscenegraph.org developed ably by Art Tevs we have a 
great new avenue for users to choice whether they prefer forum or 
mailing list for support... which is great but... for mailing list 
users the posts from forum members have become rather impersonal, with 
all too cryptic usernames, something that can happen with emails too 
but is happening far more readily with forum members.   Once postings 
starting loose who they are from they also loose the self regulating 
and personal nature to them, and it makes bad tempered posts more 
likely, either at original source, or in response. 
Another thing with the forum is that all senders have the same e-mail 
(osgfo...@tevs.eu), so in effect you can't send somebody a personal 
reply without first lookup up their real e-mail address on the forum. 
CC-ing them is also not possible. I assume the forum-list gateway uses 
the From: name to match up a post on the list with a user on the forum?


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


Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Felix Ilbring
Hi Robert

I have done it. I put it to 

new osgViewer::RecordCameraPathHandler(C:\\ETC.path);

but it was never there.

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





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


Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Robert Osfield
On Mon, Mar 16, 2009 at 3:28 PM, Felix Ilbring osgfo...@tevs.eu wrote:

 Hi Robert

 I have done it. I put it to

 new osgViewer::RecordCameraPathHandler(C:\\ETC.path);

 but it was never there.


The class has always worked for me, so can't suggest any gotcha's, you'll
have to open up a debug and see what the ReecordCameraPathHandler is doing
on your build/system.

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


[osg-users] תשובה: RecordCameraPathHan dler where is the saved_animation.path file ?

2009-03-16 Thread Guy
Maybe you don't have write permission?

 

Guy.

 



מאת: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] בשם Robert Osfield
נשלח: Monday, March 16, 2009 5:39 PM
אל: osg-users@lists.openscenegraph.org
נושא: Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path 
file?

 

On Mon, Mar 16, 2009 at 3:28 PM, Felix Ilbring osgfo...@tevs.eu wrote:

Hi Robert

I have done it. I put it to

new osgViewer::RecordCameraPathHandler(C:\\ETC.path);

but it was never there.


The class has always worked for me, so can't suggest any gotcha's, you'll have 
to open up a debug and see what the ReecordCameraPathHandler is doing on your 
build/system.

Robert.

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


Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Paul Melis

Felix Ilbring wrote:

Hi Robert

I have done it. I put it to 


new osgViewer::RecordCameraPathHandler(C:\\ETC.path);

but it was never there.
  
Note that you need to add the handler to the correct osgViewer::View and 
also have to use the 'z' key to start recording...


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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Roland Smeenk
You mean forum posts like this???

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





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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Roland Smeenk
I bet Art can come up with a forum adjustment to automatically add the 
username, real name  and possibly the forum e-mail.

kind regards,

Roland Smeenk
---
Forum member: rosme (Roland Smeenk)

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





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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Art Tevs
Hi Robert, Paul.

Ok, let me first answer Roberts questions and then coming to Paul's.

@Robert:
Yes, I was also afraid if forum becames more wide used, so that the community 
might became more anonymized then by using mailing list. I noticed same 
behaviour on any forum. Users are just very lazy and do not either add proper 
realnames, or any signature. Forum does already do one thing against that, so 
that it force users to setup a real name before they can register. However you 
can not control, what they are writing in the Realname field during the 
registration process. Hence, I am not sure, how this issue can be solved at 
all???

@Paul:
The main reason because all of forum users post have the same senders adress is 
that people not even able to manage to read the READ ME FIRST Announcement on 
the forum! 
The problem is, that you can only post on the mailing list if you register 
yourself with your own email adress on it. However as forum users might be not 
registered on the mailing list at all, their posts could never reach the 
mailing list. In the beginning I just forced every user to register with the 
same email adress as on the mailing list. But new users just ignore this. As I 
said they even ignore what I have written in the READ ME .. on the forum, 
which has to be taking into account when using the forum. 
Hence new users posted messages on the forum, but they were not forwarded to 
the mailing list, because users' email adress was not registered on the ML. 
Hence the only solution was to declare some default email adress which can be 
used as senders adress for every user. However this can be disabled by every 
users in their profiles, but I am afraid that this will almost never happen, 
because 90% of users not even read the READMEs :( !!!

To solve the issue with the same sender's email adress one has either to allow 
to post from every mail adress onto the mailing list, which will open the door 
for spamming. Or to create some interface for the mailing list which can be 
used by the forum to post onto it, however this would require some research and 
development of such an interface. Maybe somebody has an idea about that?

cheers,
art

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





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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Art Tevs
Hi Roland,

yes I can do some adjustments, however the current setup is the most one can 
take out of the current situtation, I think.

Users are forced to write a real name. Email is sent as: From: Real Name 
osgfo...@tevs.eu or if user do change its profile, then it can also be From: 
Real Name u...@mail.com

However, as I posted previously, this isn't doable because the forum-mailing 
list connection doesn't allow more that it does currently.

Some investigation and research has to be made, how to solve that issues. Also 
please don't forgett that to force a user to do something will never work in 
most of the cases, it has to be done completly automatically.

cheers

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





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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Roland Smeenk
Would it be an idea if mail2forum generates an HTML e-mail similar to a forum 
response?

--
Roland

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



attachment: forum.png___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Robert Osfield
2009/3/16 Roland Smeenk osgfo...@tevs.eu

 You mean forum posts like this???


We'll at least you have a name that others can get an idea of who you
are...  Most forum users don't to seem to have any human readable user name
at all, and don't both to sign their names.

Email/forum messages really aren't much different than other written forms
of communication, it's basic courtesy to actually sign what your write to
other people and really helps make written exchanges more civil.   It's a
sad fact that electronic community can lead to people becoming so lazy that
even basic courtesy is ignored, they might not mean to be rude but without
any attempt at communication at personal level is really hard sometimes not
to read into some posts that posts the author simply being a self-centered
and rude.

I raise this as an issue because with electronic communication unproductive
flame feast can easily erupt, it only takes one or two posts to come across
in an aggressive tone for replies to descend to the same level and so the
spiral of community descends.  If we can avoid the communication getting
impersonal in the first place then we stand a better chance of keeping
communication positive.

Sure there will always be some posters that some of the time will be
genuinely rude just because they are that type of person, or a normally good
natured person at the wrong time of day, this is part of life, none of us
are perfect.  You want these posts to stand out like a sore thumb, the
exceptions to the daily grind of life.  If most posts start sounding like
the author is not making any effort to be civil then it's hard to keep
general good natured tone up.

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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Art Tevs

rosme wrote:
 Would it be an idea if mail2forum generates an HTML e-mail similar to a forum 
 response?
 
 --
 Roland


It wouldn't be a big problem, however I am not sure if people, who are like to 
use mailing list only, would be happy about that. I think that even some part 
of the community use pine or other text based mail clients ;)

However this still would not solve the problem of cryptic names and same 
default senders email adress.

art

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





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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Thrall, Bryan
Art Tevs wrote on Monday, March 16, 2009 11:24 AM:

 Hi Roland,
 
 yes I can do some adjustments, however the current setup is the most
one can
 take out of the current situtation, I think. 
 
 Users are forced to write a real name. Email is sent as: From: Real
Name
 osgfo...@tevs.eu or if user do change its profile, then it can also
be
 From: Real Name u...@mail.com  
 
 However, as I posted previously, this isn't doable because the
 forum-mailing list connection doesn't allow more that it does
currently. 
 
 Some investigation and research has to be made, how to solve that
issues.
 Also please don't forgett that to force a user to do something will
never
 work in most of the cases, it has to be done completly automatically.


It looks like the forum supports signatures; could you just assign a
default signature based on the user's given Real Name and email? You
can't force them to give their actual Real Name, but I imagine most
people wouldn't lie on that, even if they don't use their Real Name for
their forum ID.

-- 
Bryan Thrall
FlightSafety International
bryan.thr...@flightsafety.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Felix Ilbring
thanks Paul

the thing ist, that the recording works. it starts with 'z' and stops with 'Z' 
afterwards it plays the scene again and again.

console promts:
Recording camera Path.
Writing camera file: ETC.path
AnimationPath Completet in XXX

so i guess it is the right viewer, but the file is nowhere to be found.. 

i also started in debug mode and the recordHandler object looks good. No errors 
all values set

maybe some can just post me a .path file and tell me how to replay it in my 
view.
I can than add my own points to it and everything will be fine  :)
if i remeber correctly it should look like
TIME X Y Z thats what i read in another post

thanks
Felix

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





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


Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Robert Osfield
Hi Felix,

Could you try osgviewer to see if it can record files OK.

Robert.

On Mon, Mar 16, 2009 at 4:45 PM, Felix Ilbring osgfo...@tevs.eu wrote:

 thanks Paul

 the thing ist, that the recording works. it starts with 'z' and stops with
 'Z' afterwards it plays the scene again and again.

 console promts:
 Recording camera Path.
 Writing camera file: ETC.path
 AnimationPath Completet in XXX

 so i guess it is the right viewer, but the file is nowhere to be found..

 i also started in debug mode and the recordHandler object looks good. No
 errors all values set

 maybe some can just post me a .path file and tell me how to replay it in my
 view.
 I can than add my own points to it and everything will be fine  :)
 if i remeber correctly it should look like
 TIME X Y Z thats what i read in another post

 thanks
 Felix

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





 ___
 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] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Art Tevs

Thrall, Bryan wrote:
 
 It looks like the forum supports signatures; could you just assign a
 default signature based on the user's given Real Name and email? You
 can't force them to give their actual Real Name, but I imagine most
 people wouldn't lie on that, even if they don't use their Real Name for
 their forum ID.
 


Hi Bryan,

actually printing out an automaticly generated signature wouldn't change 
anything, because users' real name values are already used in From header of 
the generated email. Hence if user X does call himself Mister X, then the email 
heaer looks like this:
From: Mister X 

Even if there will be now a forced signature the signature can still not give 
more information that user has given. The signature could look like this:
-
Forum user: Mister X (X) 

So the one thing I could add is mister X's used email adress and nothing else, 
because there is just no more information available.

art

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





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


Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Paul Melis
Felix Ilbring wrote:
 thanks Paul

 the thing ist, that the recording works. it starts with 'z' and stops with 
 'Z' afterwards it plays the scene again and again.

 console promts:
 Recording camera Path.
 Writing camera file: ETC.path
 AnimationPath Completet in XXX

 so i guess it is the right viewer, but the file is nowhere to be found.. 
   
Hmm, and you can't locate it using a search in the file explorer?
Another tool you could use is this one
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) which
allows you to trace file activity of a process (read/write/create/etc).

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


[osg-users] Separate sub-graphs of the same scene

2009-03-16 Thread Guy
Hello,

 

 I'm trying to merge two sub-graphs to the same image. It doesn't work so well, 
so I'll try to explain what in general I'm trying to achieve, then my not 
working so well solutions, and then the questions :-)

 

So, in general I want to replace an object (A) in the scene with another object 
(B) on some condition. The object (B) is some pixels which are lit up. The 
important thing is to keep the 3D scene distance from the camera for both 
objects, so if the object is obscured by another, then both (A) and (B) will be 
obscured, and if some other object (C) is obscured by (A), it will still be 
obscured by (B). Object (B) might be partially transparent.

 

Not working so well solution 1:

Have switch for (A)/(B).

The position of (A) is multiplied by view-projection matrix, the result is 
pos'. (B) is a set of points which their vertices are pos' with (x,y) replaced 
by the pixels I want to lit, and the new positions are multiplied by the 
inverse-projection invers-view matrices.

This solution had problems with setting the right pixels.

 

Not working so well solution 2:

Object (B) is a set of pixel under ABSOLUTE_REF orthographic projection with 
(x,y) of the pixels I want to lit and z is the negative distance between (A) 
and the camera.

This solution has the correct pattern of the lit pixels, but the Z order 
doesn't seems to be correct.

 

The implementation of solution 2 is to add camera with ABSOLUTE_RF and 
orthographic projection. View is identity. I set the clear mask to 0 since I 
don't want the Z-Buffer to be cleared. (opposed to huds and that kind of 
implementations). 

 

I used the osgviewer to put the cow at 0,0,-300 under absolute_rf, and a point 
at 0,0,0 under separate camera with orthographic projection, and the point was 
hidden by the cow (which is a mistake).

I thought that I might need to set the zNear/zFar of both camera's to be the 
same, but in this simple example it shouldn't matter since the point Z is zero…

 

So first, do I have to set the zNear/zFar of both camera's to be the same?

 

Any ideas whats going wrong?

 

Other solutions for the problem?

 

Btw, I tried to replace the points by quads under orthographic projection. The 
results were the same.

 

Thanks,

 Guy.

 



מאת: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] בשם Robert Osfield
נשלח: Monday, March 16, 2009 5:39 PM
אל: osg-users@lists.openscenegraph.org
נושא: Re: [osg-users] RecordCameraPathHandler where is the saved_animation.path 
file?

 

On Mon, Mar 16, 2009 at 3:28 PM, Felix Ilbring osgfo...@tevs.eu wrote:

Hi Robert

I have done it. I put it to

new osgViewer::RecordCameraPathHandler(C:\\ETC.path);

but it was never there.


The class has always worked for me, so can't suggest any gotcha's, you'll have 
to open up a debug and see what the ReecordCameraPathHandler is doing on your 
build/system.

Robert.

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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Ed
I won't use a forum mainly because of the spam generated when I have 
used forums in the past... I know there are probably things in place now 
to prevent or reduce email harvesting from forums, but all the same, I 
won't use forums anymore... not so long as there an alternative.  As for 
cryptic names, I don't see the problem... does every user have to be 
identified?


Ed

Art Tevs wrote:

rosme wrote:
  

Would it be an idea if mail2forum generates an HTML e-mail similar to a forum 
response?

--
Roland




It wouldn't be a big problem, however I am not sure if people, who are like to use 
mailing list only, would be happy about that. I think that even some part of the 
community use pine or other text based mail clients ;)

However this still would not solve the problem of cryptic names and same 
default senders email adress.

art

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





___
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] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Ed
I won't use a forum mainly because of the spam generated when I have 
used forums in the past... I know there are probably things in place now 
to prevent or reduce email harvesting from forums, but all the same, I 
won't use forums anymore... not so long as there an alternative.  As for 
cryptic names, I don't see the problem... does every user have to be 
identified?


Ed

Art Tevs wrote:

rosme wrote:
  

Would it be an idea if mail2forum generates an HTML e-mail similar to a forum 
response?

--
Roland




It wouldn't be a big problem, however I am not sure if people, who are like to use 
mailing list only, would be happy about that. I think that even some part of the 
community use pine or other text based mail clients ;)

However this still would not solve the problem of cryptic names and same 
default senders email adress.

art

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





___
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] Image Resolution in VPB

2009-03-16 Thread Martins Innus

Hello,
	I'm using VPB to generate a terrain database with 2ft resolution 
elevation data and 1 ft resolution imagery. What I'm trying to do is 
make the imagery in the highest resolution tiles have the exact same 
resolution as the source imagery and also still be a power of 2 for the 
image tiles.
	I've verified that if I take a small input area where the source 
imagery dimensions are a power of 2, I get what i want for the final model.
	It seems that if I could tell VPB to pad out the extents of my input 
data to a power of 2 that should work as well.  I don't care if its 
black or garbage or whatever.


	Would the -e option do what I want if I specify extents larger than 
the input data?  I'm about to give that a try but it takes about three 
days for this job to run to completion, so I figured I would ask if 
anyone has tried to do the same thing.


Thanks for any insight.

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


Re: [osg-users] Quaternion problem

2009-03-16 Thread Steven Saunderson

Antonin Linares wrote:
 Hi osg users
 
 I use an intersectionVisitor to place tank model on my terrain
 i made something like that:
 
 [...]osg::Quat rot(rotation, normal);
 pat-setAtitude(corect*rot);   //the tank was well oriented but 
 no more aligned with my terrain 
 }
 }
 
 I looking for any idea to make my tank aligned with the terrain but 
 keeping it's previous orientation.
 

Have you tried : pat-setAtitude(rot*corect); ?
I'm wondering if the factor that should be applied last (i.e. rot) should be 
first in the multiply here.


-- Steven Saunderson

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





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


Re: [osg-users] osgconv bug with obj format

2009-03-16 Thread Ed
I noticed a possible issue as well. I used osgconv to convert a FLT 
terrain to obj. osgviewer reads it in and renders it fine, but some 
modeling tools I use won't read it and report an error reading the file. 
Unfortunately, that is all that is reported: an error. Nothing more 
specific than an error ocurred reading the file type of thing.


Ed

Ben Axelrod wrote:


I am trying to use osgconv to convert a number of .wrl files to .obj 
format. But the resulting .obj file does not look right at all in 
osgviewer. (See box.png). Also attached, the original input file 
box.wrl, and the resulting output files box.obj and box.mtl.


I am using OSG version 2.6.0 and openVRML 0.14.3 on Debian Etch.

The original .wrl file renders fine with osgviewer. Other .obj files 
created with Blender render fine with osgviewer. If I convert the .wrl 
to .osg format, the .osg file renders fine with osgviewer. But if I 
then try to convert the .osg to .obj, the .obj renders bad again. So 
this leads me to believe the problem is with the .obj writer in osgconv.


I tried running the conversion with –O noTesselateLargePolygons –O 
noTriStripPolygons with no difference.


Anyone know if there are some options I am missing to fix this? Or if 
it has been fixed in the latest version?


Thanks,

-Ben



___
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] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Robert Osfield
Hi Ed,

On Mon, Mar 16, 2009 at 5:49 PM, Ed o...@celticblues.com wrote:

 I won't use a forum mainly because of the spam generated when I have used
 forums in the past... I know there are probably things in place now to
 prevent or reduce email harvesting from forums, but all the same, I won't
 use forums anymore... not so long as there an alternative.  As for cryptic
 names, I don't see the problem... does every user have to be identified?


We don't need to exact name but we need a name, it's a basic principle of
human communication that you need to know who saying what to whomn,  if all
2000 of us took up the name John Smith then it would be a pretty hard to
keep up an semblance of humanity.  It would be quite simply impossible to
keep track of things.

At personal level, I think it's dishonest not to being open about who you
are.  Alas it's fact of online life that people to hid their identity,
sometimes their are valid reasons but rarely in the case of community such
as ours.  While you can subscribe to lists/forum and assume any name, not
assuming any level of human readable name is just plain awful for everybody
else in the community that has to deal with such individuals.

As soon as you dive in you are part of the community, and this community has
to be a healthy place to hang out for everybody involved, and if you want
help from others in the community surely you want to maximize the chances
that others will help you.  Being polite, open and curteous is the best way
to achieve good support, one big element of this is telling people who you
and how to you liked to be addressed you.

As an experiment, for all you face to face social meetings were you'd
normally give your name, don't bother giving your name, just say sorry I
don't tell people my name.  Also instead of addressing people with their
name just say what you want to say to everybody and if the right person
doesn't respond just speak louder, and keep speaking louder until you get
the response you want.  At the same time avoid any eye contact in all
conversations.   I'm pretty sure you'd start loosing friends + associates
pretty quickly.

In electronic communication we have no eye to eye contact.  We have no tone
of voice to pick up.  We have no face expressions to read.  We have no hand
guestures.  When we talk we talk with many thousands of people are
potentially listening.   In this context perhaps you might see that you have
to cling on to what parts of our humanity make communication successful -
yep it's know who's talking and who they want to talk to is fundamental.

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


Re: [osg-users] Image Resolution in VPB

2009-03-16 Thread Robert Osfield
Hi Martins,

You could try to use the -e option.  It takes lat/longs as input.  I don't
know if it'll pad though, as I suspect it won't unless the at least some of
the input data covers the region.   If you want to force the resolution to
be the same then just use the image and height res option.  I can't recall
what they off the top of my head, run osgdem --help to list them all.

Robert.

On Mon, Mar 16, 2009 at 6:12 PM, Martins Innus min...@ccr.buffalo.eduwrote:

 Hello,
I'm using VPB to generate a terrain database with 2ft resolution
 elevation data and 1 ft resolution imagery. What I'm trying to do is make
 the imagery in the highest resolution tiles have the exact same resolution
 as the source imagery and also still be a power of 2 for the image tiles.
I've verified that if I take a small input area where the source
 imagery dimensions are a power of 2, I get what i want for the final model.
It seems that if I could tell VPB to pad out the extents of my
 input data to a power of 2 that should work as well.  I don't care if its
 black or garbage or whatever.

Would the -e option do what I want if I specify extents larger
 than the input data?  I'm about to give that a try but it takes about three
 days for this job to run to completion, so I figured I would ask if anyone
 has tried to do the same thing.

 Thanks for any insight.

 Martins
 ___
 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] Separate sub-graphs of the same scene

2009-03-16 Thread Peter Amstutz
I'm not sure I entirely understand what you're trying to accomplish, but 
perhaps you want to look into using a stencil buffer and/or pixel shader 
to control what gets rendered?


Guy wrote:


Hello,

 

 I'm trying to merge two sub-graphs to the same image. It doesn't work 
so well, so I'll try to explain what in general I'm trying to achieve, 
then my not working so well solutions, and then the questions J


 

So, in general I want to replace an object (A) in the scene with 
another object (B) on some condition. The object (B) is some pixels 
which are lit up. The important thing is to keep the 3D scene distance 
from the camera for both objects, so if the object is obscured by 
another, then both (A) and (B) will be obscured, and if some other 
object (C) is obscured by (A), it will still be obscured by (B). 
Object (B) might be partially transparent.


 


Not working so well solution 1:

Have switch for (A)/(B).

The position of (A) is multiplied by view-projection matrix, the 
result is pos'. (B) is a set of points which their vertices are pos' 
with (x,y) replaced by the pixels I want to lit, and the new positions 
are multiplied by the inverse-projection invers-view matrices.


This solution had problems with setting the right pixels.

 


Not working so well solution 2:

Object (B) is a set of pixel under ABSOLUTE_REF orthographic 
projection with (x,y) of the pixels I want to lit and z is the 
negative distance between (A) and the camera.


This solution has the correct pattern of the lit pixels, but the Z 
order doesn't seems to be correct.


 

The implementation of solution 2 is to add camera with ABSOLUTE_RF and 
orthographic projection. View is identity. I set the clear mask to 0 
since I don't want the Z-Buffer to be cleared. (opposed to huds and 
that kind of implementations).


 

I used the osgviewer to put the cow at 0,0,-300 under absolute_rf, and 
a point at 0,0,0 under separate camera with orthographic projection, 
and the point was hidden by the cow (which is a mistake).


I thought that I might need to set the zNear/zFar of both camera's to 
be the same, but in this simple example it shouldn't matter since the 
point Z is zero…


 


So first, do I have to set the zNear/zFar of both camera's to be the same?

 


Any ideas whats going wrong?

 


Other solutions for the problem?

 

Btw, I tried to replace the points by quads under orthographic 
projection. The results were the same.


 


Thanks,

 Guy.

 




*מאת**:* osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] *בשם** *Robert Osfield

*נשלח**:* Monday, March 16, 2009 5:39 PM
*אל**:* osg-users@lists.openscenegraph.org
*נושא**:* Re: [osg-users] RecordCameraPathHandler where is the 
saved_animation.path file?


 


On Mon, Mar 16, 2009 at 3:28 PM, Felix Ilbring osgfo...@tevs.eu wrote:

Hi Robert

I have done it. I put it to

new osgViewer::RecordCameraPathHandler(C:\\ETC.path);

but it was never there.


The class has always worked for me, so can't suggest any gotcha's, 
you'll have to open up a debug and see what the 
ReecordCameraPathHandler is doing on your build/system.


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] switch between two camera

2009-03-16 Thread Robert Osfield
Hi Peter, Benoit et,

On Mon, Mar 16, 2009 at 8:15 PM, Peter Amstutz
peter.amst...@tseboston.comwrote:

 The way I handled this in my application was to create multiple instances
 of osgViewer::Viewer with a separate camera for each view but all bound to
 the same output window.  On each render iteration, draw just the active
 camera.


I'm afraid I really wouldn't recommend this solution, having multiple
viewers just to alternate between views is complicated implementation and
conceptual wise and you'd be very lucky for it to work in anything other
that very limited usage models.  Using multiple viewers will cause problems
with threading, timing codes, it'd be a right old mess.


 The best solution depends on exactly what you need to display; I decided to
 switch between completely independent scenes because my 2D and 3D views
 looks actually render somewhat different geometry (the 2D ortho view is an
 abstracted version of the real 3D geometry).  Having entirely separate
 scenes is also pretty straightforward although it imposes some overhead due
 to duplication of resources that could otherwise be shared between among
 views.


In your case you are talking about multiple Views, and this is fine, but you
don't use multiple Viewers for it, you'd use a single CompositeViewer with
multiple Views.  You can add and remove Views, or just toggle Camera's
on/off using NodeMask's.

For Benoit having a single master Camera track different CameraView nodes in
the scene might well be the most convinient way to manage things.

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


Re: [osg-users] openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz decompression is error!

2009-03-16 Thread Mattias Helsing
Hi all,

I'm not at my msvc90 machine right now so can't test until tomorrow.
gunzip on linux reports failures to.

I've been using 7-zip for all the packages for msvc90 so I have tested
some other packages in that folder. Among others
openscenegraph-all-...Release.tar.gz which seems to work with linux
gunzip and tar.

So - I'll repack, test and submit tomorrow.

Mattias

On Mon, Mar 16, 2009 at 4:09 PM, Ralph Kern usene...@rk-se.de wrote:
 yes, I also downloaded a fresh copy and checked it.

 But you can tell use 7zip on windows to first decompress it and then you
 can unpack the uncompressed .tar if you ignore the error message on
 decompression.

 regards Ralph

 Paul Melis schrieb:
 xh wrote:
 Address:http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/binaries/Windows/VisualStudio9/;


 The file indeed seems to be corrupt:

 16:01|p...@tabu:~ gzip -t
 openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz

 gzip: openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz:
 unexpected end of file



 openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz
 decompression is error!
 Are you this?
 Thx.

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





 ___
 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] RecordCameraPathHandler where is the saved_animation.path file?

2009-03-16 Thread Felix Ilbring
no I did not create the file manualy, but I will test the tool from the link 
tomorrow.
Thanks a lot for your support.

Felix

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





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


Re: [osg-users] switch between two camera

2009-03-16 Thread Lingyun Yu
Hi Robert,

I also meet the same problem, I have 128 snapshots of particles, and I want
to use those 128 shapshots to make an real time animation.
First thing I tried, was using a update callback function and bind it on my
geode, everytime I just updated all positions of particles. But obviously it
was quite slow.
Then I tried to use two view, and each one has it's own camera, and render
two snapshots in the same time. Well, it works, but still very slow.
Then I tried to use one view but two cameras, and load three snapshots in
the same time, two below two caremas, one below my Root. because I do really
need to update it. And link the right snapshots while I need to render it.

Somehow it is still slow, and while it switches snapshots and I use
trackball, it is played not fruently.

So my question is, basicly I need to render un-structed points dataset, and
I have a lot snapshots, do you have any idea how can I make an realtime
animation fruently?
Looking forward to your reply and thank you very much.

Yun
2009/3/16 Robert Osfield robert.osfi...@gmail.com

 Hi Peter, Benoit et,

  On Mon, Mar 16, 2009 at 8:15 PM, Peter Amstutz 
 peter.amst...@tseboston.com wrote:

 The way I handled this in my application was to create multiple instances
 of osgViewer::Viewer with a separate camera for each view but all bound to
 the same output window.  On each render iteration, draw just the active
 camera.


 I'm afraid I really wouldn't recommend this solution, having multiple
 viewers just to alternate between views is complicated implementation and
 conceptual wise and you'd be very lucky for it to work in anything other
 that very limited usage models.  Using multiple viewers will cause problems
 with threading, timing codes, it'd be a right old mess.


 The best solution depends on exactly what you need to display; I decided
 to switch between completely independent scenes because my 2D and 3D views
 looks actually render somewhat different geometry (the 2D ortho view is an
 abstracted version of the real 3D geometry).  Having entirely separate
 scenes is also pretty straightforward although it imposes some overhead due
 to duplication of resources that could otherwise be shared between among
 views.


 In your case you are talking about multiple Views, and this is fine, but
 you don't use multiple Viewers for it, you'd use a single CompositeViewer
 with multiple Views.  You can add and remove Views, or just toggle Camera's
 on/off using NodeMask's.

 For Benoit having a single master Camera track different CameraView nodes
 in the scene might well be the most convinient way to manage things.

 Robert.



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




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


Re: [osg-users] creating widget for Qt

2009-03-16 Thread Iván Cuevas
I don't use .pro files, but I have to include the OpenGL module because I 
extend from QGLWidget.

Regards,
Iván.

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





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


Re: [osg-users] Forum users rare uses signatures, which is a pain tracking who's who

2009-03-16 Thread Sukender
Hi all,

And what about manually banning (temporarily) from the forum those who don't 
respect basic rules? That could be simple:
1. Warn the user if the real name isn't explicit enough
2. Ban until real name is changed (The user could still use the mailing list)

I'm pretty sure people would not to dare keeping an unclear name for a very 
long time...
That would require a bit programming but that would not be very difficult I 
guess.
I just hope this isn't too radical!

And another idea could be to get a reminder each week (or month?) if the email 
address isn't set (or is the default one).

Thoughts?

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/


Le Mon, 16 Mar 2009 17:53:01 +0100, Art Tevs osgfo...@tevs.eu a écrit:


 Thrall, Bryan wrote:

 It looks like the forum supports signatures; could you just assign a
 default signature based on the user's given Real Name and email? You
 can't force them to give their actual Real Name, but I imagine most
 people wouldn't lie on that, even if they don't use their Real Name for
 their forum ID.



 Hi Bryan,

 actually printing out an automaticly generated signature wouldn't change 
 anything, because users' real name values are already used in From header of 
 the generated email. Hence if user X does call himself Mister X, then the 
 email heaer looks like this:
 From: Mister X 

 Even if there will be now a forced signature the signature can still not give 
 more information that user has given. The signature could look like this:
 -
 Forum user: Mister X (X) 

 So the one thing I could add is mister X's used email adress and nothing 
 else, because there is just no more information available.

 art

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





 ___
 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] [build] osgdb_freetype build problem on Mac OS/X 10.5.6

2009-03-16 Thread john casu
I'm trying to build the latest svn version of OSG 2.8.0 on OS/X, and I'm having 
a problem when building osgdb_freetype, specifically the header file ft2build.h 
cannot be located:
Scanning dependencies of target osgdb_freetype
[ 98%] Building CXX object 
src/osgPlugins/freetype/CMakeFiles/osgdb_freetype.dir/FreeTypeFont.cpp.o
In file included from 
/Users/casuj/OpenSceneGraph/OpenSceneGraph-2.8.0-svn/src/osgPlugins/freetype/FreeTypeFont.cpp:14:
/Users/casuj/OpenSceneGraph/OpenSceneGraph-2.8.0-svn/src/osgPlugins/freetype/FreeTypeFont.h:19:22:
 error: ft2build.h: No such file or directory
/Users/casuj/OpenSceneGraph/OpenSceneGraph-2.8.0-svn/src/osgPlugins/freetype/FreeTypeFont.h:20:10:
 error: #include expects FILENAME or FILENAME

However, CMakeCache.txt shows that this file has been located:
enterprise:OpenSceneGraph-2.8.0-svn casuj$ fgrep FREETYPE CMakeCache.txt
CMakeCache.txt:FREETYPE_INCLUDE_DIR_freetype2:PATH=/usr/local/include/freetype2
CMakeCache.txt:FREETYPE_INCLUDE_DIR_ft2build:PATH=/usr/local/include
CMakeCache.txt:FREETYPE_LIBRARY:FILEPATH=/usr/local/lib/libfreetype.dylib

and the file itself does in fact exist:
enterprise:OpenSceneGraph-2.8.0-svn casuj$ ls -l /usr/local/include/ft2build.h 
-rw-r--r--  1 root  admin  3890 Mar  5  2007 /usr/local/include/ft2build.h

Can anyone shed light on how to workaround this ?

Thanks,

-john c.

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





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


Re: [osg-users] openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz decompression is error!

2009-03-16 Thread xh
Thanks,Mattias Helsing!


Mattias Helsing wrote:
 Hi all,
 
 I'm not at my msvc90 machine right now so can't test until tomorrow.
 gunzip on linux reports failures to.
 
 I've been using 7-zip for all the packages for msvc90 so I have tested
 some other packages in that folder. Among others
 openscenegraph-all-...Release.tar.gz which seems to work with linux
 gunzip and tar.
 
 So - I'll repack, test and submit tomorrow.
 
 Mattias
 
 On Mon, Mar 16, 2009 at 4:09 PM, Ralph Kern  wrote:
 
  yes, I also downloaded a fresh copy and checked it.
  
  But you can tell use 7zip on windows to first decompress it and then you
  can unpack the uncompressed .tar if you ignore the error message on
  decompression.
  
  regards Ralph
  
  Paul Melis schrieb:
  
   xh wrote:
   
Address:http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/binaries/Windows/VisualStudio9/;



   The file indeed seems to be corrupt:
   
   16:01|p...@tabu:~ gzip -t
   openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz
   
   gzip: openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz:
   unexpected end of file
   
   
   
   
openscenegraph-all-2.8.0-win32-x86-vc90sp1-Debug.tar.gz
decompression is error!
Are you this?
Thx.

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





___
osg-users mailing list

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



   
   
   
  
  ___
  osg-users mailing list
  
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
  
  
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
  --
 Post generated by Mail2Forum


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





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


[osg-users] Binding the recording

2009-03-16 Thread sunitha sunagad
-- Hi, Robert














Always
  Keep
 Smiling!

 Defeat the defeat before defeat defeats you 




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


[osg-users] Binding Recording

2009-03-16 Thread sunitha sunagad
-- Hi Robert Osfield
   My problem is by enabling the z key the recording starts
and get saved in animation path file thats fine...
But i need to enable this recording with the Qt tool kit have GUI built in
Qt when i click the record symbol in the Qt GUI it should internally do the
recording function . how ? i get signal from the Qt on clicking the user
interface and in that signal i have to enable the 'z' key to start
recording...I hope u got my problem...

















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