I searched for decent library, that allow plotting surfaces of revolution.
So I found HelixToolkit, that has not only convenient wpf controls, but also big lack of documentation.
I want to create two-sheeted hyperboloid that descibed by formula
but can't figure out what to use in mish-mash of functions and objects, that Helix delivers.
If you know another libraries/documentation or even solution to my problem, please, guide me.
https://github.com/helix-toolkit/helix-toolkit/tree/develop/Source/Examples/WPF/SurfaceDemo
Helixtoolkit has the dynamic surface 3d, maybe this is what you want.
Related
I'm looking for a way to make two objects smoothly merge together in Unity. I'd like to do it through shaders rather than mesh, thinking that'll be faster as this merging effect needs to happen often at runtime. Initially I looked into raymarching as I saw an example of exactly what I'm looking for using it, see below. However, it seemed far too daunting a task to make raymarching from scratch and in general coding shaders in Unity. C# scripts I can manage but shaders seem like a whole 'nother beast.
Image of spheres merged together using raymarching
Or this link: https://i.stack.imgur.com/yYqHb.png
Link to the video tutorial the image is from
Or this link: https://www.youtube.com/watch?v=B1Rzst89MPU
(Thanks Stefan Wuebbe for reminding me to add clean links as well)
I am hoping to find a solution using Unity Shader Graph, as that's the only real shader work I've had any experience with. But of course, any suggestions for an approach to this challenge are appreciated.
For a bit more context, I am hoping to use these merging shapes to make dynamic elemental attacks and effects for a game about bending the elements I'm starting to work on. Specifically spheres merging could make a great effect for a water stream attack.
Thanks for the help in advance!
I really like how 2D Shapes work in MS PowerPoint. I was wondering if there any library for C# .NET that would allow me to use same functionality with easy in my application.
I am looking for adding 2D shapes, re-sizing, moving, snapping two shapes to each other, group re-sizing, rotating, showing help lines when you snap two shapes together.
I tried to google and search here on stackexchange but came across few libraries that require a lot of manual work to get simple things working.
So my questions is: Is there any .NET library to be able include shapes functionality into my application with limited effort and short time.
Please share your experience if you have used any of the libraries.
Thanks in advance.
I have been searching this for quite sometime but could not find an appropriate method. How to import 3D models in a WPF application at runtime when user selects a model. It can be built in any one of the popular 3D modelling software, 3DS max, Maya, Blender etc, not all. Any one of the formats .3DS, .MAX, .FBX, .obj etc is required to be imported.
If there are free libraries available for this, please mention them, and if i have to write the code myself, please guide how and where to start.
Try: http://helixtoolkit.codeplex.com/
You may try to convert 3D objects in to XAML and use then in WPF. Most of the 3D modelling softwares has 3D Model to XAML plugins.
Try this as well.. (Commercial but good tool)
http://www.erain.com/products/zam3d/DefaultPDC.asp
and i also highly recommend helixtoolkit
Good Luck.
I'm using ZedGraph for my 2D graphing needs, but for a project, I need something that does 3d graphing. What is the best package I can use for this? I'd like the Graph Panes to be as easy to manipulate as with ZedGraph.
Edit: By 3D, I mean I want to be able to specify an x,y,z to get a surface. Thanks!
Using the source code that can be found in the link posted just below as well as WPF you can create a pretty good 3d graph, it's nothing groundbreaking but it might suit your needs:
3D Bar Chart
In principle you can create a bitmap using MathGL and display it. MathGL is cross-platform GPL (LGPL for core) plotting library which can plot 2- and 3-ranged data. However, I'm not sure what you can use C++ classes from C#. But C-interface should work.
I'm making a turn-based top-down game in C#. The graphics requirements are pretty simple: it's entirely 2D, requires drawing some images taken from graphics files (perhaps rotating them first), line drawing to make a hex grid and the ability to place text at any position on the screen.
I'm wondering what the best API is for doing these graphics. Is XNA overkill for this, is there something more appropriate? Thanks (I have zero experience of graphics or game development in .net so don't be afraid to dumb-down any answers).
I'd recommend XNA for this. If you don't want some of the overhead of XNA, I've found SlimDX to be a very nice little framework. They also provide some basic game classes to make this type of thing easy.
Doing your drawing directly in WPF is also fairly easy, but more difficult to extend later. XNA and SlimDX give you access to shaders, very fine grained control of alpha blending, as well as the potential to easily extend portions into 3D later if needed.
I've used the Farseer Physics engine before which was pretty cool and extremely easy to pickup (I am an enterprise developer, not a game developer). It works for Silverlight so you could actually make your game web based. I would suggest silverlight or WPF for 2D.
http://www.codeplex.com/FarseerPhysics
I would recommend WPF. Loading your graphics and moving them around should be fairly easy. Since WPF also is vector based, your line drawing is straight forward.
XNA would be the next step. Great support for sprite graphics and also gives you access to shaders.
If it is as simple as it sounds, and not even real-time, maybe you don't need any of this stuff. Drawing a hex grid and some images should not be hard even without a game engine. Maybe WPF would be good for this.
Given your requirement you could just use plain C# and the GDI (for 2d rastering). However learning XNA is easy enough, and it'll serve you well once you decide to make a realtime game (2d or 3d) down the road. Either way have fun, and if XNA seems to complicated when your starting out, just drop back to GDI. Making games should be as fun as playing them :)
XNA sounds like a good choise (it will better than using DirectX SDK !! and it is quite easy to learn)
You can do this by just using classes inside the System.Drawing namespace. And XNA is certainly overkill for this type of stuff. Also you would introduse many dependencies for your small game which might be an unwanted thing for your gamers.
Check out Unity 3D - it's based on C# and it can be used for 2D. It might be overkill (including price), but for game development it's in general HUGE help.