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


OK, I got it running! It doesn't look that interesting, but it works. :) And it's fast too..much faster than draw2D rendering. 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.


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?

On 2009-05-29 13:40:10 -0700, Jens v.P. <developer@xxxxxxxxx> said:

Hi Miles,

we are currently working on some update problems. Generally, it should work the very same way as it works in GEF, and usually this is the case. I'm not completely sure yet, but I figure there is a problem if only 3D figures are updated.

Is your view updated if you move the camera?

Background: We are using the very same update mechanism as GEF does, although many of GEF "optimizations" (e.g., dirty regions) don't make sense in a 3D scene, when everything has to be rendered anyway. We want to first fix the current version and then remove unnecessary stuff (in the UpdateManager) by overriding it (in PickingUpdateManager3D or a base class).

If it is only an application problem (and not a GEF3D bug): You can call invalidate() or invalidateTree() on figures, this should generally cause the figures to get re-rendered.

Cheers,

Jens

On 2009-05-29 22:28:47 +0200, Miles Parker <milesparker@xxxxxxxxx> said:

Hi guys,

I'm building dynamic 3D views using ViewParts, and I'm having trouble trying to figure out how to re-render all figures. It's looking like I have to walk the entire tree of edit parts but tht isn't working and seems kind of ineffecient. Ideas?

thanks,

Miles