aspose file tools
The moose likes Java in General and the fly likes trying to create a diffusion limited aggregation in jogl... need guidance Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "trying to create a diffusion limited aggregation in jogl... need guidance " Watch "trying to create a diffusion limited aggregation in jogl... need guidance " New topic
Author

trying to create a diffusion limited aggregation in jogl... need guidance

bhavin ragha
Greenhorn

Joined: Mar 28, 2012
Posts: 17
hello im trying to create a diffusion limited aggregation in open gl... which is a model. it works by...

a seed (pixel) in the middle of the frame.
then an other pixel that randomly moves within the frame. and if it touches the seed point then sticks on it.

i have the seed pixel... and the other pixel moving round. how do i code...

if it touches the seed then stick?

right now i have this...

Martin Vajsar
Bartender

Joined: Aug 22, 2010
Posts: 2319
    
    2

Since this has nothing to do with JDBC, I've moved the thread to a better suited forum. Please see CarefullyChooseOneForum for further reference.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 4734
    
    7

bhavin ragha wrote:hello im trying to create a diffusion limited aggregation in open gl... which is a model. it works by...
a seed (pixel) in the middle of the frame.
then an other pixel that randomly moves within the frame. and if it touches the seed point then sticks on it.

I'm no GUI expert, but this would seem to me to be an abstract problem that could be just as easily solved with a matrix of booleans or values, or an ordered set of coordinates (but please feel free to correct me if I'm wrong); so unless there are specific GUI objects (eg, a plotter-style class for the "movement") that would help with the solution, I'd be tempted to keep the problem code separate from any GUI.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
 
I agree. Here's the link: jrebel
 
subject: trying to create a diffusion limited aggregation in jogl... need guidance
 
Similar Threads
Dx Ball Game
JOGL problem
Parsing a text file to an arraylist
Verifcation
toUpper, toLower for chars