![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest
Posts: n/a
| Rendering Thread & 3d animation Hello, has anybody tried to animate objects (actually I'm trying to animate objects in 3d viewport) WITHOUT using the WPF animation system? I can't use the animation system because I'm trying to represents the evolution of a dynamic simulation. In the past, with GL or DirectX I was able to call a Render, says each hundred loops of simulation. But now I seem to be stuck with the WPF rendering system where I can't force the render wich is, from what I understood running in its own thread... I've made some tries with VisualTarget.Rendering event but it's called only when the rendering has been done and I've no way to force this rendering so it seems to be useless in my case... Is there any way to force the rendering based on a state inside the client Application? Thanks, Lois |
| | #3 (permalink) |
| Guest
Posts: n/a
| Re: Rendering Thread & 3d animation Hi Lois, I know that Kevin Moore coded a Panel that uses the Rendering event to "animate" the position of the Panel items... This is availlable in the "Bag'O'Tricks" he generated... You can find it in his blog!!! http://blogs.msdn.com/okoboji/archiv...14/631433.aspx Hope this will help you! Lois Lacroux wrote: > Hello, > has anybody tried to animate objects (actually I'm trying to animate objects > in 3d viewport) WITHOUT using the WPF animation system? > > I can't use the animation system because I'm trying to represents the > evolution of a dynamic simulation. In the past, with GL or DirectX I was able > to call a Render, says each hundred loops of simulation. But now I seem to be > stuck with the WPF rendering system where I can't force the render wich is, > from what I understood running in its own thread... > > I've made some tries with VisualTarget.Rendering event but it's called only > when the rendering has been done and I've no way to force this rendering so > it seems to be useless in my case... > > Is there any way to force the rendering based on a state inside the client > Application? > > Thanks, > > Lois |
| | #4 (permalink) |
| Guest
Posts: n/a
| Re: Rendering Thread & 3d animation There are a couple of other options, each with its limitation: 1) Use CompositionTarget.Rendering: this gives you a callback before each frame is rendered. The drawback is this will be called at maximum framerate. You can choose to ignore renders if you don't need to change any objects. 2) Use RenderTargetBitmap, and render a Visual tree to that bitmap. The drawback is this is software only, so it may not be very performant for 3D objects. 3) Create your own object that derives from UIElement, and call InvalidateVisual() whenever you want a render to occur. This will eventually call OnRender() for the appropriate elements on your Visual tree. This would also have the benefit of only invalidating portions of the tree that have changed. Hope this helps. Thanks, Ed Maia [WPF PM] "Marcus" <larochem@gmail.com> wrote in message news:1152191194.182115.72670@j8g2000cwa.googlegroups.com... > Hi Lois, > > I know that Kevin Moore coded a Panel that uses the Rendering event > to "animate" the position of the Panel items... > > This is availlable in the "Bag'O'Tricks" he generated... You can > find it in his blog!!! > > http://blogs.msdn.com/okoboji/archiv...14/631433.aspx > > Hope this will help you! > > Lois Lacroux wrote: >> Hello, >> has anybody tried to animate objects (actually I'm trying to animate >> objects >> in 3d viewport) WITHOUT using the WPF animation system? >> >> I can't use the animation system because I'm trying to represents the >> evolution of a dynamic simulation. In the past, with GL or DirectX I was >> able >> to call a Render, says each hundred loops of simulation. But now I seem >> to be >> stuck with the WPF rendering system where I can't force the render wich >> is, >> from what I understood running in its own thread... >> >> I've made some tries with VisualTarget.Rendering event but it's called >> only >> when the rendering has been done and I've no way to force this rendering >> so >> it seems to be useless in my case... >> >> Is there any way to force the rendering based on a state inside the >> client >> Application? >> >> Thanks, >> >> Lois > |
| | #5 (permalink) |
| Guest
Posts: n/a
| RE: Rendering Thread & 3d animation I have a sample that does 3D z-ordering using the VisualTarget.Rendering at http://www.therhogue.com/WinFX - it's the collageview sample. It looks like Ed, gave you some other options too. "Lois Lacroux" wrote: > Hello, > has anybody tried to animate objects (actually I'm trying to animate objects > in 3d viewport) WITHOUT using the WPF animation system? > > I can't use the animation system because I'm trying to represents the > evolution of a dynamic simulation. In the past, with GL or DirectX I was able > to call a Render, says each hundred loops of simulation. But now I seem to be > stuck with the WPF rendering system where I can't force the render wich is, > from what I understood running in its own thread... > > I've made some tries with VisualTarget.Rendering event but it's called only > when the rendering has been done and I've no way to force this rendering so > it seems to be useless in my case... > > Is there any way to force the rendering based on a state inside the client > Application? > > Thanks, > > Lois > > |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Start a new thread from an existing thread, which was started from atimer | Curious | .NET General | 1 | 06-13-2008 01:36 PM |
| consent.exe not rendering | bstoppel | Vista security | 0 | 06-06-2008 09:00 PM |
| games Rendering everywhere! | mikadee | Vista Games | 5 | 05-10-2008 03:30 PM |
| Vista not rendering 3D... | wrobes21 | Vista General | 3 | 04-06-2008 09:32 AM |
| DIVX rendering | dev | Vista installation & setup | 9 | 04-17-2007 09:46 AM |