[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.gef3d] Re: Best strategy for updating all figures?

Hi Miles,

On 2009-05-30 04:58:57 +0200, Miles Parker <milesparker@xxxxxxxxx> said:
OK, I got it running! It doesn't look that interesting, but it works. :) And it's fast too..much faster than draw2D rendering.

The speed depends on how your overall diagram is organized. The trick is, that 2D content is rendered into a texture and these textures are only redrawn if the 2D content has changed. In order to force the 2D content to be redrawn, invalidateTree() has to be called (if the figures do not get invalidated otherwise, which is usually the case). So, if you have diagrams in what I call 2.5D, GEF3D is remarkable fast ;-)


I had to do a lot of fiddling as I expected, but as you guys advertised, the new code to do this is remarkably small -- I really only had to extend my existing 2D classes.

Good to hear! Yes, the problem is the "fiddling". For that, we definitely need more documentation, and I'm currently working on it ;-) If you have any special problems, I would be happy if you tell me about them, and I could try to document these things (and how to solve them). If you run into problems which you couldn't solve, we may change GEF3D in order to fix them. Frankly, GEF3D is a big hack of GEF, and we cannot anticipate all possible problems.


Any word on the other shapes you guys were working on? A sphere would be nice. :) Is there a relatively easy way to get 3D models as figures?

See my posting to Kristian reply. Note that we already had more shapes in GEF3D, but we were forced to remove during due diligence. If you write shapes by yourself, we would be more then happy to add them. In that case, write a bug report and attach your code (the standard Eclipse process).


Cheers

Jens