Skip to content

draw order #218

@leoscholl

Description

@leoscholl

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions