wood burning stoves 2.0*
The moose likes Game Development and the fly likes Hiding Faces In 3D Checkers. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Hiding Faces In 3D Checkers." Watch "Hiding Faces In 3D Checkers." New topic
Author

Hiding Faces In 3D Checkers.

Sagi senderovich
Greenhorn

Joined: Mar 22, 2013
Posts: 1
Hi,I'm trying to develop a 3D checkers game using Java. I wrote a 3D piece but I've been having trouble with hiding it's faces so the user won't be able to see through it.

this is the code I wrote to see what face is needed to be covered:

and then:

then paint over...

I've used this exact function on a 3D cube with little twiks and it works ok.

Please show me any logical errors you may see in the function or suggest a better one.


Thank's a lot guys.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hiding Faces In 3D Checkers.
 
Similar Threads
Mouse listener question
Angles
Checking if my balls collide
VectorCanvas
Intersection points not being determined accurately- java awt