I've been attempting to bring some of my XNA games to the web with Silversprite. However, whenever I run these apps they appear as a white screen.
I am wondering if anyone has any idea on how this might be fixed.
I have followed the tutorials exactly (except replacing the XNA apps they used with my own). Nothing is working.
Has anyone figured a way around this?
Use ExEn instead of Silversprite.
http://exen.codeplex.com
ExEn is a high-performance implementation of a subset of the XNA API that runs on Silverlight, iOS and Android.
It's production ready.
Here are some samples:
My samples (if you want, I can upload you the source code):
Pacman: http://vackup.blogspot.com.ar/2011/09/xna-3-pacman-ported-to-silverlight.html
Pong: http://www.mylittlebets.com/Pong/TestPage.html
From ExEn creator:
http://andrewrussell.net/2011/02/exen-home-stretch-y-arms/
http://andrewrussell.net/lightblocks/
Related
All,
I’ve been working on a project for a few years. When I started, forms didn’t have all the features I needed, so I stuck with Xamarin.iOS and Xamarin.Mac, and all the business code is shared (C#). It’s taken a lot longer to complete than expected, but I have been going through the final acceptance tests with external testers. In other words... I'm close!
However I’ve run into a snag. A library that I rely on heavily (lets call it libXYZ) has stopped supporting Xamarin.Mac (they do support .Net Core). That didn’t matter for a while, everything still worked. I talked to their devs, and they said it should keep working.
Well, after the upgrade to Ventura, everything went bad. Something changed catastrophically, and the Mac version no longer runs due to some weird failures in libXYZ. I’ve worked with one of their developers on it, but there’s not much he can do because Xamarin.Mac is no longer supported. Xam.iOS still works.
So I have a large body of code in Xam.Mac and Xam.iOS for the UI, and a large body of business logic, all in C#.
My choices seem to be:
Replace libXYZ. This will be a big task. There are some alternatives that I have reviewed, and one of them looks like it will offer what I need (although a significant amount of testing and redesign will be required first). This probably implies staying with Xam.
Switch to Xamarin forms which will be a complete rewrite of the UI. A core UI requirement is for a good rich text editor (like {NS,UI}TextView), and SyncFusion has a decent cross-platform RichText editor that works in forms.
Switch to MAUI, which will be a complete rewrite of the UI, but will get me support for windows/android more quickly. Unfortunately MAUI is missing any rich text editing, and SyncFusion has no date for when their RichText component for MAUI will be ready.
My concern is Forms is going to EoL because MS is pushing MAUI hard, and if I switch to forms, I might as well go to MAUI. But MAUI seems a little undercooked at the moment, building a large complex UI in XAML seems complicated, and it lacks Rich Text.
Lastly, MS have already announced that Xamarin will EoL next year. So staying with Xam seems problematic in the short term.
I’ve been staring at this decision for a few weeks now, and would appreciate any advice and/or input. Is there something I'm missing?
Many thanks
P
I am currently starting an Xamarin Application. Now i wonder if there is any form of designer for the UI, so I do not have to start the application over and over again to test the UI while designing?
Unfortunately there is no designer.
The closest thing will be the Xamarin Live Player which is currently in Preview.
Another alternative is the Xaml Previewer for Xamarin.Forms
There are two tools used as said by cheddy - Gorilla Player and Live XAML. I have tried the gorilla player but it doesnot work for dot Net standards. then I found Live XAML which is a great live development toolalong with the XAML previewer. So I personally prefer to use Live XAML.
All those xamarin live player, live previewer, inspector, gorilla player are useless the more your app grows. maybe for basic, small apps and if you dont use any DI or 3rd party tools like from telerik or syncfusion and you have to do a lot of set ups, face with connection lost problems etc etc. Only fully working extension is LiveXaml extension which is unfortunately not free.
Good luck finding one. None of these work.
i know this is most likely a duplication and i am truly sorry for that but most of the solutions i found was either +7 years outdated, bugged or consume so much memory
all i need is an efficient way to access the webcam to record and display to use it in a computer vision project to detect moving objects and such, with an HD output (using HD camera of course)
also if there is a library that would help with the computer vision that would also be great
any information, tips or experience would be highly appreciated, thanks in advance and have a wonderful day.
You could use AForge.net, it's available as a nuget package and gets the job done.
Here is an example of it. It's a winform application, but I use this library in WPF app as well.
[EDIT] Actually, I think I found what you're looking for, download this. It's a piece of code that has been written for a french azure contest. It's a motion detector written with aforge.net. There is 2 part to it, the first is a wpf client that capture movement. The second is an azure website where the image captured is uploaded automatically.
Apparently, there is a way to add C# XNA projects to websites such that they can be viewed on the site from a normal web browser, presumably there are concessions to safety that the browser will enforce.
How is this done?
edit: I think the C# project might only ever runs on the server, the client being sent something it can understand.
There is http://jsil.org which will convert a compiled .Net application into a client side Javascript "app" ... and has been demonstrated to work rather successfully on XNA games.
It only handles 2D stuff and sound is / was needing to manually rewritten last time I checked but it does a pretty impressive job from what I've seen of it.
It should be noted that whilst this may get the job done, it's certainly not going to produce JS that is anywhere near the quality (i.e. maintainability) of a game that was written in JS from the start (using something like three.js or easle.js)... so if this for a commercial product, you may wish to explore rewriting / porting the game specifically for web as a serious alternative.
This isn't possible without a plugin. The plugin would work only on Windows, obviously, since XNA is built on DirectX.
There's no plugin that currently does this, to my knowledge.
It's not difficult to write a plugin, however, you'd have to do this for each browser you want the plugin to run in.
If you want your game content on the web, a better route is probably HTML5 and its Canvas functionality, which works on all modern browsers. You might be interested in this article, which discusses porting a 2D XNA game to HTML5 Canvas.
If you need 3D support, you could go the HTML5 WebGL route, although Internet Explorer doesn't support it.
Probably what you want is Google Native Client (NaCl). I haven't played with it (yet), but as far as I know, some game engines like Unity works on it.
Hope it helps.
I am not able to apply 3D effects on WPF's built-in WebBrowser, because it is just a thin wrapper around the native ActiveX-Webbrowser, which isn't based on WPF. I saw most of the places people suggested about one Link ,but I m not able to make it work in my application and it is having so many dlls which I don't want. Can anybody suggest me any other good alternative solution present then?
Maybe you forget to copy the needed awesomium.dll & AwesomiumProcess.exe with your executing assembly (which are not .Net assemblies).
I also have some difficulties to run with awesomium but it's not impossible.
I can recommand you the Troymium/TroymiumNet which is actively maintain by its developers.
I use it on Microsoft Surface to connect people to their facebook account.
I've never used it, but you could try Berkelium with berkelium-sharp.