[osg-users] Animation Morphing

2011-04-29 Thread Anastasia Papas
Hello!

I am trying amimation morphing in OSG, and I found this example:

http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osganimationmorph/osganimationmorph.cpp

I have collada 3D models, and since this example is morphing between 2 osg 
models, I used the osgDB::writeNodeFile to save the dae (after importing them 
to a node) as an osg file.

The osg files are working even better than the initial collada files with the 
osgviewer, for instance for the dae when I was zooming in, translating or 
rotating, after a point some parts were disappearing, but now with the osg it 
renders perfectly, and textures included!

But the problem is when I use it for the osganimationmorph, I get an Unhandled 
exception...

Does anyone have an idea of how I should proceed?

Thank you in advance,

Anastasia

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





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


Re: [osg-users] Animation Morphing

2011-04-29 Thread Anastasia Papas
and the stack trace:

kernel32.dll!7c812afb() 
[Frames below may be incorrect and/or missing, no symbols loaded for 
kernel32.dll]  
kernel32.dll!7c812afb() 
   osg73-osgd.dll!osg::Geode::computeBound()  Line 192 + 0x16 bytes
 C++
osg73-osgd.dll!osg::Node::getBound()  Line 366 + 0x13 bytes C++
osg73-osgd.dll!osg::Group::computeBound()  Line 357 + 0x16 bytes
C++
osg73-osgd.dll!osg::Node::getBound()  Line 366 + 0x13 bytes C++
osg73-osgGAd.dll!osgGA::StandardManipulator::setNode(osg::Node * 
node=0x01da6ad0)  Line 77 + 0x18 bytes C++
osg73-osgViewerd.dll!osgViewer::View::assignSceneDataToCameras()  Line 
1898 + 0x21 bytesC++
osg73-osgViewerd.dll!osgViewer::View::setSceneData(osg::Node * 
node=0x01da6ad0)  Line 307   C++
osg73-osgViewerd.dll!osgViewer::Viewer::setSceneData(osg::Node * 
node=0x01da6ad0)  Line 414 C++
Template.exe!main(int argc=1, char * * argv=0x018d47c8)  Line 120 + 
0x15 bytes  C++
Template.exe!__tmainCRTStartup()  Line 582 + 0x19 bytes C
Template.exe!mainCRTStartup()  Line 399 C
kernel32.dll!7c817077() 
msvcr90d.dll!_vcprintf_s_l(const char * format=0xf0e28100, 
localeinfo_struct * plocinfo=0x2d7f, char * argptr=0x3ff0)  Line 2293 + 
0x8d bytes   C++
0004f983()

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





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


Re: [osg-users] Animation Morphing

2011-04-29 Thread Anastasia Papas
Dear Cedric,

First of all thank you for the direct response!!

The message I receive is this:

Unhandled exception at 0x7c812afb in Template.exe: Microsoft C++ exception: 
std::bad_cast at memory location 0x0012f650..

And it crashes at the:
Geode.cpp

at the function: 
BoundingSphere Geode::computeBound() const

at the line inside the for loop:
_bbox.expandBy((*itr)-getBound());

Regarding the initial example's code I didn't modify anything else, just 
changed the osg files to mine.

Thanks again!!

Regards,

Anastasia

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





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


Re: [osg-users] Animation Morphing

2011-04-29 Thread Anastasia Papas
Dear Cedric,

Thank you very much for helping me!!

The code is exactly as the original, only change is the file names! But I am 
attaching it anyway!

Also I forgot to mention, the number of vertices is exactly the same for both 
files, as well as the number of drawables and so on, at least according to the 
osgviewer stats!

I am uploading it here, along with the two osg files, and also I am including 
the directories of the textures, don't know if it's necessary but in any case 
it's there!

My files are too large to be attached here, so I used an uploader service:

http://www.teicrete.gr/upload/download.php?fname=UP20110429203940.rar


Thanks again!

Best Regards,

Anastasia

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





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


Re: [osg-users] Animation Morphing

2011-04-29 Thread Anastasia Papas
Hi Cedric,

Once again thank you for taking the time to look into my issue!!

To be honest I don't really understand what you are saying :-/
Is there any related tutorial or example so that I can take an idea?

Thanks again!!

Anastasia

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





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


Re: [osg-users] [osgPlugins] osg Dae plugin error: Texture coordinate set 0 not found

2011-04-14 Thread Anastasia Papas
To Sukender: thank you for your concern, but indeed your file has been removed, 
at least for me, this is the message displayed at the thread you provided where 
I guess the file was: The Extension '7z' was deactivated by an board admin, 
therefore this Attachment is not displayed.

For the collada textures problem:
I uninstalled and install all OSG modules and dependencies from the begining. 
Instead of using collada-dom libraries in my project linker I used now the 
prebuilt dependency package provided at the 
http://www.openscenegraph.org/projects/osg/wiki/Downloads/Dependencies

All works OK now! All textures are there!

Thanks again!

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





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


Re: [osg-users] [build] error LNK2019: unresolved external symbol __declspec(dllimport)

2011-04-14 Thread Anastasia Papas
Hi, I am also getting a similar error for another lib, although I have added it 
at the linker input, when I build I get:

libboost_system-vc90-mt.lib(error_code.obj) : error LNK2019: unresolved 
external symbol __imp___invalid_parameter_noinfo referenced in function 
public: virtual class std::basic_stringchar,struct 
std::char_traitschar,class std::allocatorchar  __thiscall `anonymous 
namespace'::system_error_category::message(int)const  
(?message@system_error_category@?A0xa386b881@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)

I found somewhere that this can be solved if we remove the msvcrt.lib from the 
Ignore Specific Library in Linker Input. I did that, but then although it 
builds, and I just get a warning:
warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use 
/NODEFAULTLIB:library

But my project throws an exception:
Unhandled exception at 0x7c812afb in Template.exe: Microsoft C++ exception: 
std::bad_alloc at memory location 0x0012f32c..

And breaks at the file malloc.c at the command:
return HeapAlloc(_crtheap, 0, size ? size : 1);

I also found somewhere else to check the C/C++ - Code Generation -Runtime 
Library to be set Multi-threaded Debug DLL (/MDd) for Debug Mode and the 
equivalent for Release, and checked both my project, and the OSG installation 
project I used, and they are both set the same as this, so it's not that...

Does anyone have any other idea of how I could solve this error LNK2019: 
unresolved external symbol ?

Thank you!

Anastasia

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





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


Re: [osg-users] [build] error LNK2019: unresolved external symbol __declspec(dllimport)

2011-04-14 Thread Anastasia Papas
WOW! Silly me :-/ I am such a newbie :-D 

I was using all of the libs in both modes (e.g. osg.lib and osgd.lib) I guess I 
shouldn't have had!!

I removed the ones without -d in the ending, and now everything links, compiles 
and RUNS!! Well until next bug comes across ;-)

Thank you so much!!!

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





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


Re: [osg-users] [osgPlugins] osg Dae plugin error: Texture coordinate set 0 not found

2011-04-12 Thread Anastasia Papas
I guess you're right.. I am not really experienced, that's why I am so stuck on 
this :-(

Where can I find the source files you submitted ?

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





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


Re: [osg-users] [osgPlugins] osg Dae plugin error: Texture coordinate set 0 not found

2011-04-11 Thread Anastasia Papas
Hello Sukender,

Thank you very much for your reply! I went through my collada file and all I 
found related to either unit which you suggested should change are the 
following two lines:

unit name=inch meter=0.0254/

wire_units0/wire_units


And then I looked for texture too:


texture texture=V4SmplTorsoM_BKN_jpg-sampler texcoord=CHANNEL1/

bind_vertex_input semantic=CHANNEL1 input_semantic=TEXCOORD input_set=0/

input semantic=TEXCOORD source=#geom-Victoria_4.2-map1 offset=2 set=0/

I don't know to which of all you were refering that should change, but anyway 
all of the are set to 0.

Please help me, I am really stack on this for long time and I have no idea how 
to fix it :-/ I really need my textures :-|

Thank you once again for your time!!

Best Regards,

Anastasia

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





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


Re: [osg-users] [osgPlugins] osg Dae plugin error: Texture coordinate set 0 not found

2011-04-10 Thread Anastasia Papas
Hi!

I am facing the same problem, only difference I am using an export from 3ds max!

Did you finally solve this problem and how?

Thank you anyways!!

Anastasia

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





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


Re: [osg-users] osg 2.9.11 and FBX 2011.3, osg build link problem

2011-02-02 Thread Anastasia Papas
I am facing the exact same problem :-/
Any solution yet???

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





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