forked from carmenalab/brain-python-interface
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
finally figured out why the target is sometimes transparent and sometimes opaque in center out. the draw order in based on the y coordinate (depth) of each object, but in 2d games that is always 0. therefore the order depends on which model was added before the other. in the center out game, occasionally both the cursor and the target are removed from the scene, then added again. not quite sure why they sometimes get added in a different order, but that would cause them to switch opacity since opengl draws back to front.
best way to fix this is to make draw order a bit more intelligent, e.g. based on distance of the bounding box of each model to the camera
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request