Hello, sorry my question have no direct relation with 3DTools, but I need an answer from a WPF and 3D guru so I guess here is a good place.
I try to create my own camera, such as PerspectiveCamera inherits from ProjectionCamera, which inherits itself from Camera.
public class MySpecificCamera : Camera
but impossible to build since compiler keep saying :
Error 2: 'MySpecificCamera' does not implement inherited abstract member 'System.Windows.Media.Media3D.Camera.GetViewMatrix()'
though I added this code mto my class :
internal Matrix3D GetViewMatrix(Camera camera)
There are also many other same kind of errors with different methods...
I checked the code PerspectiveCamera using Reflector and did the same, but no matter, it does not work.
For exemple, Reflector says, for the class PerspectiveCamera, and the method GetProjectionMatrix() :
internal override Matrix3D GetProjectionMatrix(double aspectRatio);
internal Matrix3D GetProjectionMatrix(double aspectRatio, double zn, double zf);
If I try to implement these both method in my class, the compiler keep outputing errors.
Moreoever it says for the first method "no suitable method found to override"...
This #$*&% problem is driving me crazy, and impossible to find code anywhere of somebody inheriting from Camera class...
Hope somebody can tell me what I'm doing wrong and how to solve this problem.
Thanks a lot.