07-18-2019, 08:49 PM
1) You can get the values from the camera properties in code - you can subscribe to CameraChanged event to be notified about every change. For example you can get heading with Camera1.Heading.
2) Normally the 3D scene is rendered in such a way that the light is shader based on the angle between the light and the 3D surface - when the light is shining directly at the surface the color is 100% visible, when the light is at 90 degrees angle the surface is black.
There are two ways to prevent that:
a) add an AmbientLight to the scene and set its Color to white - this will illuminate the scene from any angle (search for AmbientLight in the samples project to see how to define one)
b) use EmissiveMaterial - this material is also not shaded by the angle from the light but always emits its color. Also search for that class to get an example.
3 and 4) By default the CameraType is set to PerspectiveCamera - this makes objects smaller when their distance from the camera increases - as in the real world. But you can set the CameraType to OrthographicCamera - this will make the objects with the same size rendered the same regardless of their distance to the camera.
2) Normally the 3D scene is rendered in such a way that the light is shader based on the angle between the light and the 3D surface - when the light is shining directly at the surface the color is 100% visible, when the light is at 90 degrees angle the surface is black.
There are two ways to prevent that:
a) add an AmbientLight to the scene and set its Color to white - this will illuminate the scene from any angle (search for AmbientLight in the samples project to see how to define one)
b) use EmissiveMaterial - this material is also not shaded by the angle from the light but always emits its color. Also search for that class to get an example.
3 and 4) By default the CameraType is set to PerspectiveCamera - this makes objects smaller when their distance from the camera increases - as in the real world. But you can set the CameraType to OrthographicCamera - this will make the objects with the same size rendered the same regardless of their distance to the camera.
Andrej Benedik

