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

teaching material

dwsf 6 years ago updated by nick 5 years ago 1

Hi!
who is know, where can I find teaching material?

0

3D model rendering from within C#

MylesDawson 6 years ago 0

On a project we have a user can configure a window to be manufactured. They are able to input many parameters like dimensions, openings, colour, handle, etc. We have a requirement to render a 3D model/CAD image or video of a configured window and make this available to the user.

I am looking for advice on how to approach this. Are there SDKs that you can pass a template file to and then pass in variables for things like the width, height and colour? Frustratingly we have seen this done with other similar systems but are at a loss on how to approach it. thankyou

0

Designing a 3D scene editor

AveryDawson 6 years ago 0

I'm making a personal project in which I want to make a 3D scene editor, using c#.

The idea is to have floating tool windows in which you can drag items into a 3D visor. The objects dragged could have annimations.

I thinking in using Unitity to do this, but I wonder if there is other alternatives better suited for this task.

Thanks you guys!!

0

Probably wrong color in DefaultStaticMeshBatchingBuffer?

Christof Rezk Salama 7 years ago updated by nick 5 years ago 1
Hi guys,

first of all, let me thank you for your impressive work on Helix Toolkit.

When looking throught the batches mesh part, it was unclear to my, why in HelixToolkit.UWP.DefaultStaticMeshBatchingBuffer, line 74, the emissive color of the PhongMaterialCore is used instead of the ambient color.

Line 74:    var ambient = material.EmissiveColor.EncodeToFloat();

It looks like a simple copy-and-paste error.

Cordially,
Christof

0

About LoadMaterialLib () of HelixToolkit.Wpf.SharpDX.objReader.cs

greentea175 7 years ago updated by nick 5 years ago 1

Hello.

I'm watching a sample of HelixToolkit.Wpf.SharpDX.

I'm trying to display an obj file.

Did not appear perfectly.


It seems to ignore Tf and Ni in the mtl file.

I confirmed LoadMaterialLib () of HelixToolkit.Wpf.SharpDX.objReader.cs.

There was no processing of Tf and Ni in switch ().


HelixToolkit.Wpf.SharpDX seemed not to process Tf and Ni. Is it correct?


Thank you.

0

hole inside polygon

Dani 7 years ago 0

hello there 

hope you are doing well. I am trying to add a hole inside a polygon with arbitrary shape. However, methods such as Cuttingears are not able to create suitable triangles. i wonder if there is any other method to triangulate a polygon with arbitrary shape which includes  a hole with arbitrary shape.  

cheers

0

WPF Helix Toolkit MVVM Exception "...Child of another Visual Tree"

claude 7 years ago updated by anonymous 7 years ago 1

In my project i am trying to integrate some 3D Visualization using Helix Toolkit. A Page showing a ViewPort3D with itemSource bound to a DataContext with an ObservableCollection of Visual3D is one of several Pages which can be displayed in my Application. A Navigation bar lets me switch between these pages.

My problem is that once i have populated my ObservableCollection with Visual3Ds, then navigate to a different page, then return and try to make changes to the ObservableCollection again, I constantly receive an Exception that my collection is already part of another VisualTree!

Presumably, since a new View is instanciated (and presumably the old View still survives somehow)whenever i navigate between pages, but my DataContext is persistant, this is what causes the problem. 

Has anyone come across this problem? Sorry for the rough explanation but my Software is too large to post!

Regards

0

How to get the translated/moved Point position from CursorOnElementPosition.Value.X

RS_FE 7 years ago 0

Hey folks,

when using CursorOnElementPosition.Value.X it retrieves the position of the model which is not tranlated/moved to an offset/animated position.

How do I retrieve the current and translated position of the mouse down point?

0

Click to select the model

Smile 7 years ago updated by ไอยดา สุรีวงค์ 5 years ago 1
  • 我使用以下代码导入了多个模型


Microsoft.Win32.OpenFileDialog对话框=

新的Microsoft.Win32.OpenFileDialog();

dialog.Filter =“3dFile | * .obj”;

if(dialog.ShowDialog()== true && System.IO.File.Exists(dialog.FileName))

{

ObjReader CurrentHelixObjReader = new ObjReader();

Model3DGroup MyModel = CurrentHelixObjReader.Read(dialog.FileName);

ModelVisual3D model = new ModelVisual3D();

model.Content = MyModel;

View3D.Children.Add(模型);

MessageBox.Show( “成功!”);

}


但是,如何通过单击鼠标选择模型并移动它

0

Loading Objects and Meshbuilder Questions

Bob 7 years ago updated by jebol 3 months ago 1

First off, I do not want to waste anyone's time here.  I have searched extensively for answers to my questions but honestly, I haven't found a centralized source where one can go to learn about the Helix Tool Kit.  Any suggestions for the definitive source would be very helpful.


Loading an OBJ model

I am writing an application that is basically an IMU head tracker.  I have used Helix to create three viewports; one each for front, top, and side views.  I am using the teapot for the object.  I have it working where the teapot in each viewport rotates according to the data from the IMU.  I have an OBJ file of a human head and for the life of me, I can't seem to get that file to load.  I don't see the need to load it programmatically.


From an example I found, I added:


<Helix:FileModelVisual3D x:Name="Head3D" Source="c:\malehead.obj"/>

in place of:


<Helix:teapot\>

Is that all that is necessary?  FYI: If I have to do it programmatically, I am using VB, not C# in Visual Studio.


Meshbuilder


I also want to create a POV viewport.  I will have a wireframe sphere with the origin at 0,0,0.  The perspective camera will also be at 0,0,0 so the camera will be showing the wireframe from inside the sphere.  The camera will rotate in three axis based on the incoming IMU data.  Placing text on the wireframe showing the angular distance from 0,0 would be icing on the cake.

I just have not been able to find any example, tutorial, or documentation on how Meshbuilder is used.

Your help is greatly appreciated.