ManualObject in hierarchy

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
frankiezafe
Gnoblar
Posts: 12
Joined: Tue Aug 23, 2016 11:27 am
Location: brussels
Contact:

ManualObject in hierarchy

Post by frankiezafe » Sun Sep 24, 2017 8:08 pm

Hello,

I have the impression that "editable" ManualObject do not take into account parents transformations.

My code is looking like that:

Code: Select all

_origin = _sceneMgr->getRootSceneNode()->createChildSceneNode();
_object = _origin->createChildSceneNode();
_vertices = new Vector3[ vertices_num ];
_mo = sm->createManualObject(SCENE_DYNAMIC);
_mo->begin("BaseWhiteNoLighting", RenderOperation::OT_LINE_STRIP);
_mo->estimateVertexCount(vertices_num);
_mo->estimateIndexCount(vertices_num);
// pushing vertices and indices
_mo->end();
_object->attachObject(_mo);
Once done, I make the _origin of this structure the child of another structure._origin (the parent) and rotate the parent => no effect on ManualObject.

I'd like to keep the opportunity to modify the vertices of the manual object, and also to be able to parent it.

Did I miss something?

Thanks in advance.

PLine class code: https://bitbucket.org/polymorphteam/pe. ... 8f27982ac9
0 x

Post Reply