Hi Jean-Sebastien,

In order to see buttons in osganimationviewer you need to unpack http://www.plopbyte.net/tmp/osgAnimation-data.tar.gz in the directory of osg-data (or in the same directory of the .exe) else you will not see the buttons. So it's normal, it will be not a problem when commited in the osg-data repository. I know that in the avatar sample there are textures like f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/brow.l.tga but i did not know it will be a problem like doing an error disk ???? it's weird.

I fixed the missing OSGANIMATION_EXPORT for Bone, and the setupViewInWindow.

I recommand the nathan model as sample, it's a good sample. But you will understand better when using images buttons in the viewer ;)

Thanks for your help

Cheers,
Cedric


Jean-Sébastien Guay wrote:
Hi Cedric,

Waiting for the examples to compile, I'll check back in with the results soon.

There's a missing OSGANIMATION_EXPORT on the osgAnimation::Bone::UpdateBone class.

With that added, all compiles correctly.

Running

  osganimationviewer osgAnimation/example.osg

gives a window with buttons at the bottom. If I click on the 2 left-most buttons some text comes in and fades out. If I click on the right-most button, a box in the bottom right corner comes in, and if I click on it again it goes out of the screen. Is that the expected behavior?

I tried running

  osganimationviewer osgAnimation/avatar.osg

but I get a "disk error", and debugging I see that it's looking for a file called

  "f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/brow.l.tga"

Those paths should probably be relative to the .osg file?

I didn't check other files in the .tar.gz.

One comment I have which applies to the osgWidget examples too (and I've said this before, when testing the osgWidget examples): the window shows up with its title bar outside the screen. It's very annoying. In general, don't use

  viewer.setUpViewInWindow(0, 0, WIDTH, HEIGHT);

and just let the viewer set itself up, or use

  viewer.setUpViewInWindow(50, 50, WIDTH, HEIGHT);

so that it comes up in a sane place on the screen. (but I really suggest to not use it, so that the user can use command-line args or environment variables to set where the viewer will show up if he wants)

J-S

--
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:[EMAIL PROTECTED] 
http://www.plopbyte.net


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to