GUI, cross-platform, C# and OpenGL. Is it possible? [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
Is it possible to make a desktop application, which would be cross-platform (Windows, Linux and perhaps Mac), which would feature a GUI (standard stuff, textboxes, buttons and such), it would be written in C#, and would have a 3D viewer / window, which would be driven through OpenGL?
I'm accustomed to the WPF/Xaml environment when it comes to creating a GUI, mostly in Visual Studio, coupled with XNA for 3D elements, but I need it to be OpenGL now, mostly because I need it to be cross-platform (I am going to be loading proprietary custom object formats, so I don't really have a need for third-party libraires).
Is there a way to do the above? And if there is, how and which tools would be necessary? (IDE examples, tutorials...)
EDIT: I am currently looking at a combination of GtkGlAreaSharp, Monodevelop and Tao as a wrapper. I'm looking forward to possibly simpler suggestions.

Mono is the way to go then. Specifically, have a look at the Tao Framework http://sourceforge.net/projects/taoframework/

Related

Moving a WPF program to Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have a C# WPF program that I’ve been working on for a while now and I need to move to Linux. I know that Moonlight is dead and Monodevelop has no future plans of implementing WPF functionality. Does anyone have any advice for the most painless way to rebuild my program in Linux? It’s a DnD character generator that uses a GUI with tab controls to separate the different parts. I only know C# but I’d learn another language if it was the best way.
The .NET Framework was planned for Platform independant, but that never realised. It grew too big to fully port.
.NET Core does not have that issue. It was cut down compared to the .NET Framework. It supports neither WPF nor Windows Forms, but it does support something similar: UWP. Wich is basically "WPF with App environment added". Since your programm propably needs no extensvie rights, UWP might be the way to go.
Edit: With .NET Core 3.0, thie Windows Forms Support will be added again. .NET Framework targetting WinForms Programms will need a conversion, but if you start from scratch it should just work.
Otherwise the common GUI to do cross platform anything is Xamarian. But Xamarian Apps are usually designed from the get go as such.

How would graphics be displayed when creating a game without an engine or library? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Let's say that someone decides to create a game without a game engine or library of any sort.
C# (or any popular language) is used
They have 2D sprites and 3D models with animations
They aren't sure of what IDE to use
Based on this information how would they get images displayed onto the screen?
I imagine that a console window would be out of the picture. (Pun intended)
Yes, a console window would be out of the question :)
You need to access the built-in Graphics API. On Windows computers, this is DirectX. On other operating systems, it is typically OpenGL.
Both APIs are very cumbersome, and are completely different. Without a library you typically have to be in C/C++ to use them.
As far as IDEs it depends on what you are developing for. Visual Studio is fine for windows, others you need to find something that compiles for it (probably using gcc). Anything will work, its just standard native code.
Good luck!

Cross Platform Alternatives to WPF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
all, I'm thinking of porting my application from VB.net to the C# based MONO project, so it can run on both Windows and Mac. However, I am in need of a Mac-friendly alternative to WPF. It has to have very similar functionality. QML (by QT) is not a viable option, as it costs far too much money for us.
There is also https://github.com/AvaloniaUI/Avalonia a multi-platform .NET UI framework inspired by WPF
Miguel de Icaza recommends MonoMac as a substitute to WPF for Mac as stated here. As he explains there is no plan to implement WPF in mono.
MonoMac is a work-in-progress. Some parts of the Cocoa APIs are not wrapped yet. You should start with the samples to get an idea of what is possible.
You will have to build two different UI on top of a common engine, but that's generally a good separation of concerns.
There is also a possible common code base for UI with GTK#.
Depending on your application's functionality, you could potentially port your application to Silverlight/Moonlight. Silverlight is supported on the MAC, but you'll need Moonlight for Linux. Of course, if you're doing a lot of work with the client machine's file system or what not, this is not an option.
tho I have accepted an answer a while back, I want to post what I am doing currently if anyone views this question.
I am currently using Python with PyGTK for the GUI, and GStreamer for the video. This is producing results almost identical to WPF (except some hardcoded animations). Furthermore, it runs on Windows, Mac, and Linux.
EDIT: GStreamer did not pan out for my purposes. While it works well for the most part, I could not layer transparent .png images over the video. I have switched finally to Adobe Flash (Adobe AIR).
EDIT 2: For anyone who comes across this later, when the future of SWF fell into question, my company started building our own animation system in C++, using some components of Gtk+/gtkmm and Cairo. Ultimately, that falls under the advice of the other answer...separate GUI from platform.
https://www.noesisengine.com/
Is another alternative to xaml/wpf that is also for video game engines. It currently has a Indie/Free tier up to 100k in revenue, and is cross platform.

Best framework for little 3D application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I want to write simple application with some 3D objects for Windows OS.
The application is very simple, like a gallery where we can move and see some pictures. When users go to the some picture and click on it a window will open and show picture with some information.
Which is the best framework for this task WPF, XNA, or something else? Application will be written in C#.
I can not say which is best, but I have done a while ago some things with the WPF 3D API and I liked it.
It was IMO very simple to use and the rendering seemed to be relatively fast. A really nice thing I found, was that it has an object-model that contains high-level-events such as mouse-down and click. Therefore you don't have to do much math. However, maybe provide also other APIs such high-level services, I don't know.
I would not try to create an action-game with it, but for a small app as you have described, I think it is worth a try.
Unity has been used for similar stuff. It can work on browsers (via a plug-in) or as a program, has a lot of documentation and most of the work involved in creating a 3D environment and interface is already done. Code can be written in Mono (open source C# implementation), JavaScript or a Boo, a modified Python scripting language.
It works in Windows, MacOS, iPhone, iPad and Android. And it is free in the standard version, or really cheap.
XNA is a little lower level, so it will require more work to get things started. It supports Windows, WP7 and Xbox 360.
See this discussion : WPF VS XNA

which language / tool to use [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Here's the situation:
I need to develop a desktop tool that will take in an input from Oracle (text) and it's output is a print of a layout generated by that tool.
The tool needs to be fast and able to print easily and not much extra software required on client PC's which ALL run Windows.
Now i've studied Java, PHP in the past however I don't want to use PHP for the Desktop App
and I have my doubts about Java in regards to Printing and developing the GUI.
It seems to me like with C# I can develop the GUI easier and faster, and most PC's have a lot of the tools required for the GUI in the OS (.net framework).
A tool like NetBeans helps, but more often than not the GUI design is either broken
or shoots across the screen when I make a simple change.
So now I'm thinking about starting in Visual C#, however I would like to get your
opinion.
And from my past VERY short .NET programming experience, I can still remember that deploying over the internet is easy as well, with JAVA I've had some issues with that as well before I got it to work.
So in short:
Windows environment
Lot of GUI design
Fast app that runs on client Windows PC's without much 'extra' software installing
Easy print programming
THANK YOU!
My preference would be C# or VB.NET with Windows Forms. WPF is also worth looking at, and will give you the most modern UI, but it has debatably a steeper learning curve attached.

Categories

Resources