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
Posts: 12
Joined: Tue Aug 23, 2016 11:27 am
Location: brussels

ManualObject in hierarchy

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


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);
// pushing vertices and indices
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: ... 8f27982ac9
0 x

Post Reply