File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Game Development
Bookmark "Hiding Faces In 3D Checkers." Watch "Hiding Faces In 3D Checkers." New topic

Hiding Faces In 3D Checkers.

Sagi senderovich

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.
I agree. Here's the link:
subject: Hiding Faces In 3D Checkers.
It's not a secret anymore!