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

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

I have the very same problem, it sucks..

But u can modify rotation in other software like Blender, then export it, that’s a lot of work though.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.