[osg-users] Text (keyboard input) on viewer

6 views
Skip to first unread message

Jesús Martín

unread,
Jun 4, 2010, 6:15:35 AM6/4/10
to osg-...@lists.openscenegraph.org
Hi,

I have created a model with its animations textures... and all its stuff. Well It doesn't matter. The point is that what I want to do is input text with keyboard, and after that, use that text within a voice synthetizer.

Would be like a console that appears on the viewer when you press one key (by example F6). Then you type a phrase, press enter and that text is saved on a string.
Afterwards that string is used with SAPI (but that's neither the point)

So, is there an easy way to do something like that (I don't know, libraries...)? How?
I'm using OsgCal, Osg viewer, Osg Producer...

Thank you!

Cheers,
Jesuskiewicz

PD: Excuse my poor English, but my English teachers are Kramer and George Constanza, Seinfeld, Elaine, Sheldon Cooper...

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28575#28575

_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Robert Osfield

unread,
Jun 7, 2010, 6:00:38 AM6/7/10
to osg-...@lists.openscenegraph.org
Hi Jesus,

Have a look at osgWidget NodeKit and the associate osgwidget* examples.

Robert.

2010/6/4 Jesús Martín <jmma...@hotmail.com>:

Jesús Martín

unread,
Jun 7, 2010, 10:35:43 AM6/7/10
to osg-...@lists.openscenegraph.org
Thanks Robert

I'm using OSG 1.2 with a Cal3D model, so I use OsgCal, osgProducer... that aren't on Osg 2.8.

Is It possible to load a Cal3D model on Osg 2.8? or
Is It possible to work with osgWidget on Osg 1.2?

------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=28646#28646

Trajce (Nick) Nikolov

unread,
Jun 7, 2010, 10:46:40 AM6/7/10
to osg-...@lists.openscenegraph.org
Is It possible to load a Cal3D model on Osg 2.8?

yes

-Nick


2010/6/7 Jesús Martín <jmma...@hotmail.com>

Jesús Martín

unread,
Jun 7, 2010, 10:59:45 AM6/7/10
to osg-...@lists.openscenegraph.org
Thanks Nick, but ... could you give me any clue in order to learn how to do it?

Note: I use VS2005

------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=28649#28649

Trajce (Nick) Nikolov

unread,
Jun 7, 2010, 11:02:05 AM6/7/10
to osg-...@lists.openscenegraph.org
you need to download cal3d, then osgCal - with osgCal there is a sample code how to load cal3d model and manipulate the animations. But, the fashion nowdays is to use FBX I think for character animations

-Nick


2010/6/7 Jesús Martín <jmma...@hotmail.com>
Thanks Nick, but ... could you give me any clue in order to learn how to do it?

Michael Platings

unread,
Jun 7, 2010, 11:09:19 AM6/7/10
to OpenSceneGraph Users
On 7 June 2010 16:02, Trajce (Nick) Nikolov <nikolov...@gmail.com> wrote:
But, the fashion nowdays is to use FBX I think for character animations

Or COLLADA DAE if you prefer not to rely on a closed-source, poorly documented, slow, bug-ridden library for your file loading ;)

Jesús Martín

unread,
Jun 7, 2010, 11:28:00 AM6/7/10
to osg-...@lists.openscenegraph.org
The fashion, the speed... ok, it's all fine but I have already done a Cal3D model, with the animations for the visemes and the code to use it with Sapi. So, althought It's giving me lots of problems (like unexpected deforming meshes on animation, unexpecting crashes when I'm exporting...)... If I'm always changing the engine, I'll never finish it. I thing that to begin again to learn how to use (from the exporting) library (Collada) It's not a good idea.

When I have change Osg 1.2 to osg 2.8 my project crashes on build when It's linking

error LNK2001: unresolved external symbol "public: virtual class osg::BoundingSphere __thiscall osg::Geode::computeBound(void)const " (?computeBound@Geode@osg@@$$FUBE?AVBoundingSphere@2@XZ)
1>TTSHandler.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall osg::Geode::removeDrawable(unsigned int,unsigned int)" (?removeDrawable@Geode@osg@@UAE_NII@Z)
1>TTSHandler.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall osg::Geode::removeDrawable(unsigned int,unsigned int)" (?removeDrawable@Geode@osg@@$$FUAE_NII@Z)

Jesús Martín

unread,
Jun 8, 2010, 10:38:28 AM6/8/10
to osg-...@lists.openscenegraph.org
Hi, again.

I have already seen that osganimation can do all things that osgCal does, but, I can't find an example where a Cal3d model is loaded, anyone any idea?

Thanks for your time

------------------
Read this topic online here:

http://forum.openscenegraph.org/viewtopic.php?p=28689#28689

Trajce (Nick) Nikolov

unread,
Jun 8, 2010, 10:43:22 AM6/8/10
to osg-...@lists.openscenegraph.org
get osgCal ....... there you will see the code

-Nick


2010/6/8 Jesús Martín <jmma...@hotmail.com>
Reply all
Reply to author
Forward
0 new messages