OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

osgAnimation

Goto page 1, 2  Next
 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Cedric Pinson
Guest





PostPosted: Wed Nov 05, 2008 2:08 pm    Post subject:
osgAnimation
Reply with quote

Hi All,

I commited all work of animtk in osgAnimation, so now you should be able
to compile the few example and run the osganimationviewer with some
examples files. I remember the repository to get the branch with
osgAnimation:
svn co
http://www.openscenegraph.org/svn/osg/OpenSceneGraph/branches/OpenSceneGraph-osgWidget-dev/
or
hg clone http://hg.plopbyte.net/osg-branch/

i made a new repository for the blender exporter, now you can get it
like that, it's easy to install follow the instructions
hg clone http://hg.plopbyte.net/osgexport

I put some osg files ready to use with the osganimationviewer as
example, i guess those files could go in osg-data in futur.
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/Jansens.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/nathan.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/avatar.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/example.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/robot.osg

or get the file http://www.plopbyte.net/tmp/osgAnimation.tar.gz

If somes could test on windows, it would be helpful

Cheers,
Cedric

--
+33 (0) 6 63 20 03 56 Cedric Pinson mailto:mornifle@plopbyte.net http://www.plopbyte.net




------------------
Post generated by Mail2Forum
Back to top
Cedric Pinson
Guest





PostPosted: Wed Nov 05, 2008 2:17 pm    Post subject:
osgAnimation
Reply with quote

Hi,
I forget to mention you have to unpack
http://www.plopbyte.net/tmp/osgAnimation-data.tar.gz in osg-data
directory, because it's not yet in the repository.
It contains the bitmap for the interface of the osganimationviewer, it
will work if you dont do it, you will just dont see the button images.

Robert,
can i put files in the svn osg-data ? am i allowed to do that ?

Cheers,
Cedric

Cedric Pinson wrote:
Quote:
Hi All,

I commited all work of animtk in osgAnimation, so now you should be
able to compile the few example and run the osganimationviewer with
some examples files. I remember the repository to get the branch with
osgAnimation:
svn co
http://www.openscenegraph.org/svn/osg/OpenSceneGraph/branches/OpenSceneGraph-osgWidget-dev/

or
hg clone http://hg.plopbyte.net/osg-branch/

i made a new repository for the blender exporter, now you can get it
like that, it's easy to install follow the instructions
hg clone http://hg.plopbyte.net/osgexport

I put some osg files ready to use with the osganimationviewer as
example, i guess those files could go in osg-data in futur.
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/Jansens.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/nathan.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/avatar.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/example.osg
osganimationviewer http://www.plopbyte.net/tmp/osgAnimation/robot.osg

or get the file http://www.plopbyte.net/tmp/osgAnimation.tar.gz

If somes could test on windows, it would be helpful

Cheers,
Cedric


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




------------------
Post generated by Mail2Forum
Back to top
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Wed Nov 05, 2008 2:26 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

Quote:
If somes could test on windows, it would be helpful

Grabbed the SVN branch, compiling now. I'll keep you posted.

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Robert Osfield
Guest





PostPosted: Wed Nov 05, 2008 2:33 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

On Wed, Nov 5, 2008 at 2:16 PM, Cedric Pinson <> wrote:
Quote:
Robert,
can i put files in the svn osg-data ? am i allowed to do that ?

It depends upon what Jose gave your permission for. I believe it's
just the branches section of the OpenSceneGraph repository, not the
OpenSceneGraph-Data.

I can easily add them to OpenSceneGraph-Data.

I have a chunk of work to complete right now, but once this is done
I'll pull down the osgWidget branch and test your examples and get the
data checked in.

Robert.


------------------
Post generated by Mail2Forum
Back to top
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Wed Nov 05, 2008 2:34 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

Quote:
Grabbed the SVN branch, compiling now. I'll keep you posted.

I get this error when configuring with CMake:


CMake Warning (dev) at CMakeModules/OsgMacroUtils.cmake:244
(ADD_EXECUTABLE):
Policy CMP0002 is not set: Logical target names must be globally unique.
Run "cmake --help-policy CMP0002" for policy details. Use the
cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeModules/OsgMacroUtils.cmake:298 (SETUP_EXE)
examples/osganimationnode/CMakeLists.txt:8 (SETUP_EXAMPLE)
This warning is for project developers. Use -Wno-dev to suppress it.


examples/osganimationnode/CMakeLists.txt line 8 is:

SETUP_EXAMPLE(osganimationmakepath)

but I don't see any other place where osganimationmakepath is used, so I
can't see why it would not be unique... Any ideas?

For now I just ignored the error and generated the project files anyway,
it's compiling now.

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Cedric Pinson
Guest





PostPosted: Wed Nov 05, 2008 2:44 pm    Post subject:
osgAnimation
Reply with quote

Hi Jean Sebastien
I guess it's because there are two examples in the same directory. I
could split it if necessary.

Cheers,
Cedric

Jean-Sébastien Guay wrote:
Quote:
Hi Cedric,

Quote:
Grabbed the SVN branch, compiling now. I'll keep you posted.

I get this error when configuring with CMake:


CMake Warning (dev) at CMakeModules/OsgMacroUtils.cmake:244
(ADD_EXECUTABLE):
Policy CMP0002 is not set: Logical target names must be globally
unique.
Run "cmake --help-policy CMP0002" for policy details. Use the
cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeModules/OsgMacroUtils.cmake:298 (SETUP_EXE)
examples/osganimationnode/CMakeLists.txt:8 (SETUP_EXAMPLE)
This warning is for project developers. Use -Wno-dev to suppress it.


examples/osganimationnode/CMakeLists.txt line 8 is:

SETUP_EXAMPLE(osganimationmakepath)

but I don't see any other place where osganimationmakepath is used, so
I can't see why it would not be unique... Any ideas?

For now I just ignored the error and generated the project files
anyway, it's compiling now.

J-S

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




------------------
Post generated by Mail2Forum
Back to top
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Wed Nov 05, 2008 2:47 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

Quote:
I guess it's because there are two examples in the same directory. I
could split it if necessary.

I'll try that locally and see if it makes things better.

A few other problems:
_______________________________________________

In include/osgAnimation/Export:

#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) ||
defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# if defined( OSG_LIBRARY_STATIC )
# define OSGANIMATION_EXPORT
# elif defined( OSGANIMATION_LIBRARY )
# define OSGANIMATION_EXPORT __declspec(dllexport)
# else
# define OSGANIMATION_EXPORT __declspec(dllimport)
#endif
#else
#define OSGANIMATION_EXPORT
#endif

Did you mean to use OSG_LIBRARY_STATIC, but OSGANIMATION_LIBRARY?
Perhaps both should be OSG_*, or both should be OSGANIMATION_*? And the
src/osgAnimation/CMakeLists.txt defines -DOSG_LIBRARY but not
-DOSGANIMATION_LIBRARY. So I get "inconsistent DLL linkage" warnings,
and it will later not link when it comes to linking executables.

Using OSG_LIBRARY in the defined() tests works, but perhaps you want to
name it differently for OSGANIMATION. Just make sure it's defined in the
CMakeLists.txt and that it's consistent.
_______________________________________________

In src/osgAnimation/Timeline.cpp:

void RunTimeline::RunTimeline::operator()(Timeline* timeline)

should be:

void RunTimeline::operator()(Timeline* timeline)
_______________________________________________

In src/osgAnimation/AnimationManager.cpp:

On Windows, sys/time.h does not exist. You should probably use
osg::Timer for this, it already uses gettimeofday on Linux and
QueryPerformanceCounter on Windows, so it will work cross-platform.
_______________________________________________

That's it for now, I'll wait till these are fixed before continuing. Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Wed Nov 05, 2008 2:50 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

Quote:
Quote:
I guess it's because there are two examples in the same directory. I
could split it if necessary.

I'll try that locally and see if it makes things better.

Yep, that worked. The error is gone. Could you do that please?

Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Cedric Pinson
Guest





PostPosted: Wed Nov 05, 2008 2:57 pm    Post subject:
osgAnimation
Reply with quote

Hi Jean Sebastien,

Thank you for the report i will fix that

Cheers,
Cedric

Jean-Sébastien Guay wrote:
Quote:
Hi Cedric,

Quote:
Quote:
I guess it's because there are two examples in the same directory. I
could split it if necessary.

I'll try that locally and see if it makes things better.

Yep, that worked. The error is gone. Could you do that please?

Thanks,

J-S

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




------------------
Post generated by Mail2Forum
Back to top
Cedric Pinson
Guest





PostPosted: Wed Nov 05, 2008 3:47 pm    Post subject:
osgAnimation
Reply with quote

Hi Jean-Sebastien,

I fixed the issue it compiles fine on my plateform. Can you try on windows ?

Cheers,
Cedric

Jean-Sébastien Guay wrote:
Quote:
Hi Cedric,

Quote:
Quote:
I guess it's because there are two examples in the same directory. I
could split it if necessary.

I'll try that locally and see if it makes things better.

Yep, that worked. The error is gone. Could you do that please?

Thanks,

J-S

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




------------------
Post generated by Mail2Forum
Back to top
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Wed Nov 05, 2008 4:10 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

Quote:
I fixed the issue it compiles fine on my plateform. Can you try on
windows ?

Good preliminary result:

1>osgAnimation - 0 error(s), 0 warning(s)

Smile

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

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Jeremy Moles
Guest





PostPosted: Wed Nov 05, 2008 4:15 pm    Post subject:
osgAnimation
Reply with quote

On Wed, 2008-11-05 at 11:10 -0500, Jean-S?©bastien Guay wrote:
Quote:
Hi Cedric,

Quote:
I fixed the issue it compiles fine on my plateform. Can you try on
windows ?

Good preliminary result:

1>osgAnimation - 0 error(s), 0 warning(s)

:-)

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

I just checked in a bug fix to the viewer; you'll want to get this
before trying it out. Smile So, be sure and rebuild quick after running
'svn update' :)

Quote:
J-S



------------------
Post generated by Mail2Forum
Back to top
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Wed Nov 05, 2008 5:03 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

Quote:
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
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Robert Osfield
Guest





PostPosted: Wed Nov 05, 2008 5:36 pm    Post subject:
osgAnimation
Reply with quote

Hi Cedric,

I've pulled down your .osg and image files and have started testing.
Most of the .osg files do things, but the example.osg just seems to be
a static box. The avatar.osg also references textures that you
haven't supplied.

grep file *.osg
avatar.osg: file
"F:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/skin.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/brow.l.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/nose.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/mouth.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/eye.l.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/brow.l.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/eye.l.tga"
avatar.osg: file
"F:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/skin.tga"
avatar.osg: file
"F:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/dark_grey.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/red.tga"
avatar.osg: file
"F:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/dark_grey.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/red.tga"
avatar.osg: file
"f:/Sync_to_H-Drive/Animation_Jobs/Plopbyte/Blend/Textures/red.tga"

Could you provide these files?

What is the license associated with these models?

Cheers,
Robert.


------------------
Post generated by Mail2Forum
Back to top
Cedric Pinson
Guest





PostPosted: Wed Nov 05, 2008 5:38 pm    Post subject:
osgAnimation
Reply with quote

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 Wink

Thanks for your help

Cheers,
Cedric


Jean-Sébastien Guay wrote:
Quote:
Hi Cedric,

Quote:
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: http://www.plopbyte.net




------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Happy New Year to all OSG Users Chris Hanson General 0 Mon Jan 07, 2019 10:17 am View latest post
No new posts osg-users Digest, Vol 138, Issue 27 Zachary1234 General 0 Tue Jan 01, 2019 1:16 am View latest post
No new posts osg-users Digest, Vol 137, Issue 14 poweruserm@live.com.au General 0 Fri Nov 16, 2018 11:16 pm View latest post
No new posts General Users starting questions in O... A Z General 1 Mon Oct 15, 2018 3:59 am View latest post
No new posts osg-users Digest, Vol 136, Issue 8 jonasydy General 0 Wed Oct 10, 2018 12:40 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP