Re: [osg-users] transparency becomes dark

2008-07-26 Thread Ulrich Hertlein
Hi Dieter, Dieter Pfeffer wrote: I am trying to set the object transparency from 1.0 - 0.0 and vice versa; but when I start changing the alpha of the material the object becomes dark. I have changed the material parameters but without success; when I look in the loaded model (for example

Re: [osg-users] computeIntersections works very strange

2008-07-26 Thread GMD GammerMaxyandex.ru
Hi, Robert. Described problem appears randomly. It doesn’t appear in planes and in other objects it happens randomly, but in constant places. I mean if cursor falls near one point of object (hlist is empty) it will falls there again and again. It looks like objects have some defined holes

Re: [osg-users] osg::Image::update?

2008-07-26 Thread Robert Osfield
Hi Hartmut, On Sat, Jul 26, 2008 at 2:02 AM, Hartmut Seichter [EMAIL PROTECTED] wrote: Well, osgART has a number of PlugIns implementing their own osgART::VideoImageStream which implements update slightly different. But I am happy to quickly change things over as we are targeting the latest

Re: [osg-users] How to read out the coordinate info from model files

2008-07-26 Thread Robert Osfield
Hi Fangqin, There is no extra coordinate stored in the scene graph when loading from 3ds files. Robert. On Sat, Jul 26, 2008 at 5:31 AM, TANG Fangqin [EMAIL PROTECTED] wrote: Hi all, I'm trying to import some 3ds models (using osgDB::readNodeFile) into an osg programme. Now the problem is

Re: [osg-users] computeIntersections works very strange

2008-07-26 Thread Robert Osfield
Hi Max, I'm just heading off for a week, so while it would be good that I could repair, there is absolutely no chance that I will. Yourself and others will have to look into this issue. You'll need to try and help pin down the failure more than just randomly as this won't help others recreate

[osg-users] So long, farwell and thanks for all the fish

2008-07-26 Thread Robert Osfield
Hi All, I'm just heading out on my family holiday, to go explore the wild life in the Highlands of Scotland. I'll be home on the Sunday next weekend, and might even briefly pop in to catch up w' you all. Good luck with testing, fixing and generally being great fellows :-) Robert.

Re: [osg-users] Compile error on Solaris10/SunStudio11

2008-07-26 Thread Martin Spott
Robert Osfield wrote: The missing return was fixed yesterday. Today the function is now moved in to the osgDB, but this shouldn't effect the build. Ok, compiles nicely now, I'll try to follow the -rc packages, Martin. -- Unix _IS_ user friendly - it's just selective about who its

[osg-users] ref_ptr, ptr and leaking question (quite simple)

2008-07-26 Thread Ariasgore
Hello, I have some novoice question about the use of pointers as short-time reference. As in the tutorial book described all objects deriving from osg::Referenced should be used with ref_ptr for proper use. But even in the book and in some tutorials there are many uses of the plain c++ pointer

Re: [osg-users] ref_ptr, ptr and leaking question (quite simple)

2008-07-26 Thread Maciej Krol
Hi Sam, Constructor of osg::Geode does not increment ref count, since objects can be allocated either on heap or stack. The osg::ref_ptr manages ref count of object. Ref count is incremented in constructor or assignment operator of ref_ptr and decremented in its desctructor. osg::Geode *g = new

Re: [osg-users] How to read out the coordinate info from model files

2008-07-26 Thread Gordon Tomlinson
As Robert says there are no stored coordinates You could write a node visitor to traverse the tree of node of your 3ds model once it has loaded and walk thru all the bounding boxes to calculate a center for the 3d model. But his would be the center of the geometry, and not necessarily what he

[osg-users] setViewMatrixAsLookAt where is center?

2008-07-26 Thread Ariasgore
Hello, I was trying to use the setViewMatrixAsLookAt matrix like I would use gluLookAt (since they are similar), my intention is to create a rotation around a point. So first I selected the eye position which should be (0,-25,25) and wanted to point the camera towards (0,0,0) where my object

Re: [osg-users] ref_ptr, ptr and leaking question (quite simple)

2008-07-26 Thread Gordon Tomlinson
Hi No leak, the reference count is Zero after you create the instance The count is only incremented when you add the instance to a parent So in your example below the count will be 1 after viewer.setSceneData(g) ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [osg-users] setViewMatrixAsLookAt where is center?

2008-07-26 Thread Peter Wraae Marino
Hi Ariasgore, are you sure you want a up vector 0,1,0 ? osg uses z up 0,0,1 but of course if you have changed the coordinate system then it's ok. my two cents, Peter http://osghelp.com On Sat, Jul 26, 2008 at 5:04 PM, Ariasgore [EMAIL PROTECTED] wrote: Hello, I was trying to use the

[osg-users] Recognizing currently seen polygons / vertices?

2008-07-26 Thread Ariasgore
Hello, I am trying to render a scene and then recognize all currently seen polygons (or even vertices) of a loaded model. I require not only the node precision but polygons or better vertices. Basically I believe (but do not know) that I need to get hold of the z-buffer after a successfull

[osg-users] locking 3d text in front of camera

2008-07-26 Thread Joe Lyga
Hi osg-users. I'm kind of new to openscenegraph and 3d programming, and I'm having a problem. I'm trying to position a 3d text object to be in a fixed position directly in front of the camera, so it's always in the same position in the lower left corner of the screen. It would be much easier to

[osg-users] Optimizer options oddity

2008-07-26 Thread Glenn Waldron
I noticed that two of the OptimizerOptions values, COPY_SHARED_NODES and FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS, have the same enum value (0x100). Is this intentional? This is in 2.6 RC1. Glenn -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791

Re: [osg-users] locking 3d text in front of camera

2008-07-26 Thread Gordon Tomlinson
Look around the osgHud examples and search mail archive for previous post it may help you get what you want __ Gordon Tomlinson Email : [EMAIL PROTECTED] YIM/AIM : gordon3dBrit MSN IM : [EMAIL PROTECTED] Website :

Re: [osg-users] [osg-submissions] Matrixf multiply Optimization

2008-07-26 Thread Gordon Tomlinson
Can you not use an alignment #pragma around the struct to force alignment size ? #pragma pack( push, 16 ) union { struct { __m128 _R0,_R1,_R2,_R3; }; value_type _mat[4][4]; } #pragma pack( pop ) __ Gordon

Re: [osg-users] osg::Image::update?

2008-07-26 Thread Hartmut Seichter
Robert Osfield wrote: Hi Hartmut, On Sat, Jul 26, 2008 at 2:02 AM, Hartmut Seichter [EMAIL PROTECTED] wrote: Well, osgART has a number of PlugIns implementing their own osgART::VideoImageStream which implements update slightly different. But I am happy to quickly change things over as we