[Interest] Qt3D - Bounds of visible entities
Andy
asmaloney at gmail.com
Sun Mar 26 01:51:48 CET 2017
Are there plans to add an interface to get the bounds of visible entities
(ones with geometry that is rendered)?
Seems like something a lot of developers would need for moving the camera
around - centering scenes, handling standard camera views (top, left,
right, etc.), zooming in to a specific object, etc..
If we do have to do it outside the framework, what would be the general
approach? I haven't quite figured out how to do it with the current public
API.
I have a QEntity-derived class, and I wanted to look for
QGeometryRenderer/QTransform components being added to it, hook in to their
signals, and calculate & store the info on the entity. But as far as I can
tell there's no way for an entity to receive notification that components
are added/removed. The addComponent() and removeComponent() methods aren't
virtual so I can't override them either.
Is there an easier approach that I'm missing?
Thanks!
---
Andy Maloney // https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170325/7f1d928a/attachment.html>
More information about the Interest
mailing list