RE: [osg-users] Question about memory cleanup (OSG beginner)

2007-02-02 Thread Donald Tidrow
On Fri, 2007-02-02 at 20:27 -0500, Zach Deedler wrote: > Hello, > > osg uses smart pointers. Most classes in osg are derived from > osg::Referenced. This class prohibits you from deleting it by making > the destructor protected. This is on purpose. This way you don't > have to worry about del

RE: [osg-users] Question about memory cleanup (OSG beginner)

2007-02-02 Thread Zach Deedler
Hello, osg uses smart pointers. Most classes in osg are derived from osg::Referenced. This class prohibits you from deleting it by making the destructor protected. This is on purpose. This way you don't have to worry about deleting objects. There is a link for a tutorial on this, but I cann

[osg-users] Question about memory cleanup (OSG beginner)

2007-02-02 Thread N. Farr
Hello all, I have been looking at the NPS tutorial code and also around the website and cannot find useful mention of how to delete pointers to osg objects. The typical delete osgBox for example produces this error: error C2248: 'osg::Box::Box' : cannot access protected member declared in clas

[osg-users] How to read a Text Document in particle system

2007-02-02 Thread Gina Yan
Hello,   I'm trying to read a .txt file in particle system which contains the grid vertices for my Emitter's placer. I searched the osgDB and couldn't find any function to read .txt file. Could anybody please help me?   Thanks a lot,   Gina   Check out all that glitters with the MSN Entertainment

RE: [osg-users] Disable rotaten axis of the viewer

2007-02-02 Thread Sascha Kuhn
Hi Robert, I calculate the angle in one axis between the view matrix of the actual frame and the frame before. After that I set the viewmatrix about that angle back. Everything works but the geometries are flickering. Is this the wrong way to do this? Thanks Sascha -Original Message-

[osg-users] Re: Multiple models per object?

2007-02-02 Thread Steve Schneider
Thanks, that's just what I was looking for. My field is not graphics, so forgive me if I use a technical term improperly. To restate the challenge in simple terms: Take a model of a standing person. Place it in a scene-graph. One model (or file) of a standing person. Now make the

RE: [osg-users] Write scene graph

2007-02-02 Thread Zach Deedler
Hi Robert, I know what you mean about the TODO list growing. I'm gonna add 'drink beer tonight and forget about TODO list' to my TODO list. I'll give that one a high priority. Now, that I understand how the IVE writer works, I can help out. However, this Stencil ive writing falls low on the pr

Re: [osg-users] Write scene graph

2007-02-02 Thread Robert Osfield
HI Zach, On 2/2/07, Zach Deedler <[EMAIL PROTECTED]> wrote: Hi Robert, Looks like changing a class I had from class entityNodeOsg : osg::Switch to class entityNodeOsg : public osg::Switch results in the IVE writer getting farther. Now, I get Error writing IVE file: StateSet::write(): Unknown

RE: [osg-users] Write scene graph

2007-02-02 Thread Zach Deedler
Hi Robert, Looks like changing a class I had from class entityNodeOsg : osg::Switch to class entityNodeOsg : public osg::Switch results in the IVE writer getting farther. Now, I get Error writing IVE file: StateSet::write(): Unknown StateAttribute: Stencil Looks like osg::Stencil is not suppor

Re: [osg-users] Write scene graph

2007-02-02 Thread Robert Osfield
Hi Zach, On 2/2/07, Zach Deedler <[EMAIL PROTECTED]> wrote: I tried using osg::writeNodeFile() to write out an ive file instead of an osg file. It returns the following error: Error writing IVE file: Uknown node in Group::write() Is it possible to write a scene graph to an ive file? .ive su

Re: [osg-users] Disable rotaten axis of the viewer

2007-02-02 Thread Robert Osfield
Hi Sascha, On 2/2/07, Sascha Kuhn <[EMAIL PROTECTED]> wrote: I want to disable some rotaten axis of the camera. So that I can rotation maybe in only one or two axis with the mouse. I handle with the viewer matrix to set the view, is there a easier way to disable this rotaten axis? The osgGA

[osg-users] Write scene graph

2007-02-02 Thread Zach Deedler
Hello, I tried using osg::writeNodeFile() to write out an ive file instead of an osg file. It returns the following error: Error writing IVE file: Uknown node in Group::write() Is it possible to write a scene graph to an ive file? Thanks. Zach ___

[osg-users] Disable rotaten axis of the viewer

2007-02-02 Thread Sascha Kuhn
hy, I want to disable some rotaten axis of the camera. So that I can rotation maybe in only one or two axis with the mouse. I handle with the viewer matrix to set the view, is there a easier way to disable this rotaten axis? Thanks Sascha ___ osg-us

RE: [osg-users] extension alias configuration file

2007-02-02 Thread Paul Martz
> I do wonder about the security implications of being able to > use plugins, and alias them to new ones with just a couple of > simple env vars. Help me out here, because security's not really my thing. How would using an env var make the current situation any less secure than it already is? As

Re: [osg-users] OpenThreads Build Error

2007-02-02 Thread Donald Tidrow
Get the latest version of OpenThreads and build/install that. Don On Fri, 2007-02-02 at 12:34 -0500, Wasileski, Bryan J. wrote: > Hi, > > I was building the nightly tarball from 02/01 and got the following > build error for OSG. > > undefined reference to > OpenThreads::SetProcessorAffinityOf

[osg-users] OpenThreads Build Error

2007-02-02 Thread Wasileski, Bryan J.
Hi, I was building the nightly tarball from 02/01 and got the following build error for OSG. undefined reference to OpenThreads::SetProcessorAffinityOfCurrrentThread(). I read a few notes on my search that this was corrected/updated as if 01/27. Can anyone fill me in what's happening or if th

Re: [osg-users] extension alias configuration file

2007-02-02 Thread Robert Osfield
Hi Guys, On 2/2/07, Paul Martz <[EMAIL PROTECTED]> wrote: Yes, I've wished this were possible for a while now, but as Robert said, no way to do that without loading all the plugin DLLs. Only solution I could come up with along these lines would be to have each plugin create two DLLs, one that do

Re: [osg-users] rotation (UNCLASSIFIED)

2007-02-02 Thread Robert Osfield
On 2/2/07, Whitfield, John M. (SED/TMI) <[EMAIL PROTECTED]> wrote: Classification: UNCLASSIFIED Caveats: NONE What I really need to do is rotate a three different angles in different planar directions about one axis, how would I use one of those matrix functions to do that. To put it simpler,

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Robert Osfield
Hi Tugkan, On 2/2/07, Tugkan Calapoglu <[EMAIL PROTECTED]> wrote: > A small program that I wrote myself. I attached to the email. Thanks, shame it came though inline. Are you using mozilla's mail tool by any chance? It automatically inlines text files, which makes it at best awkward for extr

RE: [osg-users] extension alias configuration file

2007-02-02 Thread Paul Martz
> I was thinking of going another way. I thought that plugins > might be found by name (i.e., osgdb_*.[dll so]) or relative > location (i.e., > subdirectory) and register themselves. Yes, I've wished this were possible for a while now, but as Robert said, no way to do that without loading all

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Robert Osfield
HI Stephan, On 2/2/07, Stephan Kussmaul <[EMAIL PROTECTED]> wrote: If you should need any more databases for your tests we could provide you those. E.g. this early version of an island we are just working on. You could also use it for presentations and any non-commercial purposes. www.triangraph

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Tugkan Calapoglu
Hi Robert, What tool are you using to monitor and change affinity of the threads? Its sounds something that would be useful. A small program that I wrote myself. I attached to the email. Also when I change the threading modes I don't see much difference in the performance of cull and draw.

RE: [osg-users] rotation (UNCLASSIFIED)

2007-02-02 Thread Whitfield, John M. (SED/TMI)
Classification: UNCLASSIFIED Caveats: NONE What I really need to do is rotate a three different angles in different planar directions about one axis, how would I use one of those matrix functions to do that. To put it simpler, I want to rotate the x-y axis off the z, the y-z off the x, and the

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Robert Osfield
HI Tugkan, On 2/2/07, Tugkan Calapoglu <[EMAIL PROTECTED]> wrote: Hi Robert, Processor affinity works in 9.3. I have a small application that lets me set the affinity of threads from console. With that I made a test. I see two OSG threads in ThreadPerCamera mode ( btw also in thread per context

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Robert Osfield
Earlier I reported that some of the OSG examples were crashing when running with ThreadPerCamera, there were two issues: 1) Deletion of scene graph objects in the update phase while the graphics thread was still using them. The rendering back end only uses C pointers to the scene graph for

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Tugkan Calapoglu
Hi Robert, I have seen this as well when toggling between different threading models. Trying toggling to between SingleThreaded, ThreadPerContext and ThreadPerCamera. What I am seeing is that when cull and draw are happening at the same time the times for each go up. My guess is that the core

Re: [osg-users] drawing a simple segment

2007-02-02 Thread elekis
thanks, On 2/2/07, Robert Osfield <[EMAIL PROTECTED]> wrote: Hi Elekis, There isn't a convenience function for building a single line segment, you'll need to build it up yourself. See the osggeometry example for guidance. Robert. On 2/2/07, elekis <[EMAIL PROTECTED]> wrote: > hi all, > I hav

Re: [osg-users] drawing a simple segment

2007-02-02 Thread Robert Osfield
Hi Elekis, There isn't a convenience function for building a single line segment, you'll need to build it up yourself. See the osggeometry example for guidance. Robert. On 2/2/07, elekis <[EMAIL PROTECTED]> wrote: hi all, I have a little trouble, I try to draw a simple segment, but I have no i

Re: [osg-users] event handling / osgViewer

2007-02-02 Thread Robert Osfield
Hi Drew, You are free to subclass from osgViewer::Viewer or just call things in the order you want to call them - if what frame() does support what you want you can always just call each stage separately. As for you particular need to change the simulation time, I'd suggest having your main loop

Re: [osg-users] rotation (UNCLASSIFIED)

2007-02-02 Thread Robert Osfield
n 2/2/07, Whitfield, John M. (SED/TMI) <[EMAIL PROTECTED]> wrote: Classification: UNCLASSIFIED Caveats: NONE Does anyone know the meaning of the parameters being input in this and other rotation functions? Matrixd osg::Matrixd::rotate ( value_type angle1, const Vec3d & axis1, value_typ

Re: [osg-users] Multiple models per object?

2007-02-02 Thread Robert Osfield
Hi Steve, I'm not clear on the end result you want so will only make general suggestions. osg::Switch and osg::Sequence might be appropriate rather than NodeMaks. Also using an osg::MatrixTransform or similar for the animation, perhaps this is what you are already doing. One can also do animat

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Robert Osfield
Hi Ewe, On 2/2/07, Uwe Woessner <[EMAIL PROTECTED]> wrote: i´ve got two questions regarding the new threading model: Is DataVariance used in any other place already or was it unused until now? When is it safe to change a node from STATIC to DYNAMIC? The Optimizer has been using DataVariance fo

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Robert Osfield
Hi Tugkan, On 2/2/07, Tugkan Calapoglu <[EMAIL PROTECTED]> wrote: I played with osgviewer a little more today. 1- I have two screenshots which are taken with VSYNC enabled (85 Hz refresh rate). Both of them are when the threding setting is ThreadPerCamera. Normally Cull and Draw runs in paralle

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Stephan Kussmaul
Hi Robert, BTW, is there any chance I could get access to your big town model for testing purposes :-) If you should need any more databases for your tests we could provide you those. E.g. this early version of an island we are just working on. You could also use it for presentations and any no

Re: [osg-users] More on Wacon events

2007-02-02 Thread Stephan Maximilian Huber
Cervantes Pintor Pedro schrieb: Hi. Thanks for your answers and I apologise for not been clear enough. I'm using OpenProducer and OSG version 1.2 on OSX (OpenSceneGraph-1.2-2.dmg)Currently Currently, the pen-type is only available when a proximity/enter/leave-event occurs, the pen-type is

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Tugkan Calapoglu
Complementary info for previous email: Intel Core 2 Duo , GF7900GTX , SuSe9.3 , NV Driver 97.46 -- Tugkan Calapoglu VIRES Simulationstechnologie GmbH +49.(0)8031/463641 [EMAIL PROTECTED] ___ osg-users mailing list osg-users@openscenegraph.net http://o

Re: [osg-users] Memory leak in osgText

2007-02-02 Thread Alberto Luaces
Hi, if the memory leaked from _mesa_malloc during a glTexSubImage2D call, it seems more likely to me that it is a Mesa bug during the discarding of the old texture and the compositing of the new one. Just my thoughts ;) Alberto El Viernes, 2 de Febrero de 2007 10:58, Panagiotis Papadakos escr

Re: [osg-users] problem: flt with OpenFlight

2007-02-02 Thread Brede Johansen
Hi Yong, Opcode 101 is the light source record. I believe it's missing in the new OpenFlight plugin. I'll have a look at it this weekend. The warning message about NaN (Not a Number) values in a vertex record has nothing todo with the opcode 101 message. I plan to add better warning messages

Re: [osg-users] Performance teaser... ;-)

2007-02-02 Thread Uwe Woessner
Hi Robert, i´ve got two questions regarding the new threading model: Is DataVariance used in any other place already or was it unused until now? When is it safe to change a node from STATIC to DYNAMIC? Regards, Uwe Robert Osfield wrote: Hi Mark, On 2/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]

[osg-users] drawing a simple segment

2007-02-02 Thread elekis
hi all, I have a little trouble, I try to draw a simple segment, but I have no idea witch is the best idea. what I mean is I have a point A(a1,a2,a3) and a other point B(b1,b2,b3) and I want to draw the segment AB. is there any class who make that??or I have to construct that by myself?? thank

[osg-users] Memory leak in osgText

2007-02-02 Thread Panagiotis Papadakos
There seems to be a memory leak in osgText. The output of valgrind it the following: ==4911== 2,700 bytes in 675 blocks are definitely lost in loss record 214 of 319 ==4911==at 0x40234E8: malloc (vg_replace_malloc.c:207) ==4911==by 0x4B6C874: _mesa_malloc (imports.c:79) ==4911==by 0x

[osg-users] problem: flt with OpenFlight

2007-02-02 Thread Yong LIU
hi, I use osgcluster to open a flt file. 0.97 OSG works well. But int the latest version, flt uses OpenFlight plugin. I suffer the warning information: Unknown record, opcode=101 size=64 Warning: data error detected in VertexCNT::readRecord uv=nan nan OpenFlight doesn't define that opcode, but fl

Re: [osg-users] Embedding YouTube videos in wiki

2007-02-02 Thread Ole-Morten Duesund
Robert Osfield wrote: > On 2/1/07, Jeremy L. Moles <[EMAIL PROTECTED]> wrote: >> What about moving to Subversion? Is that going to be soon after the new >> server!? Oh happy day... > > Subversion is coming :-) Very very nice! Subversion is so much nicer to work with than cvs. Looking forward to i