I wonder that can I use three.js or babylonjs on winform application c# or not?
If yes, can I load some values from Datagridview table and draw 3D shapes?
thanks,
Ahmet.
No sure about this git project but try it, if is what you looking for https://github.com/delaneyj/three.net this is the webGL own integrated on all major browser by default, or sometime need to be activated for linux os browser.
You can use CefSharp in your WinForms together with Three.js or Babylon.js.
How to use CefSharp (chromium embedded framework c#) in a Winforms application
Related
I would like to create a customized Graphical User Interface Window similar to Blender or Maya GUI window. Please refer this below image:
How and where to begin with to design and create a customized GUI window similar to Maya / Blender UI window. Please refer the below image which has video / image preview option and floating buttons and menus:
Being a student, instead of using other desktop GUI applications for 3D purposes, can I able to create a Graphical User Interface window similar to Blender / Maya.
Is it possible to create a Desktop Graphical User Interface application? If it is possible then how to begin with to achieve this?
Blender has custom GUI tooling that uses OpenGL. You could try learning OpenGL (or Vulkan) and start rendering things, but you should know that creating a GUI library will be a huge challenge. You'll need to think about things like dealing with keyboard input, font rendering, text selection...
You'll likely save a lot of time by using an existing GUI library that has solved these problems already, like Qt, Flutter, GTK+. Or you could use the code in Blender, but I'm guessing that it will be harder to find good documentation and community support since it's an internal library.
Desktop applications are usually developed in languages like C# and C++, mostly in any software like Visual studio. Since you need a graphics software, you need a render engine somewhat similar to Blender. Try using OpenGL, or any other render engine of your choice, with these former methods, I mean to combine both the idea of "rendering" and "programming"....It's all about inspirations and ideas!
Imho, it won't be an easy task. If you are ready to take up the challenge.
Dear Imgui will be good starting point.
I have a native C++ application that is rendering 3D using DirectX.
The app can switch between windowed and fullscreen using IDXGISwapChain::SetFullscreenState().
However some of my UI is in a .Net Winform in a managed dll.
In windowed mode I just call into the .Net dll and that opens the secondary Winform, so two windows, the main native MFC/DirectX and .Net Winform control.
But when the DirectX is in full screen, can I get the Winform to be show above the Direct X layer?
Is it even possible?
Merely setting the Winform property
this.TopMost = true;
is not sufficient. The winform is under the Direct X layer.
I just want "my" WinForm over the full screen.
You could copy your WinForm's DC onto bitmap in memory and copy that onto a DirectX rendering surface and pass messages back to the WinForm. It might be slow thow though, if you try to do very much.
I need to create a designer for Silverlight in WPF and I’m thinking of a few options
Use a WebBrowser control,
display the content there and
communicate Silverlight using the
JavaScript Bridge. Not sure if this
will be enough for the scenarios I
need to support (see below). This is what KaXaml is doing. SilverlightSpy uses a a more sophisticated WebBrowser control, but I'm not sure how they communicate with Silverlight.
Communicate using Sockets
between the Host and Silverlight.
Host the Silverlight runtime (not in
a browser), but directly using
AgCore.dll. Similar to what sllauncher does for OOB. I imagine
this is what Blend/VS are doing.
Do whatever Blend or VS are doing
which.
I obviously don’t want to go as far as VS and Blend, but I need to support drag and drop of some controls as well as grouping, changing the layout, moving controls in the design surface and obviously updating the Xaml as a result of this actions.
Any ideas, recommendations or pointers on the best way to create a Silverlight Designer in WPF?
SharpDevelop 4 has a WPF based editor for WPF and Silverlight -> http://www.icsharpcode.net/opensource/sd/
I have been asked to build an application where I can drag and drop few WebControls onto the WebPage designer surface.
So far I have read some articles on .NET Framework Design-Time architecture, like, MSDN Article: Hosting WinForms Designers, Developer Function Article etc.
But I can't a find a way to host WebForms designer. The only open source implementation that I could find was Mono Develop ASP.NET Visual Designer.
But in mono they have used GTK# & Gecko etc to host the designer. I can't find a way to do the same using WinForms.
Please suggest me what should I do. Give me some pointers. Should I go ahead and implement it using GTK# and Gecko?
PS: My requirement is not very huge. I need just a way to drag and drop simple web controls and save the page.
Creating a designer host and hosting the controls is easy. The hard part is the HTML design surface, to let you actually see the controls, select, drag-n-drop, resize, etc. There is nothing built into the .NET/ASP.NET framework to do this for you.
I built AspNetEdit - and pretty much abandoned it because it was too difficult to build a reliable HTML design surface designer with Mozilla/Gecko.
Is there a way to get textboxes, labels and other wpf controls in xna that supports margins, etc that flexes for window size?
You might give CeGui a shot.
If your game needs advanced GUI capabilities, CeGui# might just hit the nail on the head for you. Marketese aside, this is a seriously good GUI library with Buttons, ListBoxes, Scrollbars, ProgressBars, Sliders, ComboBoxes and more.
To access the Xna version you'll need to check out the latest copy from the project's SVN and load up CeGui-XNA.sln.
There are other options listed in this thread, but I have no idea how well any of the others work (and it probably isn't a comprehensive list anymore).
The official GUI systems FAQ thread in the XNA Forum:
What GUI systems are there for the XNA framework?
CEGUI# is powerful, but it doesn't support the Xbox 360 (eg. its design doesn't include responding to game pad input) - a major overhaul would be required to refit it to be usable with something else than mouse and keyboard.
Not exactly what you're looking for, but here is an example of getting winforms GUI elements mixed in with XNA 3d content:
http://creators.xna.com/en-US/sample/winforms_series1
Check out SQUID: http://www.ionstar.org/
It's a really clean, fast, and engine independent UI system. I've worked with it extensively and really enjoy using it. The download includes sample code for XNA 3.1, Truevision3D, and SlimDX.
It is possible to embed an XNA game in a WPF form (google: XNA in WPF) if you target only Windows system. You will then have access to all the controls available in XPF for your 2D GUI.
If you also target Xbox 360 or Zune; you must make your own GUI library :(