Search found 4 matches

by Kapitan
Thu Oct 09, 2008 5:09 pm
Forum: Beginners Help
Topic: Mesh from an ISceneNode
Replies: 14
Views: 1079

As mentioned above, you can use getType() to find the actual type before doing a static_cast<> . That would be safe. This is essentially the same as a dynamic_cast<> because of the virtual dispatch that happens. A reinterpret_cast<> would be dangerous, as it might give wrong results in the face of ...
by Kapitan
Wed Oct 08, 2008 5:34 am
Forum: Beginners Help
Topic: Mesh from an ISceneNode
Replies: 14
Views: 1079

Yes it works, i was using the dynamic_cast
keyword and it told me that there were not
the RTTI.

I've switched using the static_cast keyword
and it works.

Now is:

IMeshNode *msn = static_cast<IMeshNode*>(var)
and perfectly found my mesh.
by Kapitan
Sun Oct 05, 2008 3:41 pm
Forum: Beginners Help
Topic: Mesh from an ISceneNode
Replies: 14
Views: 1079

I've tried both (Mesh and AnimatedMesh cast),
but the result is a null pointer...maybe a bug
or my fault....

I'll try again and i'll post some code.
by Kapitan
Sat Oct 04, 2008 5:50 pm
Forum: Beginners Help
Topic: Mesh from an ISceneNode
Replies: 14
Views: 1079

Mesh from an ISceneNode

Hi all!!! I've created my scene on IrrEdit and loaded with loadscene(), but now i have to take the mesh of an ISceneNode (grabbed with getSceneNodeFromId). Is that possible? Here: http://www.irrlicht3d.org/wiki/index.php?n=Main.LoadingAnIRRSceneMadeFromIRREditAndApplyingCollision He serialize the no...