Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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 1933 times)
0 Members and 1 Guest are viewing this topic.
Offline goo

Junior Newbie




http://labelle.spacekit.ca


« 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




http://labelle.spacekit.ca


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

I'm looking for a Programming Environnment for CSG like this: http://www.geocities.com/danbalby/ or http://www.nbb.cornell.edu/neurobio/land/OldStudentProjects/cs490-96to97/indira/csg/doc.html. 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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (27 views)
2014-11-22 12:13:56

xFryIx (69 views)
2014-11-13 12:34:49

digdugdiggy (48 views)
2014-11-12 21:11:50

digdugdiggy (42 views)
2014-11-12 21:10:15

digdugdiggy (36 views)
2014-11-12 21:09:33

kovacsa (60 views)
2014-11-07 19:57:14

TehJavaDev (64 views)
2014-11-03 22:04:50

BurntPizza (62 views)
2014-11-03 18:54:52

moogie (77 views)
2014-11-03 06:22:04

CopyableCougar4 (77 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!