For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!

Turntable lockup after Animation
cobra18t wrote at 2011-12-07 22:03:
I have a few hotkeys that animate the camera in a HelixViewport3D to predefined positions and loodirections. After animating to those positions, the turntable control locks up so that only tilting left/right is available (changing updirection). Looking up/down or left/right is locked up. After clicking the view cube, the look control is reset and I can look around again.
Is there something that I can do in the code to make the turntable control available after an animation without clicking the view cube?
Thanks,
-Thomas
objo wrote at 2011-12-07 22:13:
What is the FillBehaviour of your animation? If it is HoldEnd you can try to change it to Stop.
I am also setting the end value before starting the camera animations, but not sure if this is the correct way to do it...
cobra18t wrote at 2011-12-07 22:43:
Thanks, that did it. I am not a fan of setting the end value before animating, but it works. I need to double check that it is not displaying a single frame at the end position before animating from the start to end. That could really mess up my system.
Thanks again!

Help with Scale Manipulator!!!
Raathigesh wrote at 2013-01-22 16:41:
Hi,
First of all thank you for the excellent toolkit.
I saw the example where translate manipulator used as a scale manipulator.
Example in xaml :
<ht:SphereVisual3D x:Name="sphere1" Center="-4,0,0" Fill="Orange"/> <ht:TranslateManipulator Color="Black" Position="-4,0,0" Offset="0,0,1" Length="1" Value="{Binding Radius, ElementName=sphere1}" Direction="0,0,1"/>
Can some one please guide to do the exact same thing in code behind.
EllipsoidVisual3D sphere = (EllipsoidVisual3D)model.Visual3D; TranslateManipulator x = new TranslateManipulator(); x.Direction = new Vector3D(0, 0, 1); x.Length = 10; x.Color = Colors.Black; x.Bind(sphere); //Guide me to use this as a scale manipulator instead of Translate Manipulator Thanks :)

Source I guess I was wrong.
DongMini wrote at 2013-02-05 01:13:
Line 203
if ((newUpDirection - modUpDir).Length > 1e-8)
{
d = 0.2;
}
a if ((newUpDirection - modUpDir).Length < 1e-8)
I guess you're right.objo wrote at 2013-02-07 20:06:
The other block looks suspicious, I agree. It is possible this change of up direction is not necessary - but I don't remember what I tried to achieve there. Should have added some more comments...
Do you find the "turnball" :-) mode useful? It was implemented as an experimental mixture of the turntable and trackball rotation modes...

Missing wiki page: Create a 3D view
yangmaomao wrote at 2013-12-11 09:18:
Rogad wrote at 2013-12-11 15:40:

Problems with moving camera at the top of the screen.
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!

TouchMode display
Mrme wrote at 2014-07-24 17:52:
Mrme wrote at 2014-07-25 14:09:

How to prevent camera from going down?
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.

How to get the source code of all the examples in "HelixToolkit-Examples.zip"
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!

Revolved Method
CesarMayorine wrote at 2013-12-27 22:03:
Thanks
AnotherBor wrote at 2014-01-07 05:29:
MeshBuilder.AddRevolvedGeometry
method.CesarMayorine wrote at 2014-01-08 12:25:
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:
AnotherBor: can we include your code in the examples?
AnotherBor wrote at 2014-01-10 09:08:
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:
AnotherBor wrote at 2014-01-10 09:54:
objo wrote at 2014-02-02 12:49:

Off screen picture
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
Customer support service by UserEcho