Re: [osg-users] Question about setting speed/acceleration with AnimationPath

2010-12-03 Thread Nguyen Tien Dat
the speed at the control point as the position, rotation and scale. I'm not really familiar with osgAnimation yet, perhaps it provides support for what you are after. Robert. On Fri, Dec 3, 2010 at 12:44 AM, Nguyen Tien Dat tienda...@gmail.com wrote: Dear all, I need to move an object along a line

[osg-users] Question about setting speed/acceleration with AnimationPath

2010-12-02 Thread Nguyen Tien Dat
Dear all, I need to move an object along a line with the speed of 1m/s. The object starts from stationary (0m/s). I use AnimationPath like this: osg::AnimationPath* animationPath = new osg::AnimationPath; animationPath-setLoopMode(osg::AnimationPath::NO_LOOPING);

[osg-users] Blur while moving/turning

2010-01-21 Thread Nguyen Tien Dat
Dear all, I'm using OpenSceneGraph 2.8.2 with C++, and notice that when I move or turn (by updating the camera position or orientation), the edges of objects are blur. I don't like that effect and would like to disable it. Could anybody tell me how? Thanks, Dat

Re: [osg-users] Blur while moving/turning

2010-01-21 Thread Nguyen Tien Dat
the vertical sync, the frame rate goes up to 480fps (which is surprising to me), but the problem is till there. Do you have any other thought? Thanks, Dat On Thu, Jan 21, 2010 at 4:22 PM, Paul Martz pma...@skew-matrix.com wrote: Nguyen Tien Dat wrote: Dear all, I'm using OpenSceneGraph 2.8.2 with C

Re: [osg-users] Unable to manipulate the node after using AnimationPath

2010-01-18 Thread Nguyen Tien Dat
Thank Robert. It works. Dat On Mon, Jan 18, 2010 at 3:53 AM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Dat, If you are finished with the animation then just remove the animation path callback. Robert. On Fri, Jan 15, 2010 at 7:52 PM, Nguyen Tien Dat tienda...@gmail.com wrote

Re: [osg-users] highlight an object with osgFX::Scribe

2010-01-18 Thread Nguyen Tien Dat
Hi Ulrich, Eventually, I have time to try your project. I use the latest one at http://www.sandbox.de/osg/src/OutlineFX_20091114.tar.gz, but it doesn't work. I don't see the outline around the object when I run your example. I'm successful to compile your Outline project with osgFX, but nothing

Re: [osg-users] highlight an object with osgFX::Scribe

2010-01-18 Thread Nguyen Tien Dat
My version is 2.8.2 On Mon, Jan 18, 2010 at 7:26 PM, Ulrich Hertlein u.hertl...@sandbox.de wrote: Hello Dat, On 19/01/10 7:52 , Nguyen Tien Dat wrote: Eventually, I have time to try your project. I use the latest one at http://www.sandbox.de/osg/src/OutlineFX_20091114.tar.gz, but it doesn't

[osg-users] Unable to manipulate the node after using AnimationPath

2010-01-15 Thread Nguyen Tien Dat
Dear all, I have a scene structure like this: rootNode - matrixTranformNode - objectNode I modify the position and orientation of the object by setting the matrix of the matrixTranformNode and it works well. But the problem appears when I try to use animation path. I create an animation path like

Re: [osg-users] How to get average frame rate after some amount of running time?

2009-12-28 Thread Nguyen Tien Dat
too. Could it be possible to have your application runs with faster frame rate than osgviewer? Thanks, Dat On Thu, Dec 24, 2009 at 10:52 AM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Dat, On Thu, Dec 24, 2009 at 4:09 PM, Nguyen Tien Dat tienda...@gmail.com wrote: Yes, I doubt

Re: [osg-users] How to get average frame rate after some amount of running time?

2009-12-24 Thread Nguyen Tien Dat
Yes, I doubt that this is the refresh rate of the monitor, not the real frame rate. How could I avoid the sync-to-vblank thing, so that I can have the actual frame rate? Thanks, Dat On Wed, Dec 23, 2009 at 2:33 AM, Ulrich Hertlein u.hertl...@sandbox.de wrote: On 23/12/09 12:23 AM, Nguyen Tien

Re: [osg-users] How to get average frame rate after some amount of running time?

2009-12-22 Thread Nguyen Tien Dat
about 60fps. Did I make a mistake somehow? (startTime and endTime are in seconds already) Thanks, Dat On Mon, Dec 21, 2009 at 3:17 AM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Dat, On Sun, Dec 20, 2009 at 8:26 PM, Nguyen Tien Dat tienda...@gmail.com wrote: Dear all, Could you tell me

Re: [osg-users] Why is one object split into two same-level nodes in OSG 2.8.2

2009-11-19 Thread Nguyen Tien Dat
groups, and when converting to the scenegraph, it somehow creates two nodes. If I just ignore smoothing groups (either delete all s ... in the obj file or do not process s command in obj loader) then it should be fine. Dat On Wed, Nov 18, 2009 at 10:03 AM, Nguyen Tien Dat tienda...@gmail.com wrote

[osg-users] get coordinates of intersect point between a Line Segment Intersector and an object

2009-11-19 Thread Nguyen Tien Dat
Dear all, How can I get the coordinates of the intersect point when I shoot a ray to the scene and the ray hits an object? Thanks, Dat ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] highlight an object with osgFX::Scribe

2009-11-12 Thread Nguyen Tien Dat
Hi Ulrich, I don't quite understand your request. Do you need someone to try this out, or you want feedback about how this should be done? Thanks, Dat On Thu, Nov 12, 2009 at 2:15 AM, Ulrich Hertlein u.hertl...@sandbox.de wrote: On 11/11/09 11:40 PM, Nguyen Tien Dat wrote: 2. If the answer

[osg-users] Need help finding examples with osgUtil::LineSegmentIntersector and osgUtil::IntersectionVisitor

2009-11-02 Thread Nguyen Tien Dat
Dear all, Which example in OpenSceneGraph 2.8.2 is using these classes? Thanks, Dat ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-29 Thread Nguyen Tien Dat
Thanks. I'll do that. Dat On Thu, Oct 29, 2009 at 2:58 AM, Ulrich Hertlein u.hertl...@sandbox.de wrote: On 29/10/09 12:27 AM, Nguyen Tien Dat wrote: texture. Do you need to compare all properties of each material in order to find duplicate? Everything except the name ;-D Cheers, /ulrich

[osg-users] How to take out and manipulate an object from an obj model

2009-10-29 Thread Nguyen Tien Dat
Dear all, I have an obj model of a supermarket that contains thousand of objects. I load the model into the scene graph as: osg::Node* loadedModel = osgDB::readNodeFile(supermarket_new.obj); Now I would like to take an object from the whole scene (a coke bottle, for example) and manipulate it. I

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-28 Thread Nguyen Tien Dat
...@sandbox.de wrote: Hi Dat, On 27/10/09 11:53 AM, Ulrich Hertlein wrote: On 27/10/09 2:05 AM, Nguyen Tien Dat wrote: So I have read about .mtl and .obj files and understood what you meant. I created a program to optimize the model (http://cs.uiowa.edu/~tinguyen/OptimizeMtlFiles.rar) Oh and one

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-27 Thread Nguyen Tien Dat
:27 AM, Erik den Dekker e...@dendekker.com wrote: Hi Dat, Maybe I am not seeing something obvious here, but why don't you use the OpenSceneGraph VRML loader instead of taking a detour via 3DS Max and convert to .obj format?   Erik den Dekker On 26-10-2009, at 16:10, Nguyen Tien Dat wrote

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-26 Thread Nguyen Tien Dat
tell me how to do it by hand, that helps too) - What else can I do to load the model in an efficient way? Thank you very much, Dat On Mon, Oct 26, 2009 at 7:33 AM, Ulrich Hertlein u.hertl...@sandbox.de wrote: Hi Dat, On 23/10/09 5:26 PM, tien dat wrote: Dear Ulrich, Could you tell me more

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-26 Thread Nguyen Tien Dat
Tien Dat tienda...@gmail.com wrote: Dear Ulrich, Sorry for my stupidity, but I don't know anything about modifying models. The model is actually created in VRML, and I use 3DS Max to export it to obj format. So if you can, please tell me a bit more about how to optimize the model: - How can you

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-23 Thread tien dat
wrote: On 22/10/09 9:40 PM, tien dat wrote: I have a model in obj format and want to load the model into OpenSceneGraph. When there is no texture, OpenSceneGraph can load the model fine. But when I use the model with texture, OpenSceneGraph allocates a huge amount of memory and crashes. I think

[osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-22 Thread tien dat
Dear all, I have a model in obj format and want to load the model into OpenSceneGraph. When there is no texture, OpenSceneGraph can load the model fine. But when I use the model with texture, OpenSceneGraph allocates a huge amount of memory and crashes. I think it's a runtime bug and would like to

[osg-users] VRML plug-in

2009-10-19 Thread tien dat
Hi all, I need to open a wrl model with OpenSceneGraph, but it doesn't have the right plug-in to do the job. I try to search on internet and find this discussion: http://forum.openscenegraph.org/viewtopic.php?t=3576 (about a month ago). I try to follow the instruction mentioned there but am not

Re: [osg-users] What does this error mean?

2009-06-25 Thread tien dat
for activating other features such as pixel buffers and multisample antialiasing but missing it should otherwise have no adverse effect. I believe the system is being somewhat misleading labeling this condition an error. It is primarily an informational message. Regards, Mark tien dat wrote: Dear all

[osg-users] What does this error mean?

2009-06-24 Thread tien dat
Dear all, I'm using OpenSceneGraph 2.8.1 with my hand-held device (Viliv S5 running WinXP Home Edition SP3). When I run my program using osgviewer, I see an error: Window error #127: [Screen #0] ChooseMatchingPixelFormat() - wglChoosePixelFormatARB extension not found, trying GDI. Reason: the

Re: [osg-users] How to set the resolution for an openscenegraph window

2009-06-23 Thread tien dat
Thank Gordon and Robert. I found that using viewer.setUpViewInWindow(x,y,width,height) was the most convenient way for me, because my program runs in multi-thread mode. Best regards, Dat On Tue, Jun 23, 2009 at 3:28 AM, Robert Osfieldrobert.osfi...@gmail.com wrote: Hi Dat, The various was that

[osg-users] How to set the resolution for an openscenegraph window

2009-06-22 Thread tien dat
Dear all, I need to run OpenSceneGraph on a hand-held device (a Viliv S5) and it has a integrated graphics card only. So I want to reduce the resolution of my application so that the frame rate can be higher (right now it renders images at 1024x600 and runs at 0.5 fps or less). Is there a way to

[osg-users] Stereo with my own model

2009-04-23 Thread tien dat
Dear all, I have a little problem with stereo display. When I run osgviewer with --stereo HORIZONTAL_SPLIT and the cow.osg, it looks great. But when I try to run osgviewer with my own model, it looks weird. It seems that the eye separation is too far (although I'm not sure). I try to change to eye

Re: [osg-users] How to disable the cursor

2009-04-14 Thread tien dat
Thank you Robert, I've got it works now. Awesome. Dat On Tue, Apr 14, 2009 at 12:33 AM, Robert Osfield robert.osfi...@gmail.comwrote: On the graphics window do gw-setCursor(false); See osgcatch or osgstereimage for example usage. On Mon, Apr 13, 2009 at 11:08 PM, tien dat tienda

[osg-users] How to disable the cursor

2009-04-13 Thread tien dat
Hi all, I'm writing my own viewer class inherited from osgViewer class. It works fine except that the cursor doesn't disappear (it does display full screen, that's great). Could any of you tell me how to simply make the cursor disappear? Thank you very much, Dat

[osg-users] plugin to read .jpg files

2009-04-08 Thread tien dat
Dear all, I have a problem with reading .jpg files with OpenSceneGraph (warning: Could not find plugin to read objects from file X.jpg). I see a source file in osgPlugin/jpeg but don't know how to use it. Could you tell me how to compile these files. Thanks, Dat

Re: [osg-users] plugin to read .jpg files

2009-04-08 Thread tien dat
@ overwatch.textron.com __ -- *From:* osg-users-boun...@lists.openscenegraph.org [mailto: osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *tien dat *Sent:* Wednesday, April 08, 2009 3:50 PM *To:* Robert Osfield

Re: [osg-users] How to remove the blue background color

2009-03-26 Thread tien dat
Dear Yun, Corry and Robert, Thank you very much for your help. I tried Yun's suggestion and found that it's the easiest way to do. Just set color to be black and alpha to be 0, and you can have an object floating in the air with augmented display. Best, Dat 2009/3/26 Robert Osfield

[osg-users] How to remove the blue background color

2009-03-25 Thread tien dat
Dear all, I need to remove the blue background color so that I can do augmented display (you can run the cow.osg example to see the blue color). Do any of you know how to do that? Thank you very much, Dat ___ osg-users mailing list

[osg-users] How to capture Keyboard event in OpenSceneGraph

2009-01-20 Thread tien dat
Dear all, I have a very basic question of how to capture key pressed event in OpenSceneGraph. My program is set up like this: osgProducer::Viewer *viewer = new osgProducer::Viewer(); //some more initialization here Producer::KeyboardMouse* km = viewer-getKeyboardMouse();

Re: [osg-users] Stereo with HMD in OpenSceneGraph

2008-12-20 Thread tien dat
, but this is my plan - to migrate all stereo support into the high level class, and then provide configuration file support for it. This will be done well after 2.8. Robert. On Sat, Dec 20, 2008 at 3:37 AM, tien dat tienda...@gmail.com wrote: Hi all, I have a question about controlling stereo with HMD

Re: [osg-users] Stereo with HMD in OpenSceneGraph

2008-12-20 Thread tien dat
translation of the view matrix. Robert. On Sat, Dec 20, 2008 at 6:43 PM, tien dat tienda...@gmail.com wrote: Hi Robert, I don't totally agree with your answer. In these two functions computeRightEyeViewImplementation() and computeLeftEyeViewImplementation(), you do use iod, screen distance

[osg-users] Stereo with HMD in OpenSceneGraph

2008-12-19 Thread tien dat
Hi all, I have a question about controlling stereo with HMD in OpenSceneGraph. Basically to setup stereo display you need the distance of two eyes and the convergence angle. When I take a look at OpenSceneGraph code for setting up stereo with HMD, I see two other variables which are screen