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

Missing wiki page: Create a 3D view

Anonymous 10 years ago 0
This discussion was imported from CodePlex

yangmaomao wrote at 2013-12-11 09:18:

how to get started with helix 3d framework?

Rogad wrote at 2013-12-11 15:40:

I had the same problem. Maybe this will help : https://helixtoolkit.codeplex.com/discussions/471937
0

Problems with moving camera at the top of the screen.

Anonymous 10 years ago 0
This discussion was imported from CodePlex

Rahvil wrote at 2011-08-29 15:12:

There is about 50 pixels high area at the top of HelixView3D where I can't move object displayed on the screen. The size of the HelixView3D doesn't change the "dead area" size. Same "dead area" is in every HelixView3D in my project and it seems that there is same "dead area" in demos too. Any one else having this same phenomenon and is there any solution for this?


objo wrote at 2011-08-29 22:49:

thanks for the bug report, it is strange we haven't noticed this before!

The 'title area' was stealing the mouse events. I changed TitleBackground to null, and now it should work. See the latest change set.


Rahvil wrote at 2011-08-30 09:49:

Thanks alot!

0

TouchMode display

Anonymous 10 years ago 0
This discussion was imported from CodePlex

Mrme wrote at 2014-07-24 17:52:

Hi, So I just want to to display to the user in which TouchMode the HeilxViewPort3D is in right now. the TouchMode property doesn't seem to give that information as it is always give the initial TouchMode , any clue ?

Mrme wrote at 2014-07-25 14:09:

I found the solution. it is the CameraController TouchMode property where we should look at .
0
Under review

How to prevent camera from going down?

Kumaran M 10 years ago updated by Øystein Bjørke 10 years ago 1
I want to control the camera from going down in Z axis.
Just assume a flat surface and the camera is on top. The camera should not go beyond that flat surface. 

I can get the event from HelixViewport3D_CameraChanged() event whenever the camera position is getting changed. But I cannot prevent from going down. e.Handled = true; is not working.

Basically I want to prevent camera position's Z axis should not go into negative.
0

How to get the source code of all the examples in "HelixToolkit-Examples.zip"

Anonymous 10 years ago 0
This discussion was imported from CodePlex

pyrrhicpk1 wrote at 2012-10-15 04:57:

Hi,

I have just downloaded the HelixToolKit and the examples package. The source code in "helixtoolkit-29db50621e34.zip" is for a limited examples only and not for all the samples in the "HelixToolkit-Examples.zip". Where can I download the source code for all the examples? Please advise.

Thanks


objo wrote at 2012-10-15 06:05:

Click "Source code" then "Download". Or clone https://hg.codeplex.com/helixtoolkit


pyrrhicpk1 wrote at 2012-10-15 11:28:

Thanks for the quick reply. Yes, I am able to download the zip file from the "Source code" panel. However, the zip file (helixtoolkit-29db50621e34.zip) contains 10 samples only whereas the "HelixToolkit-Examples.zip" shows 40 samples containing exe files only. I was wondering, if I could get the source code of these extra samples as well.

Any suggestions?

Thanks


objo wrote at 2012-10-16 15:34:

Are you looking at an old download? Most of the old examples were refactored into the "ExampleBrowser" application.

The current download contains 9 examples. All source code is in the Examples\ folder!


pyrrhicpk1 wrote at 2012-10-17 03:58:

Yeah found it eventually.

Many thanks.

0

Revolved Method

Anonymous 10 years ago 0
This discussion was imported from CodePlex

CesarMayorine wrote at 2013-12-27 22:03:

I need a example (C# or VB) to revolve a Line and this into the View.

Thanks

AnotherBor wrote at 2014-01-07 05:29:

You probably should look at
MeshBuilder.AddRevolvedGeometry
method.

CesarMayorine wrote at 2014-01-08 12:25:

thanks for your answer,

have you a practical example (code) in c # or vb, that I can use?

AnotherBor wrote at 2014-01-09 06:37:



Done with this code:
(there is a mistake in AddRevolvedGeometry description saying that profile point's X is radius and Y is position along the axis. Actually it is the other way around. X is position along the axis, Y is the radius.)
_meshBuilder = new MeshBuilder(true, true);

List<Point> profile = new List<Point>(new[]{new Point(0, 20), new Point(3, 18), new Point(5, 5), new Point(17, 5), new Point(20, 7), new Point(25, 25), new Point(35, 28), new Point(50, 23)});

_meshBuilder.AddRevolvedGeometry(profile, new Point3D(0,0,0), new Vector3D(0, 0, 1), 100);
        
var mesh2 = _meshBuilder.ToMesh(true);              
_modelGroup.Children.Add(new GeometryModel3D{Geometry = mesh2, Material = _sampleMaterial, BackMaterial = _sampleMaterial});
You can find basic scene setup in every example in the toolkit sources.

objo wrote at 2014-01-10 09:05:

Thanks for the notice, I have corrected the description of the method.
AnotherBor: can we include your code in the examples?

AnotherBor wrote at 2014-01-10 09:08:

You're welcome!
Go ahead, but I think the code is so generic that you really didn't have to ask :)

objo wrote at 2014-01-10 09:37:

I wasn't sure if you had copyright on the design of the glass ;)

AnotherBor wrote at 2014-01-10 09:54:

Let me scribe my name on it... ;)

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

Added example to ExampleBrowser/MeshVisuals
0
Under review

Off screen picture

Isdas 10 years ago updated by Isdas 10 years ago 3
Hi

Is it possible / anyone knows how to render some graphics and taking a picture of it without having the picture on the screen? I.e. taking 100 pictures and saving them as a .bmp, .jpg etc.. This ain't a problem when I got the graphics visible.

I am currently using the SharpDX-fork, but I think the same problem applies to the WPF-fork (main) as well.

Best regards
-Isdas
0

Tube is not visible

Anonymous 10 years ago 0
This discussion was imported from CodePlex

TSpiller wrote at 2014-06-13 18:26:

Hi,

I just started to use this wonderfull toolkit and I'm trying to create a 3D model consisting of spheres and tubes.
No problems with the spheres, but the tubes are not visible.

Code defining tubes:
int dia = 15;
HelixToolkit.Wpf.TubeVisual3D tube = new TubeVisual3D();
tube.Path = new Point3DCollection();
tube.Path.Add(new Point3D(15, 0, 0));
tube.Path.Add(new Point3D(-15, 0, 0));
tube.Diameter = dia;
tube.IsPathClosed = false;
tube.Fill = Brushes.DeepPink;
3DWindow.Children.Add(tube);
xaml:
<hel:HelixViewport3D Name="3DWindow" ShowFrameRate="True" Grid.Column="1" Margin="5" Grid.Row="1">
                <hel:SunLight  />

</hel:HelixViewport3D>
What could eb the reason fo the tubes to not show up?
Am I missing sth?

Thanks in advance,

Thomas

Pyramidex wrote at 2014-06-14 17:07:

Hi Thomas,

I encountered the same problem and reported it in the Issues section (Id #10054) with title TubeVisual3D.
It look like it does not like tubes where the Y value is the same.

Regards, Edwin

TSpiller wrote at 2014-06-16 09:57:

Thanks a lot!

So the workaround for me is to alter the Y coord i.e. by 0.00001 which is still accurate enough.

Regards
Thomas
0

Add depth to rectangular mesh for surface plot visual

Anonymous 10 years ago 0
This discussion was imported from CodePlex

HafsaY wrote at 2014-05-26 15:24:

Hi,

I'm a bit of a newbie to 3D WPF, and am working on simulating cracks and holes dynamically on a surface.

I found your SurfacePlotDemo to be extremely useful, and was able to do this:



but would like to extend it to something like this:



The workaround I tried was using a BoxVisual3D (with the TopFace set to false) that is aligned with the surface, but this obviously doesn't render well when the hole is near the edges of the block.



While going through the SurfacePlotVisual3D class, I noticed the use of AddRectangularMesh() which creates the surface from an array of 3d points. Is there a method in MeshBuilder that can extend or add "depth" to to it as well? Or append another "cuboidal" geometry with one face and the sides to match the surface plot - this would perhaps be more ideal because I'd like the bottom half to be partially transparent in order to actually view the crack during rotation.

Any ideas or suggestions would be greatly appreciated. Thanks!
0

How can i change texture in run time (used class StudioReader)

Anonymous 10 years ago 0
This discussion was imported from CodePlex

DK_danik wrote at 2013-10-22 13:49:

Many thanks for product


i want change texture in run time at 3ds model or obj.
var reader = new StudioReader();
reader.TexturePath = "";
and then do something like this
while (materials in this model) 
{
  var actualTexturePath = this.TexturePath ?? string.Empty;
  string path = Path.Combine(actualTexturePath,"My_selected_texture_on_run_time.jpg");
}