Is there any way to use Win2D in WinForms application? I've searched it on the web, but there is no information...
Or if you know some alternative to Win2D can you send them to me? I need a library that is:
High-level
Gives me the ability to perform smooth animations (60+ fps). I think the library should work with DirectX
I believe SharpDX is a good candidate: http://sharpdx.org/
SharpDX is an open-source managed .NET wrapper of the DirectX API.
Related
I wonder which of these 3 frameworks / combination of them is most suitable for gesture-based interface (based on touch or motion recognition)?
I see online some directions, of using WPF and Surface, but nothing concrete.
I will appreciate if someone who already worked on this can suggest an approach.
If you are talking about targetting Windows 7, WPF 4 + the "Surface Toolkit for Windows Touch" are the most efficient way to go. WPF 4 has built in low level APIs for touch and the Surface Toolkit extends that with a suite of controls that are optimized for touch and gestures. See my presentation on this topic from PDC '09: http://www.microsoftpdc.com/2009/CL27
Not sure why Adrman deleted his post, but I'm going to re-post his link to Shawn Hargreave's post about the touch API on windows:
http://blogs.msdn.com/b/shawnhar/archive/2010/09/09/touch-input-on-windows-in-xna-game-studio-4-0.aspx
If you're interested in still using XNA for your project, there are definitely still options as Shawn "touches" upon in the end of his post. For example, here is an article on the XNA UK UG site that shows how to implement touch on windows:
http://xna-uk.net/blogs/randomchaos/archive/2010/02/10/xna-and-windows-7-multi-touch.aspx
Now, that pretty much ties you to the API, but it stands to reason that you could refactor this so that it was more generic, and then eventually just use the built-in touch API (assuming they implement touch on windows, which I believe they will).
i am looking for some transition effects in SL4. Do these come standard or is there some kind of framework addon?
Does anyone know of examples, tutorials.
If a framework exists is there documentation?
Thanks in advance
The SL4 framework has very powerful animation and storyboard features, but no transitions concepts built in. However the Silverlight Toolkit, which is developed by Microsoft, has a TransitioningContentControl:
http://silverlight.codeplex.com/
This will provide nice transitions as you change the content which it contains. See the following tutorial:
http://jesseliberty.com/2009/04/29/animated-visual-state-transitions-with-the-transitioning-content-control/
Silverlight.FX has a good set of transitions.
I found it easy to use.
http://www.nikhilk.net/Silverlight-Effects-Transitions.aspx
I'm trying to find out if any sample Cloth simulation exists with code in WPF or Silverlight.
So far this is what I've found:
It's been done in DirectX and then used as an ImageBrush in WPF, but I mean without a DirectX and without a C++ dependency.
It's been done in Flash and even Javascript so it's definitely possible performance wise:
http://www.andrew-hoyer.com/experiments/cloth
There are a few .NET physics libraries but are mostly 2d only (or don't support soft body systems)
So would I really be the first one on the planet to do this in Silverlight? That's hard to believe.
I'm sorry, but you are not the first ;).
Check this demo from Oscar Oto: http://www.raonalab.com/silverlightme (under the Real3D Tab). Behind the scene it uses Kit3D - a 3D C# graphics engine for Microsoft Silverlight.
Check out my site http://rene-schulte.info
I implemented a soft body system for it. Also see my older projects. And my blog for the details about my site.
I am already familiar with Silverlight programming but not have any experience with GIS.
my role as silverlight developer is only to display existing GIS data.
If you guys have any experience with arcGIS silverlight control & api, what else do you think I must learn to be able to use it.
any learning reference could be helpful. thanks.
you don't need alot, you can dl the SDK from ESRI and then check out thier help site they have crap-loads of examples, both downloadable source and live samples (with the source code). If you have a license, you can use bing maps in the ESRI silverlight control--there are assemblies in the SDK for that.
as an aside, the SDK also includes the WPF assemblies as well.
It helps to have a basic understaind of the ESRI Map and Graphics object model for any of their API's (they all have similarities). The Silverlight API is much simpler than the Arcobjects API, but shares many of the same patterns.
If you are performing specific operations (such as distance calculations, map annotating, etc) there may be very specific concepts that will help. Can you post a question with more details about your goal?
I have made some different projects that used GIS data. I haven't tried arcGIS but used Bing Maps (http://www.bing.com/community/blogs/maps/archive/2009/03/18/introducing-the-virtual-earth-silverlight-map-control.aspx) and a Silverlight component from ThinkGeo (http://gis.thinkgeo.com/Microsite1/MapSuiteSilverlight2/tabid/709/Default.aspx?adcampaign=Map+Suite+Silverlight+Edition&leadsource=Google&adgroup=Silverlight+General&adtype=search&keyword=silverlight+map&gclid=CIu976aW0Z0CFZ1h4wodwGsDsA).
I think that Bing Maps is really easy to work with and there is lots of help available online. Maybe that can help you with some starting resources to argGIS?!
Chris is right. The help site has enough samples. I don't have Silverlight skills, so I really struggled with it and I was pretty bad at it too. I think the silverlight learning curve is much steeper.
I tried to wire up GIS tools/buttons to a ribbon control. It sort of worked, a silverlight dev would do a better job:
View esri-silverlight-toc-png
If you just need to control visibility, between services. It's real easy. Or if you have one service, with layers inside that you need to control...that's easy too.
But if you need both, you will have to roll your own layer control. I wired it up to a treeview, but it doesn't look sexy. ESRI may have a better TableofContents control out now, they didn't when I was messing with it:
View esri-silverlight-png
I'd really like to get into some D3D coding, but I don't have the time lately to learn C++ for what will amount to a hobby project.
If you're looking for a managed way to do Direct3D programming, I would recommend SlimDX. It's an open source .NET wrapper over DirectX. Since managed DirectX is not being supported any longer by Microsoft, this is a good way to use managed code with D3D. It's updated quite frequently and I've had very good luck using it thus far. There's a thread here that talks about using SlimDX with D3DImage.
It's not officially supported as far as I know. Looks like some folks hacked it to make it work.
Looks like this might not be an issue for much longer, at least come .NET 4.0. Microsoft showed off a demo of XNA integration with WPF at PDC on Tuesday. If you want to see it in action, you can see the session video at the PDC site:
https://sessions.microsoftpdc.com/public/timeline.aspx
The session is PC46 (WPF Roadmap), XNA demo is around the 38 minute mark. I'm hoping they'll go into more details during the WPF Graphics Futures talk today (Session PC07). Might be a bit down the road, but it's encouraging that they're working on it.
Another alternative to managed DirectX and XNA is MOgre, which is a C# wrapper around a great open source C++ graphics engine that uses Direct3D, called Ogre3D. (If it is a hobby project, I think you might get going quicker by using an engine like this rather than straight-up D3D. I don't know much about XNA or SlimDX.)
Here is a CodeProject article by Leslie Godwin that takes the D3DImage class (from the Dr. WPF article mentioned by Ian) and shows how to use it with MOgre.
Edit: I created an open source project, called MogreInWpf, for using D3DImage with Mogre, based on Leslie Godwin's code referenced above, and with an alternative sample app.