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

<ht:PanoramaCube3D Source="Models\GrandHotel\"/> Its giving XML PARSE EXCEPTION
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ht="clr-namespace:HelixToolkit.Wpf;assembly=HelixToolkit.Wpf"
Title="MainWindow" Height="350" Width="525">
<Grid>
<ht:HelixViewport3D x:Name="view1" RenderOptions.BitmapScalingMode="HighQuality" RenderOptions.EdgeMode="Aliased" ShowViewCube="False" ShowCameraTarget="False" CameraMode="FixedPosition" RotationSensitivity="0.6">
<ModelVisual3D>
<ht:PanoramaCube3D Source="Models\GrandHotel\"/>
<ModelVisual3D.Content>
<AmbientLight Color="White"/>
</ModelVisual3D.Content>
</ModelVisual3D>
</ht:HelixViewport3D>
</Grid>
</Window>

How to make RTS camera?
Overlord123 wrote at 2012-01-03 19:21:
Is it possible to create a RTS camera, like in Starcraft II etc?
objo wrote at 2012-01-03 19:55:
sorry, I have no experience with Starcraft or any other real time strategy games, so I don't know what is needed. Do you need camera translation by WASD keys?
can this link help (from irrlicht 3d)? http://www.irrlicht3d.org/wiki/index.php?n=Main.RTSCameraByCmdKewin
Overlord123 wrote at 2012-01-03 20:27:
Yeah, basically the feature set of the linked camera is what I need.
- No vertical translation
- Translates with WASD keys, (right mouse button and arrow keys)
- Translates with mouse movement on border screen. Left, Right, Up and Down
- Zooms with wheel (and right-left mouse buttons)
- Ability to recenter itself around a node
- define min and max zoom levels
- define boundaries for translation so it does not translate outside the map.
I put not so important stuff in brackets. Is this possible to realize with the Helix 3D Toolkit?
Thanks.
objo wrote at 2012-01-03 21:09:
This should be included in the 'walkaround' camera mode - I have not tested it after latest camera control refactorings, might need some updates...
http://helixtoolkit.codeplex.com/wikipage?title=Input%20gestures&referringTitle=Documentation

RotateManipulator help please
badgerbadger wrote at 2011-12-14 16:41:
I am attempting to code a RotateManipulator in C# codebehind (not xaml) to add rotateable and translateable planes on a double click event.
How would this line from ManipulatorDemo / MainWindow.xaml line 185 be coded in c#?
<ht:RotateManipulator Color="Blue" Axis="0,0,1" Transform="{Binding Transform, ElementName=plane2}" TargetTransform="{Binding Transform, ElementName=plane2}" Diameter="1"/>
It is the syntax of the binding transforms that I am struggling with (I am new to wpf if you haven't guessed)
Thanks! badgerbadger.
objo wrote at 2011-12-14 19:26:
use the SetBinding method
http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.setbinding.aspx
badgerbadger wrote at 2011-12-15 10:11:
Thanks, I had been using that but not getting it to work. Attempted to code ManipulatorDemo / MainWindow.xaml line 185 as
var plane = new RectangleVisual3D();
plane. etc
var manip = new RotateManipulator();
...
BindingOperations.SetBinding(manip, RotateManipulator.TransformProperty, new Binding("Transform") { ElementName = "plane" });
BindingOperations.SetBinding(manip, RotateManipulator.TargetTransformProperty, new Binding("Transform") { ElementName = "plane" });
and other combinations of setBinding but get "System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=plane'"...
Apologies if this is a newbie wpf error but not finding much relevant on the web

How to 'dampen' RMouse 'scrolling'?
BogusException wrote at 2014-07-29 21:13:
I can't seem to find where I would make my right-mouse-drag rotation of objects a little less quick/severe.
In other words, how much rotation I get with RMouse down moving 1", I'd like to actually take 3"-in other words, less sensitive to mouse.
Any ideas?
TIA!
pat
:)
everytimer wrote at 2014-07-30 19:35:
LeftRightRotationSensitivityI'm not sure if this is what you were looking for, let us know if this helped! Good luck
RotationSensitivity
BogusException wrote at 2014-07-30 21:17:
pat
:)

Setting SphereVisual3D center
lmat619 wrote at 2012-06-13 23:03:
Hey Objo. I'm trying to change the center of a SphereVisual3D object and make it a 2D object by setting the Z parameter to 0. The problem is it won't flatten the sphere. Is there any way to do this? Or is there any other way to make a 2D filled in circle using your toolkit? Thanks. Here's my code:
private void Mouse_Down(object sender, MouseButtonEventArgs e) { lineOne = (Point3D)GetPoints(e); } private void Mouse_Up(object sender, MouseButtonEventArgs e) { lineTwo = (Point3D)GetPoints(e); SphereVisual3D sphere = new SphereVisual3D(); sphere.Center = new Point3D((lineOne.X + lineTwo.X) / 2, (lineOne.Y + lineTwo.Y) / 2, 0); sphere.Radius = Math.Abs(lineOne.X - lineTwo.X) / 2; viewport.Children.Add(sphere); }
objo wrote at 2012-06-15 06:09:
Try a ScaleTransform3D(1,1,0). I am not sure it will look good, but it should flatten the sphere..
http://msdn.microsoft.com/en-us/library/system.windows.media.media3d.scaletransform3d.aspx

Free object manipulation (translatetransform of mouse pos in 3D space)
ps2323ps wrote at 2013-03-01 11:55:
I am looking at transforming a sphere (My own implementation of a Manipulator UIElement) freely in space, thus without visible manipulators and known direction. I started looking at how to translate the mouse movement into a direction, thus be able to use the existing manipulator implementations. But what is the best way to go forward here?

Model Comparison
pggarland wrote at 2012-12-03 20:02:
I have a couple of questions.
1. Why does the ModelViewer example app use ModelVisual3D instead of HelixVisual3D?
2. I would like to load up 2 models into a HelixViewport3D, and use a slider to change opacity between the 2, for comparison purposes. I would have to use a switch to manipulate 1 model at a time. Any thoughts as to the best way to accomplish this?
Thanks,
Paul
objo wrote at 2012-12-03 21:20:
1. Use ModelVisual3D to show models loaded from the supported file formats, use HelixVisual3D to show 3D helix models.
2. I suggest you use DiffuseMaterials on your models, and bind the opacity property of the brushes
http://msdn.microsoft.com/en-us/library/system.windows.media.brush.opacity.aspx
http://msdn.microsoft.com/en-us/library/system.windows.media.media3d.diffusematerial.aspx

Is there any simple way to detect if reading STL file is in ASCII or Binary Format?
How can I found programmatically if reading STL file is in ASCII or Binary format.

Render RectangleVisual3D with borders
Customer support service by UserEcho