Details
Description
Entities are not rendered (or maybe rendered somewhere else) under certain circumstances.
Reproducing test example attached.
On the scene there is entity1 with dynamically created 100 children green plane mesh entities and perpendicular to them dynamically created 3 red plane mesh entities as children of entity2.
If entity1 (as entity2) is created one time on start, everything renders fine as should be:
test_right.zip example attached
If entity1 is created dynamically green children plane entities are not rendered (only one plane):
(watch video "test_without_reparent")
If then do reparent 100 children green plane mesh entities (that is set parent to null, than back to needed entity) got right result.
(watch video "test_with_reparent")
Also after first reparent on next steps when creating green children plane entities are got rendered, but it looks like they got extra translation until another reparenting is done ("test_with_reparent" video).
As well want to note (maybe this will help) in my own application there was times when a few child entities sometimes are rendered in camera view with extra translation and rotation that they didn't have (no transform component, check it in debug)! But unfortunately I can reproduce it.
Reproducing examples attached:
test_right.zip - without bugs - entity1 is created one time on start.
test_wrong.zip - with bug - there are 3 steps:
1. Create entities;
2. Reparent green entities;
3. Delete entities
Second step can be commented if needed.
(didn't test this example on android, but had similar issues in my own android application)
Attachments
For Gerrit Dashboard: QTBUG-60612 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
194057,3 | QNode: setParent create creation change only when needed | 5.9.0 | qt/qt3d | Status: MERGED | +2 | 0 |