On Dec 31, 2012, at 6:34 AM, Norman Rennhack wrote: > Can someone give me a hint how to model and visualize a chemical, spread > as a gradient in a 3D space? The Grid should be about 100 x 100 x 100 > and the area which gets covered with the chemical is about 30 x 30 x 30. > ValueGrid3d was my preferred solution because it's very easy to > calculate the concentrations of the chemicals and their changes. Maybe > someone knows how to optimze the visualisation? For example that zero > values do not get rendered at all? > I can also share my sourcecode if it helps you to understand my problem! Hi Norman. Java3D is hideously memory-inefficient. In particular, ObjectGrid3D is a real problem; but large numbers of objects cause problems for all the 3D portrayals and there's not much we can do about it. :-( For example, I just did some tests with PSO3D. I can get about 20,000 particles in 500 megs. And if I try to rotate it, it'll bomb out on me. So what to do? Here's a hack. I suggest trying a 3D mesh in the form of a stack of ValueGrid2DPortrayal3D objects. Dump information into 50 ValueGrid2D objects, each 50x50 in size. Then assign a ValueGrid2DPortrayal3D to each one and put it in the space. You'll need to transpose the location of each of the grids so that they're spaced properly along the Z axis with regard to one another, but that's just a for-loop. Maybe we should offer this as an option. Sean