This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
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.
 
GeeCON Prague 2014
 
subject: Hiding Faces In 3D Checkers.