This is the discussion forum for Helix Toolkit.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!
0

Interaction of mouse with 3D *.obj file

svensven934 1 year ago in Question • updated by anonymous 11 months ago 3

Hi all,


I have imported a car as *.stl file. I want to add some "devices" onto it for visualization.So When I perform a right click on the Car, at this position a Sphere should come up. I want to do a doubleclick on that sphere, and enter something like name, filepath for a text file and so on.


Also I want to ensure, that the user can not add multiple spheres over each other on the same position.


It tried to cath this situation with the following:


if (!CreatedDevices.Any(t => Math.Abs(t.Center.X) + 300 > mousePos.X))


So the mousePos is the position of my mouse and the CreatedDevices is a list of spheres with their properties like center and radius etc..


However, I am not able to doubleclick on a sphere and do something, and in addition to that the mouse position.x is sometimes -83 and the sphere position.x is 1200. I think it has something to do with the Coodinate system of my obj file and that my mouse is not in the same coordinate system. is this possible? I attached my whole project - I need some urgent help because I have no clue how to go on from here... thanks a lot!My project should be attached.

WPF
0

Silhouette edge shader

templar_vii 1 year ago in Question • updated by authenticvibes 10 months ago 2

Does anybody see a possibility to create a silhouette or edge shader to highlight edges?

Could I write it by my own, or does helix toolkit already provide something like this?



0

3D visualization from the kinect feed

ishkavi 1 year ago in Question 0

I need to visualize the feed from Kinect in 3D. Is there an open source project using Helix Toolkit for this? The HelixToolkit.Kinect.sln project gives an error when building it saying that it's output is a class object even after changing it and assigning a startup object in project settings? 

Media3D WPF
0

Is it possible to create a mesh editor

Hypo Dyne 1 year ago in Question • updated by anonymous 1 year ago 1

It is possible to create a mesh editor with Helix Toolkit? I would like to be able to be able to modify vectors, edges and faces by dragging on a design surface.

WPF
0

Model3D Transparency

Hello.I have issue with displaying .ski model from Perfect World game.

In game one weapon should be like: 

but in wpf helix it looks like 

as i see,some details here should not be transparent,but they are :(.How can i improve this?

Code mark is default:


 <Grid Name="ViewGrid" Background="Silver">
            <hvd:HelixViewport3D Name="Viewport" ShowFrameRate="True" ShowCoordinateSystem="True" CameraRotationMode="Trackball"  >
                <ModelVisual3D x:Name="Model"/>
                <hvd:SunLight>
                </hvd:SunLight>
            </hvd:HelixViewport3D>
        </Grid>

WPF
0

How to make object invisible for mouse

maxxer 1 year ago in Question 0

Hello,


I have many objects loaded in a scene (part of a SortingVisual3D) and added a manipulator to each of them. Everything works perfectly.


Now I want to surround them by a transparent cylinder. Also this works.


The problem I have now is that the manipulators are not useable when the objects are in the transparent cylinder because the mouse is captured by the cylinder.


Is there a way to make the box invisible for mouse operations?


I am using Helixtoolkit for C# WPF




WPF
0

Viewport 2D of 3D object and textureimage

Nina 1 year ago in Question 0

Hello everybody,

Can some one help me please!

 I have created a viewport using Helix tool kid. I put camera at the position (0,0,0). then I create sky box around camera then show the part camera can view to view port.  My problem is when my view port is showing 1 part of image. How I can know where is the area showing in view port at 2D image that I used for texture to the cube?

WPF
0

Unable to run WPF.SharpDX demos

Van 1 year ago in Question • updated 1 year ago 1

I am trying to evaluate helixtoolkit for use in an existing WPF application. I cloned the repo and compiled everything, but when I try to execute any of the WPF.SharpDX examples I get an error message in the application:


System.InvalidOperationException: Cannot call this method without a back buffer.
   at System.Windows.Interop.D3DImage.AddDirtyRect(Int32Rect dirtyRect)
   at HelixToolkit.Wpf.SharpDX.DPFCanvas.UpdateAndRender() in C:\helix-toolkit\Source\HelixToolkit.Wpf.SharpDX\Controls\DPFCanvas.cs:line 753


However, I think this is a bit misleading. When I look at the code, it is failing on line 102 of DX11ImageSource:


this.renderTarget = new Texture(DX11ImageSource.device, target.Description.Width, target.Description.Height, 1, Usage.RenderTarget, format, Pool.Default, ref handle);      

With the following exception thrown: 


'SharpDX.SharpDXException' in SharpDX.dll
HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.


I even tried making my own possibly simpler project and using NuGet to import the helixtoolkit libraries and I get the same error. At home I can execute everything on my personal computer so it appears to be some (mis)configuration on my work laptop. Both machines are Windows 10, using VS2017 with AFAIK updated drivers. I'm not sure where to go from here to diagnose the error.


I have also tried Microsoft's WPF DirectX Extensions (https://github.com/Microsoft/WPFDXInterop) and it works properly. Finally, I tried compiling SharpDX but it doesn't include any sample code for me to run. If anyone has any suggestions, I'd love to hear them.

SharpDX WPF
0

Problem with transparent background at TextVisual3D

MarioR 1 year ago in Question 0

Hello,

is it correctly that the TextVisual3D only display the transparent backgorund from last insert TextVisual3D?



        <helix:HelixViewport3D ZoomExtentsWhenLoaded="True" ShowCoordinateSystem="True"  CameraMode="Inspect">
            <helix:SunLight />
            <helix:TextVisual3D Position="1,-1,1" Text="Hello"  Foreground="Aqua" Background="Transparent" UpDirection="0,0,1"  Height="1"/>
            <helix:GridLinesVisual3D Width="10" Length="10" MinorDistance="1" MajorDistance="1" Thickness="0.01"/>
            <helix:SphereVisual3D Center="0,0,0" Radius="0.5" />
            <helix:EllipsoidVisual3D Center="3,3,3" RadiusX="2" RadiusY="3" RadiusZ="4" />
        </helix:HelixViewport3D>




        <helix:HelixViewport3D ZoomExtentsWhenLoaded="True" ShowCoordinateSystem="True"  CameraMode="Inspect">
            <helix:SunLight />
            <helix:GridLinesVisual3D Width="10" Length="10" MinorDistance="1" MajorDistance="1" Thickness="0.01"/>
            <helix:SphereVisual3D Center="0,0,0" Radius="0.5" />
            <helix:EllipsoidVisual3D Center="3,3,3" RadiusX="2" RadiusY="3" RadiusZ="4" />
            <helix:TextVisual3D Position="1,-1,1" Text="Hello"  Foreground="Aqua" Background="Transparent" UpDirection="0,0,1"  Height="1"/>
        </helix:HelixViewport3D>



If flip in view from backside is transparency not work on other TextVisual3D.


        <helix:HelixViewport3D ZoomExtentsWhenLoaded="True" ShowCoordinateSystem="True"  CameraMode="Inspect">
            <helix:SunLight />
            <helix:GridLinesVisual3D Width="10" Length="10" MinorDistance="1" MajorDistance="1" Thickness="0.01"/>
            <helix:SphereVisual3D Center="0,0,0" Radius="0.5" />
            <helix:EllipsoidVisual3D Center="3,3,3" RadiusX="2" RadiusY="3" RadiusZ="4" />
            <helix:TextVisual3D Position="1,1,1" Text="Hello"  Foreground="Aqua" Background="Transparent" UpDirection="0,0,1"  Height="1"/>
            <helix:TextVisual3D Position="0.5,1.5,1" Text="Hello"  Foreground="Aqua" Background="Transparent" UpDirection="0,0,1"  Height="1"/>
        </helix:HelixViewport3D>



How can i fix it?

regards Mario


WPF
0

helixViewport3D

Anonymous8 2 years ago in Question 0

how can I get rid of the box with the letters U and L in the bottom right corner of helixViewPort3D control? 



WPF