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

Reset Camera {Home} key and DBL CLICK Middle Mouse Button flips model

Anonymous 11 years ago 0
This discussion was imported from CodePlex

michaeldjackson wrote at 2012-10-18 18:07:

Why does the Home key and DBL CLICK middel mouse button always flip my model? I have all Viewport settings as default, meaning I don't set any Axis, UpDirection, LookDirections, etc.

I draw one simple pipe, run, hit home key and model flips upside down.


objo wrote at 2012-11-02 22:47:

The default up direction is (0,0,1) in this toolkit (as in mathematics, I know (0,1,0) is standard in computer graphics...)

Is your model using Y-up? Did you set the ModelUpDirection property of the viewport? There may be a bug. http://helixtoolkit.codeplex.com/workitem/9962

0

center loaded obj

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

Kszyhu wrote at 2011-12-09 18:30:

Hi!

First of all - great work with Helix. Really good 3dViewPort!

But now question - is it possible, to "AutoFit" or "Center" object when loaded? When I load object (obj file) it shows "somewhere" in viewpost, and I have to scroll out until it shows :o Is it possible, to make it automaticly? like: Model3d.Camera.CenterToObject() or Model3dCamera.FitObjectToScreen()? 

Best wishes

Chris


objo wrote at 2011-12-09 18:44:

hi Chris, try the ZoomExtents() method on the HelixViewport3D. Or set ZoomExtentsWhenLoaded=true if the model was added before the view is loaded.

See all properties/methods of the control at http://helixtoolkit.codeplex.com/wikipage?title=HelixViewport3D


Kszyhu wrote at 2011-12-09 18:59:

:o ! It works! Solution was so close, but I was too lazy, to read all descriptions :P

Thx for help!

0

Hide part

Anonymous 11 years ago 0
This discussion was imported from CodePlex

RusGIS wrote at 2011-12-07 10:46:

How can I hide part the 3D model? For example to remove the roof of the building. Is this possible?


objo wrote at 2011-12-07 11:11:

Remove the Model3D or Visual3D from the visual tree. There is no "Visibility" flags in the WPF 3D model.

0

disable mousewheel zooming

Anonymous 11 years ago 0
This discussion was imported from CodePlex

charlh wrote at 2011-12-02 07:28:

hi there. Just want to first say thanks for your awesome code, absolutely brilliant. Excuse the simple noob question, but is there anyway to disable the mousewheel zooming function on your HelixViewport3D?


objo wrote at 2011-12-03 11:58:

try to set IsZoomEnabled = false on the HelixViewport3D. This should also disable zooming by the right mouse button.

The MouseWheel handling is not bound to a gesture since the standard mousewheel gesture is missing the delta value. 

0

using arrow keys to roll camera instead of pan

Anonymous 11 years ago 0
This discussion was imported from CodePlex

mihaipruna wrote at 2013-11-22 20:42:

Basically I need to be able to use the arrow keys to effect custom transformations to the camera. I already coded a Quaternion but I think these key events are intercepted by the camera controller.
How do I stop that?

objo wrote at 2013-12-02 20:04:

The arrow keys are handled by the KeyDown event. Try to use the PreviewKeyDown event or add some InputBindings!
0

3D scatter plots?

Anonymous 11 years ago 0
This discussion was imported from CodePlex

cureos wrote at 2014-04-17 18:18:

Many thanks for sharing this amazing library!

I am seriously considering replacing my outdated 3D charting library with the Helix 3D Toolkit. However, I have one concern, and I have not been able to find any clarification in this discussion forum or the toolkit samples, nor through a Google search, so here goes:

Is there any support in the Helix 3D Toolkit to draw 3D scatter plots, similar to the MATLAB function scatter3? I am primarily looking for the ability to plot small spheres in the specified XYZ position with different fill colors depending on the point values, like this:



Best regards,
Anders @ Cureos

objo wrote at 2014-04-29 10:24:

See the SurfacePlotDemo for a similar example. Use a MeshBuilder to create a geometry of all the spheres (performance due to high number of triangles can be a problem) and use texture coordinates and a gradient material to define the fill colors! This would be a cool example to add :-) https://helixtoolkit.codeplex.com/workitem/10039
0

CameraController and ManipulationCompleted

Anonymous 11 years ago 0
This discussion was imported from CodePlex

mplisov wrote at 2013-03-12 14:35:

Hello,

I need some event that would be triggered when inertia after moving/zooming camera is finished.
I was hoping that it would be CameraController.ManipulationCompleted, but it doesn't get triggered.

Could you please help me on this?

Best regards Mikhail
0

Tutorials

Anonymous 11 years ago 0
This discussion was imported from CodePlex

elkhalafy wrote at 2014-02-18 13:01:

__salam, peace

guys I want to pdf books or video tutorials to learn helix toolkit ?

thanks
__

objo wrote at 2014-02-19 21:01:

I recommend looking at the source code for the examples and unit tests. The examples and unit tests cover most of the functionality of this library.
See "Other WPF3D links" on the home page for tutorials on the WPF 3D model. I really recommend Petzold's book!

elkhalafy wrote at 2014-02-20 12:08:

thanks for answer
0

How to select models separately in HelixViewport3D while cameramode in walkaround?

Ardahan 10 years ago updated by anonymous 6 years ago 5

I want to move object in viewport separately but when I load two model while cameramode is "walkaround" it moves both objects together. How to move each model separately.

Note: I can select each model via hit testing method.

0

Cross sectional view in Cube using Helix in WPF

Anonymous 11 years ago 0
This discussion was imported from CodePlex

terry_513 wrote at 2014-02-06 15:30:

We have structure of our three dimensional view as combination of a solid rectangle and a cylindrical pipe penetrating it in between. Both pipe and rectangle has different color and we want a way with which we can cut its slice at any depth and able to see the view of the combined structure of pipe and solid rectangle at that point.

Please suggest a way to implement the above.