locked
[UWP][XAML]Simple 3D for UWP RRS feed

  • Question

  • I have an app in which I need to create several basic 3D spheres. All I need to do is position & display the spheres at the specified xyz coordinates (I don't need any fancy editing or other complex features). I am new to 3D, so if somebody could help me get started it would be greatly appreciated. Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Tuesday, June 26, 2018 7:58 PM

All replies

  • Hi Nathan Sokalski,

    To display 3D objects in a UWP app you will need to use Direct3D, you could refer @Rob's answer here:[UWP]How to build a custom 3D Object in UWP app? .

    Rob explains how to start with create 3D in UWP in his reply. 

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, June 27, 2018 6:55 AM
  • I was hoping for something a little more like Viewport3D (https://docs.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/3-d-graphics-overview). Is Viewport3D available in UWP, or is it one of those things that is WPF but not UWP? I found the information on the page I give the link for a little confusing, but I figured that was just because it is new to me. Is Viewport3D available for UWP, and if it is, are there any good tutorials for it? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Wednesday, June 27, 2018 3:13 PM
  • I am working on a UWP app, and I need to add some simple 3D features to display output. All I need to do is display several spheres; I do not need any fancy shapes, animation, or even detect input from the 3D area. However, most of the stuff I have found for 3D in UWP apps requires DirectX & C++. I have always written my apps using vb.net, and almost everything I have ever seen for UWP apps is given in either vb.net or C#. Is there any way to do basic 3D (DirectX or something else that supports 3D) in a UWP app using vb.net or C#? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Wednesday, June 27, 2018 10:25 PM
  • hi

    you already asked, please proceed with your existing thread and don't open multiple ones for the same topic

    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/900bc1bf-530c-45c1-9c77-54d484282469/uwpxamlsimple-3d-for-uwp?forum=wpdevelop#53932820-51c2-4ac8-9098-b3dde7cbf5ed

    br
    Andre

    Wednesday, June 27, 2018 11:06 PM
  • Hi Nathan,

    It sounds like your scenario is very simple. While Roy is correct that we don't have a Viewport3D equivalent in UWP we do have some very basic 2.5D capabilities in UWP XAML. I would recommend that you take a look at PlaneProjection and Matrix3DProjection to see if using them with a Circle element will facilitate your needs. 

    PlaneProjection

    https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Media.PlaneProjection

    Matrix3DProjection

    https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Media.Matrix3DProjection

    I hope this helps,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, June 28, 2018 1:07 AM
  • Those are both great features of UWP, but unfortunately they are not for the creation/positioning of 3D objects (a sphere in my case), just the 3D effect of 3D orientation.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Thursday, June 28, 2018 4:06 PM
  • Hi Nathan,

    As suggested earlier by Roy we don't have a simple way to render true 3D assets in UWP using C#. If you can't use the projection methods I suggested in my previous post you will need to use Direct3D and C++ to render the assets. 

    That said, there might be unsupported 3rd party options that you can investigate. At this time Microsoft does not have a supported managed wrapper for Direct3D.

    -James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, June 28, 2018 7:46 PM