Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  3D Polygon Rendering?  (Read 2006 times)
0 Members and 2 Guests are viewing this topic.
Offline jetherit

JGO n00b
*

Posts: 2



« on: 2009-04-30 17:13:24 »

Hello everyone,
I am working on a rudimentary 3D rendering system. I was wondering if it is viable/efficient to render all the polies with the GeneralPath method of creating polygons, and then filling it in. I am aware that this would make it difficult to use textures, but as it stands I only want cell-shading. Is this possible? Thanks for any help.

Jeth
Offline ryanm
« League of Dukes »

JGO Strike Force
*****

Posts: 788
Medals: 4


Used to be bleb


« Reply #1 on: 2009-05-01 04:32:41 »

I would be very, very surprised if the garbage collection overhead of creating and destroying thousands of GeneralPath objects every second wouldn't kill performance.

Why are you writing your own renderer? If it's for your own education purposes then you're best off doing everything, including rasterisation, yourself.
If it's for use in some other project, then you a million times better off just going to opengl or using someone else's software renderer.
Offline jetherit

JGO n00b
*

Posts: 2



« Reply #2 on: 2009-05-01 19:34:49 »

I feared as much. Thanks for your help.
Games published by our own members! Go get 'em!
Offline SimonH

JGO Strike Force
***

Posts: 896
Medals: 14



« Reply #3 on: 2009-05-01 23:31:35 »

It's not that bad - depends how many polys you need. z4rch kinda hits the limits of Graphics.fillPoly().

Stickmen Wars 2 is in development.
Meanwhile try Bloodridge
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.166 seconds with 21 queries.