Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8619721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:24:30+00:00 2026-06-12T06:24:30+00:00

What would be the best approach for implementing a z-order system, where something like

  • 0

What would be the best approach for implementing a z-order system, where something like the following becomes possible:

There are 4 rectangles: A, B, C and D.

Rectangle A overlaps Rectangle B.

Rectangle B overlaps Rectangle C.

Rectangle C overlaps Rectangle D.

Rectangle D overlaps Rectangle A.

Just like a cardboard box. I believe it’s called cyclic overlapping.

I know this is a wierd question, but I was just wondering… 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:24:31+00:00Added an answer on June 12, 2026 at 6:24 am

    The thing about the cardboard box example is that the pieces of cardboard are not exactly aligned towards the camera. In essence it is a (rather flat) 3D structure of slightly tilted planes that overlap eachother. As far as cardboard boxes go they’re also not planar but slightly bent in order to close the box. In MS-paint pseudo perspective:

    enter image description here

    This is possible in 3D by tilting the planes so that they overlap. This is a case where the painters algorithm fails, and is one of the reasons where the Z buffer comes in handy to resolve which of the object actually occludes the other.

    If you are working in a purely 2D world and you cannot tilt the planes to achieve the pseudo-3D effect that you’re after you would need to subdivide the planes and draw the overlapping parts using a different Z level than you would use for the rest of the box – essentially doing your own clipping.

    You might be able to get by by doing some sort of Z-buffer trickery to emulate the same thing as well, but essentially you should use a 3D structure for what is a 3D problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like some advice on the best approach to use in the following
What would be the best approach for implementing Tasks with a KEY that operate
I am wondering what would be the best approach to store, for let's say
How best would I exclude results from #other_section, given a structure like this? <form>
What would be best practice to localize your ASP.NET MVC application? I would like
What gems/technology would be best suited for creating an auction style system where a
What is the best approach for implementing a single-use password to download a file?
What is the best approach to implementing authorisation/authentication for a Windows Forms app talking
I need help implementing a drag and drop gesture, I would like to know
Best would be if it performs the highlighting exactly as it is in Visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.