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

How to Configure HelixToolkit in our project

Anonymous 11 years ago 0
This discussion was imported from CodePlex

GhufranZahidi wrote at 2012-11-15 06:59:

Hi I am New to WPF 3D please tell me How to Build Helixtooll kit with our project


objo wrote at 2012-11-15 19:53:

I recommend using the Nuget package!

The main solution has been ugraded to VS2012 and .NET 4.5, but there is also a solution for VS2010 and .NET 4.0.

0

HelixToolkit.Wpf 'System.OutOfMemoryException' was thrown

Anonymous 11 years ago 0
This discussion was imported from CodePlex

Moez_rebai wrote at 2014-07-16 14:28:

Hello.
Sometimes i tried to add a Mesh3D to the Mesh property of a MeshVisual3D, I get this exception:
'System.OutOfMemoryException' was thrown'

The code
            MeshGeometry3D modeltodraw = new MeshGeometry3D();
            // fill modeltodraw 
            var originalMesh = new Mesh3D(modeltodraw.Positions, modeltodraw.TriangleIndices);
            var bounds = originalMesh.GetBounds();
            var l = Math.Max(bounds.Size.X, Math.Max(bounds.Size.Y, bounds.Size.Z));
            model1.Mesh = null;
            try
            {
                model1.Mesh = originalMesh;
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show( ex.Message);
            }
The Mesh3D seems to be a little bit huge :

Edges Count = 125631
Faces Count = 612956
Vertices Count = 125631

Any idea why i got this exception

Best Regards,

everytimer wrote at 2014-07-16 21:22:

I haven't used MeshVisual3D yet but I think it creates a geometry from your mesh. The geometry is made with cylinders and spheres for the vertices and edges. So each edge/vertex converts into several (maybe 10-50 times more complex). So I think it's normal for you to get that exception as your computer can't handle it.

If you really need to see your mesh I recommend LinesVisual3D. It's not the best but you will be able to see your huge mesh with that. Good luck

Moez_rebai wrote at 2014-07-17 09:25:

Thanks for your reply, but did you know how to create mesh from Positions and TriangleIndices using LinesVisual3D .

BogusException wrote at 2014-07-18 00:08:

@Moez_rebai,

Do you run Anvir, or even Task Manager to see which resources are expended? I think there is a memory debugger built into VS I read about, but never used. I use the threading one all the time, though. I think you can 'profile' your app, and it will show you over time how it is performing.

Check out the "ANALYZE" pull-down menu in VS, too!

pat
:)
0

Exporting images from diffrent views of a 3D object

Samuel Medhat 10 years ago updated by ไอยดา สุรีวงค์ 4 years ago 1

Hello,

I'm using ModelViewer example to view 3D objects and extract PNG images for them. Is there a way to modify it so that when I extract an image it automatically rotates the object for 45 degrees , export another image and so on untill it completes 360 degrees? I.e. 8 images will be automatically produced for different views for the object.

Sincerly,

Samuel Farid

0

Best way to draw a line

Anonymous 11 years ago 0
This discussion was imported from CodePlex

baucez wrote at 2012-04-30 16:38:

Which is the best way to draw a line (with highest performances)?

PipeVisual3D
LinesVisual3D
Something else.. 


objo wrote at 2012-04-30 17:26:

it depends on what you need:

LinesVisual3D is using two triangles per line segment. But it needs to update the vertices every time you change your camera. Remember this visual is working in 'screen space'.

PipeVisual3D is using more triangles per segment, but does not need to update the vertices (it is defined in 'model space').

The 'screen space' visuals can handle a few thousand points, but I think it gets too expensive with really high number of points. Then I think it is better to let the gpu handle more triangles in 'model space'. Does anyone know a better way to solve this? It's too bad WPF 3D does not support line primitives.


baucez wrote at 2012-04-30 17:50:

Thanks objo,

your reply remember me that I already read something about this topic on Petzold blog but I don't remember it very much.
Probably you already read it too, however if it can be useful here is the post.

0

Adding color to point in mesh

Anonymous 11 years ago 0
This discussion was imported from CodePlex

VishwaPrasad wrote at 2014-07-23 14:17:

Hi,

I am using the wpf sharpDX libraries of Helix, I want to render the mesh with colore. I want add color to each point of mesh, I don't want to use the material for mesh.

Please help me, how to do that.

Thanks
Vishwa
0

AddPolygon wrong number of normals

Anonymous 11 years ago 0
This discussion was imported from CodePlex

murray_b wrote at 2012-01-30 05:07:

Hi 

I am trying to display a mesh created from a polygon.

But when I run the toMesh I am getting the message "Wrong number of normals" And I am not sure what that message is referring to.

 

List<Point3D> vrt = new List<Point3D>();
                // Create a list of Points
                for (int i = 0; i < set.Count(); i++)
                {
                    vrt.Add(
                     new Point3D
                    (
                        
                          (double)set[i].X,
                        (double)set[i].Y,
                        (double)set[i].Z
                    ));

                }

                var surface = new MeshBuilder();
                surface.AddPolygon(vrt);
                
                var mesh = surface.ToMesh();

Any help will be greatly appreciated. I am very new to WPF 3D and am finding the learning curve quite steep.

Thanks a lot

Murray


objo wrote at 2012-01-30 08:41:

hi Murray, 

I see this can be a bit confusing, it should be improved..

The parameterless MeshBuilder constructor will create a mesh with both normals and texture coordinates. The AddPolygon will currently only add vertices, not normals and texture coordinates.

I think changing the constructor to

new MeshBuilder(false,false)

should work.

I think there are two possible improvements here

a. Let AddPolygon calculate normals and texture coordinates if this is requested

b. Remove the parameterless constructor of MeshBuilder - so you _have to_ specify if normals/texture coordinates should be generated 


murray_b wrote at 2012-01-31 09:07:

Thanks for the quick reply Objo

That fixed the error I was getting.

Great work!


murray_b wrote at 2012-01-31 09:34:

Objo

When the meshbuilder now creates the mesh I can only see it from one side.

How do I get the meshbuilder to generate a mesh that I can rotate around and see from both sides?

Regards

Murray


objo wrote at 2012-01-31 10:01:

Remember to set the BackMaterial, it can be the same as the (front) Material.

0

Helix Sharpdx

Anonymous 11 years ago 0
This discussion was imported from CodePlex

eonxxx wrote at 2014-01-30 22:54:

Hi there,

i tried to integrate parts of source code from deferred shading demo into my own app.
cproject compiles well. but at runtime i get following error:

error registering effect: sharpdx_direct3d11_effects_x86.dll

where in the project path should the file located and how shuld i register it to my project?

thanks
eonxxx

objo wrote at 2014-02-02 12:06:

Did you install SharpDX and DirectX SDK?
http://www.microsoft.com/en-us/download/details.aspx?id=6812
http://sharpdx.org/download/

This is a fork and I am not sure about the build requirements for it at the moment.

eonxxx wrote at 2014-02-02 21:38:

Yes. It's installed.
Examples (whole fork) compiled well and all the examples run fine.

eonxxx wrote at 2014-02-28 22:52:

anyone got a simple standalone project on effects wich works?
thanks eonxxx

VishwaPrasad wrote at 2014-07-25 13:37:

Hi,

I was also got the same error in my standalone application, I have copied sharpdx_direct3d11_effects_x86.dll file in bin folder. and issue has resolved.

But , when I test SharDX on XBAP, same issue occur, even I copied the dlls also , but issue still persist.

Can anyone help on this.

Thanks
Vishwa
0

Samples

Anonymous 11 years ago 0
This discussion was imported from CodePlex

saphua wrote at 2011-02-24 09:14:

I can't find any downloads for the samples?

Edit: Never mind, found them in the source code. Personally, i think that's a little confusing. But then again I can understand making sepperate downloads of each sample is a lot of work.


objo wrote at 2011-02-24 13:57:

you are right, the examples are changed/added frequently - so I haven't made any downloads yet. I'll make a download for the examples at release 1.0!

0

how to make chart like this

Anonymous 11 years ago 0
This discussion was imported from CodePlex


objo wrote at 2014-04-29 10:12:

See SurfacePlotDemo. Note this is only a demo, there are no plans for more charting functionality in this library.
0
Under review

Has anyone tried to load Helix WPF into an Open Inventor project

John Lovell 10 years ago updated by Øystein Bjørke 10 years ago 1
Open Inventor 9.x claims to support WPF, and Helix WPF build on WPF. So it should really be, er, quite straightforward to use Helix inside an Open Inventor app.

Obviously devil will be in the details. Has anyone tried to do this?

Thanks,