SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

1
0

Hello, I am currently importing and displaying a .obj file as a ObjectModel3D object similar to the following syntax of the code provided in the AddObjectsToA3DChart.xaml example:

object:ObjectModel3D TextureSource=”{StaticResource BlackTexture}” Source=”{StaticResource KnightLowObj3DSource}” Position=”0.0625, 0.6, 0.8125″ CoordinateMode=”Relative” Scale=”0.2, 0.2, 0.2″ Rotation=”{StaticResource ObjRotationState}”

Where ObjRotationState is : object:Rotation3D x:Key=”ObjRotationState” Axis=”YAxis” Angle=”180″

The above code excerpt sets the rotation angle at 180 degrees on the Y-axis only for the ObjectModel3D object.

However, I would like to set the rotation angle for the X, Y, and Z axis of the ObjectModel3D object at the same time. Is it possible to set the rotational angle for multiple axis as described? If not, are there suggested workarounds to achieve the same behavior?

Thank you for your assistance.

Version
v5
  • Yuriy Sernivka
    hi there. I’m afraid the current implementation of ObjectModel3D doesn’t allow you to do other rotation manipulation except existing once. If this issue is a show stopper for your project, we could change the encapsulation manner of ObjectModel3D. So, by using the latest nightly build, you can inherit from it and override the rotation defining by using two components: XYZ rotation axis vector and rotation angle. Does it make sense for you?
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.