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

Camera Binding

Anonymous 10 years ago updated by anonymous 5 years ago 0
This discussion was imported from CodePlex

zaurska wrote at 2012-09-03 14:58:

Hi

Can we use binding so the camera follows a moving object?  (the moving object's position being dynamically variable)


Z

 


zaurska wrote at 2012-09-05 14:56:



Answered myself.  More about my lack of binding knowledge than H3D function,  but for general interest for novices like me, this works:

Helix3D should be incorporated into next WPF release!

        <h:HelixViewport3D x:Name="view1" CameraRotationMode="Turntable" IsHeadLightEnabled="True">
            
            <h:HelixViewport3D.Camera>
                <PerspectiveCamera Position="0, -200, 0"  LookDirection="0, 200, 0" FieldOfView="45" UpDirection="0,0,1">
                    <PerspectiveCamera.Transform>
                        <Transform3DGroup>
                            <TranslateTransform3D x:Name="cameraTranslateTransform3D"></TranslateTransform3D>
                        </Transform3DGroup>
                    </PerspectiveCamera.Transform>
                </PerspectiveCamera>
            </h:HelixViewport3D.Camera>
        </h:HelixViewport3D>
then some binding in code since my objects are runtime:
            Binding aBinding = new Binding("OffsetX");
            aBinding.Source = tryMe.outerCasePosition;
            BindingOperations.SetBinding(cameraTranslateTransform3D, TranslateTransform3D.OffsetXProperty, aBinding);
0

Documentation ?!

Anonymous 10 years ago 0
This discussion was imported from CodePlex

Zakos wrote at 2013-09-03 09:08:

I don't find any documentation for "Hello World" demo application , many good comments but 0 documentation , how I start ?

objo wrote at 2013-09-05 07:56:

Sorry, there is no "getting started" documentation yet. But there is a lot of examples, see the source code. Also, all properties and methods should be covered by XML comments.
0

Layers or Groups in Exporter

Anonymous 10 years ago 0
This discussion was imported from CodePlex

Capn_K wrote at 2013-07-30 03:59:

I'm looking at implementing an Exporter that can write 'named layers' (aka 'groups' ) that are defined when the model is created.

At the moment, I'm not entirely sure where to start.

Our code is creating objects using ExtrudedVisual3d and QuadVisual3d which end up as direct children of the viewport.

I was thinking I could create a nested structure of ModelVisual3d elements under the viewport, each of which contains a set of children which make up that layer. But this wouldn't know about the 'name' of that layer.

Similarly, when exporting the decendant exporter class is not called until the base class has traversed down to the Geometry3dModel, at which point it's unaware of the ModelVisual3d which it belongs to.

The obj exporter is the only exporter that I can see which exports groups, but it creates a new group for each GeometryModel3d, which is not what I want in this case.

Should I be looking at Dependency Properties/Attached Properties to achieve this? But where to put them?

Clues? Suggestions?

objo wrote at 2013-09-08 08:48:

Yes, attached properties can be used to set the name of the groups. We could add this property into the library and implement support for it in the exporters. I understand the obj exporter also need some refactoring related to the grouping.

https://helixtoolkit.codeplex.com/workitem/9994
0

make Point Visual3D clickable?

Anonymous 10 years ago 0
This discussion was imported from CodePlex

bennasi wrote at 2012-11-16 11:12:

Is it possible to make a point Visual 3D clickable? If yes how?

Thanks


objo wrote at 2012-11-19 17:00:

No, the PointsVisual3D class is not based on the UIElement3D, so there will be no mouse events. Try changing the base class to ModelUIElement3D!


bennasi wrote at 2012-11-23 16:28:

Could you give me a small example of how I could make a clickable point then? Am really new to wpf 3D.

If not a good reference to how to start with wpf 3d would be much appreciated.

I am trying to make a grid of points (of which the positions I have) and lines connecting them.

0

Consistency with layout vectors

Anonymous 10 years ago 0
This discussion was imported from CodePlex

murray_b wrote at 2012-04-17 04:51:

Hi Objo

I have been using TextCreator and GridLinesVisual3D and noticed a little inconsistency

The layout of these both use two vectors to define the layout.

Ie  GridlinesVisual3D uses : Normal, LengthDirection

TextCreator uses: Over, Up

Essentially the same thing

If you use the same vectors with these they are drawn at 90 degrees to each other.

Do you think they should orientate the same?

Just a thought

Regards

Murray


objo wrote at 2012-04-17 08:02:

Good point, I want the api to be as consistent as possible. I will see if I can improve it. I guess you want to define the normal of the text face? 


murray_b wrote at 2012-04-17 08:08:

Yes that sounds good.   Normal, HeighDirection ? maybe, would seem consistent.

What ever you think is best. 

I just noticed this because i was using a grid and text together and found it strange that I had to use two different sets of vectors to get them to line up.

Thanks

Murray

0

Cutting a mesh with a plane of limited size?

Mehran Maghoumi 10 years ago 0
I know that MeshGeometryHelper has the Cut method that can cut a mesh against a plane.
Obviously, that function uses the traditional math definition of a plane (a plane which has an infinite size).
Is there an easy way to adapt that method to perform a cut using a plane of limited size? In other words, let's say we have the point and the normal of the plane as well as its width and height. How could we cut only a part of the mesh that intersects with this "limited" plane?
Is there a straightforward way of doing this?
0

cross section view

Anonymous 10 years ago 0
This discussion was imported from CodePlex

muthulakshmic wrote at 2013-08-13 13:29:

Could you please help us to writecode to create cross section view in helix 3D, Thanks.

objo wrote at 2013-08-13 14:59:

0

How can I animate process 1 circle transform to other and create a shape along the way?

Anonymous 10 years ago 0
This discussion was imported from CodePlex

chinh_nguyen wrote at 2013-01-04 14:08:

I have 2 circle with different radius and direction, and I need to animate the process 1 circle transform to other and create a shape along the way (like extrude surface but have scale and rotate as well). Anyone has idea or suggestion code to achieve this? Thank in advance

Best regards,

Chinh Nguyen

0

Incomplete file (file length does not match header)

Anonymous 10 years ago 0
This discussion was imported from CodePlex

xgd224743 wrote at 2013-11-13 06:49:

import .3ds ,throw Incomplete file (file length does not match header)
why

tks
0

AnaglyphView3D ModelUpDirection

Anonymous 10 years ago 0
This discussion was imported from CodePlex

thecake wrote at 2012-10-12 13:46:

The HelixViewport3D has a ModelUpDirection property, which affects the turning directions of the Camera - the anaglyph view does not have this property.

How can I change the ModelUpDirection of the anaglyph view, that it corresponds with the Cameras UpDirection?

thanks!


objo wrote at 2012-10-14 16:00:

It should be possible to bind the ModelUpDirection of the CameraController inside the AnaglyphView. I added the issue http://helixtoolkit.codeplex.com/workitem/9970