How do online pool/billard games have 3D balls?

Added some proper lighting and shadows, I’m pretty sure this is how funky pool does it as well. The sprite sheet for all the orientations for all the balls for smooth animations would be way too big. You could get it to look really good and not so aliased by doing a linear interpolation of the texture (at the moment I’m just casting strait to ints).

and I would use 3DzzD :stuck_out_tongue: , once on the website => click on the image at the top

very nice !

Yeah. Does look pretty cool!! Will give it a go in a few weeks… Am doing my pool game in Pulpcore so will see if I can get this working (I did read in the Pulpcore Wiki you can do Java2D stuff in Pulpcore, although havent tried it yet)… Will let you know soon. Tnx!

Pulpcore will work exactly the same, just update a CoreImage (using getData()) instead of a BufferedImage.

Great job Shannon, it looks even better now.

Could you please update the source code.

@Geeback

jPCT also supports rather fast software rendering. For something like this it would be fast enough. (Even on netbooks.)

@ShannonSmith

Awesome stuff. :o

[quote]Could you please update the source code.
[/quote]
Will do (when I get home from work), forgot about that.

Edit:
Up now.

barf… I inded first recommended 3DzzD software, but… really… after seiing ShannonSmith works this would be a very bad advice the way to go is definitly pulpcore + ShannonSmith algos and not a 3d engine

Line 118: Type mismatch: cannot convert from element type Object to PoolTest.Ball


for(Ball ball : balls){
	updateImage(ball);
}

Fixed now, forgot to html encode so lost a few < and > characters. Anyone know of a good simple java -> html formatter?

arf seems I got another insomnia today… here is one http://www.chamisplace.com/colorizer/cc.asp