| |

VerySource

 Forgot password?
 Register
Search
View: 2009|Reply: 5

Strange problems when drawing 3D cubes

[Copy link]

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 United States

Post time: 2020-12-17 13:30:02
| Show all posts |Read mode
I used VC+DX3D to write a program to draw a 3D cube, and everything else was normal. I didn’t expect the back surface to block the front surface.
For example: a cube placed directly in front, the front plane is larger than the back plane (due to the principle of vision), so it shows that a smaller plane appears in the center of the front plane, which is the back plane. . .
I don't know why
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Unknown

 Author| Post time: 2020-12-18 23:15:01
| Show all posts
plus: My rendering culling state is not culling
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-19 18:30:02
| Show all posts
Even more strange is that the problem was solved after I ENABLE ZBUFFER ^-^!
Since no one returns, let me ask another question:
Why the drawn cube is not square from many angles, it is a bit oblique.
It is very different from the human eye.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-20 11:45:01
| Show all posts
You are using Z buffering! You can't see the latter

Did you mark the matrix coordinates when you put it in!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Malaysia

Post time: 2020-12-20 17:30:01
| Show all posts
For example, if CULLMODE is reversed, what you see is the inside of the box.
There is also that the Z buffer is not turned on, so the front is blocked from the back.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-21 09:15:01
| Show all posts
The awkward visual effect may be a problem with the FOV setting, which is generally 45 to 60 degrees.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list