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

  • Home
  • SEARCH
  • 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 7194951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:28:46+00:00 2026-05-28T20:28:46+00:00

I am trying to draw a 3D tile grid that can be rotated and

  • 0

I am trying to draw a 3D tile grid that can be rotated and elevated.

The grid though, when rotated sometimes, does not show the graphics as it should, and mutilates them. The regular grid should look nothing like this.

The top half should not be present.

enter image description here

Can anyone help explain or give examples as to what may be causing this issue?
Just found something else: When you see the spike appear, on one side of your screen, on the opposite, that tile is missing. :

enter image description here

  • 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-05-28T20:28:47+00:00Added an answer on May 28, 2026 at 8:28 pm

    I found that if you set azimuth to 133, elevation to 324, zmod to -0.9, leave xmod at 0 and change the grid to 7 × 7 instead of 10 × 10, then only one single point ‘misbehaves’. For this one misbehaving point, we have:

    • i = 48, j = 3,
    • x0 = 7.0, y0 = 0.0, z0 = 6.1,
    • x1 = -0.31273127, y1 = 5.4544506, z1 = -7.5074077,
    • near = 6.0 and nearToObj = 1.5,

    just before the following two lines:

                x1 = x1 * near / (z1 + near + nearToObj);
                y1 = y1 * near / (z1 + near + nearToObj);
    

    The critical thing here is that z1 + near + nearToObj has crossed below zero. As it crossed below zero, it caused the sign of the values of x1 and y1 calculated by the above two lines to change. This sign change is what causes the grid to appear wrong.

    I’m no expert in 3D graphics, but I believe this outcome suggests that you can’t plot the point in question because it has gone behind the camera. I’m afraid I’m not sure what the best way to solve this problem would be – that would require more knowledge of 3D graphics than I have.


    As for my other answer, it was totally wrong, so I’ve deleted it. If I was going to claim that the Java 2D graphics API was any doing wrapping using 16-bit integers, I could at least have tried to verify that

    g.drawLine(30, 30, 60, 60);
    

    and

    g.drawLine(30, 30, 60 + 65536, 60 + 65536);
    

    produced the same output. They do not.

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

Sidebar

Related Questions

basically i am trying to draw the path i.e road path. for that i
I'm trying to draw items that end of them is an * character in
I'm trying to draw PNGs onto BitmapData that is transparent. I create my BitmapData
I am trying to draw a circle after clicking a button. I can create
My tile engine is coming along. It can draw square, hexagonal and isometric staggered
I'm trying to draw a tile map in C# and the problem I'm having
I'm trying to build a WPF DrawingBrush that will draw a hatch pattern using
I am trying draw route between two location.For that i have two instance of
Trying to draw a basic stick man in html 5 css that walks. If
I'm trying to draw some simples lines with the iPhone/Touch SDK. I'd like to

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.