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 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,
0

<ht:PanoramaCube3D Source="Models\GrandHotel\"/> Its giving XML PARSE EXCEPTION

Divya Raghuvanshi 10 years ago updated 10 years ago 1
<Window x:Class="PanoramaDemo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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>

0

How to make RTS camera?

Anonymous 11 years ago updated by Nathan Cornelius 1 year ago 142
This discussion was imported from CodePlex

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

0

RotateManipulator help please

Anonymous 11 years ago updated by ไอยดา สุรีวงค์ 4 years ago 1
This discussion was imported from CodePlex

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.



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

0

How to 'dampen' RMouse 'scrolling'?

Anonymous 11 years ago 0
This discussion was imported from CodePlex

BogusException wrote at 2014-07-29 21:13:

Experts,

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:

I think there are some properties of HelixViewport3D that might interest you:
LeftRightRotationSensitivity

RotationSensitivity
I'm not sure if this is what you were looking for, let us know if this helped! Good luck

BogusException wrote at 2014-07-30 21:17:

Thanks!!!

pat
:)
0

Captions to the objects

Anonymous 11 years ago 0
This discussion was imported from CodePlex

finder_sl wrote at 2012-06-11 12:38:

Hello.

I need to add labels to objects, for example, to sign the top of the cube.

Like this: https://dl.dropbox.com/u/22892769/screen.PNG

How can I do that? Thanks.

0

Setting SphereVisual3D center

Anonymous 11 years ago 0
This discussion was imported from CodePlex

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

0

Free object manipulation (translatetransform of mouse pos in 3D space)

Anonymous 11 years ago 0
This discussion was imported from CodePlex

ps2323ps wrote at 2013-03-01 11:55:

Hi,

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?
0

Model Comparison

Anonymous 11 years ago 0
This discussion was imported from CodePlex

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