Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  CSG Status  (Read 3145 times)
0 Members and 1 Guest are viewing this topic.
Offline goo

Junior Newbie

« Posted 2005-12-16 18:48:46 »

Hi all, I'm happy to join this forum. Smiley

I'm look ing for CSG or other Solid Modelling equivalent with JoGL. My background is PovRAY and Processing. I tried to find any implementations of Boolean operations for Solid manipulations in Java. It could be simple as clipping two cubes together, intersection of a plane and a cylinder...

I know that CSGs are complex algorithms.

Offline jbanes

JGO Coder

Projects: 1

"Java Games? Incredible! Mr. Incredible, that is!"

« Reply #1 - Posted 2005-12-16 19:00:36 »

Constructive Solid Geometry is an abstraction, and has no place at the rendering level. It's only used at the level of Modeling tools and Scenegraphs. If you want to do CSG with JOGL, you should use a modeler like Milkshape3D to build your objects.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline goo

Junior Newbie

« Reply #2 - Posted 2005-12-17 09:37:17 »

I'm looking for a Programming Environnment for CSG like this: or Milkshape is a programming environnement? I'm not familiar with scenegraphs. I had a look at jMonkey, but it didn't found any csg.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder

Got any cats?

« Reply #3 - Posted 2005-12-17 23:10:45 »

CSG is commonly used for raytracers because it is well suited to the ray trace algorithym.

CSG however is totally unsuited to modern 3D cards, which use a form of BREP (Boundary Represetnation) and render descrete textured polygons projected into 2 dimensions.

The only way to do CSG and end up on a 3D card is to do a CSG to BREP conversion.  This is a time-consuming and somewhat complicated operation.  You can find papers on how to do it dating back about 10 years ago in SIGGRAPH proceedings, but the short form is bascially this:

For any 2 solids and a CSG operation:
(1) COnvert the solids to their BREP form (may be an approximation if curved surfaces are involved).
(2) Split all the intersecting polygons of each solid into polys that are either totally inside or totally outside of the space contained by the other solid.
(3) collect all the polygons that satisfy th operation
(4)reassemble into a new solid.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!
Pages: [1]
  ignore  |  Print  

DesertCoockie (22 views)
2018-05-13 18:23:11

nelsongames (73 views)
2018-04-24 18:15:36

nelsongames (68 views)
2018-04-24 18:14:32

ivj94 (751 views)
2018-03-24 14:47:39

ivj94 (81 views)
2018-03-24 14:46:31

ivj94 (605 views)
2018-03-24 14:43:53

Solater (97 views)
2018-03-17 05:04:08

nelsongames (170 views)
2018-03-05 17:56:34

Gornova (388 views)
2018-03-02 22:15:33

buddyBro (1048 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!