- Messages
- 268
- Country
This is an example of a preview of a flight simulator model inserted directly into a treeview using WPF. It is extremely trivial code, and was done in one evening. Obviously I already had the decoding of the MDL file done). Yes, I know the tree is ugly without icons etc, yes, I know the camera angle is not perfect. Yes, I know it is not antialised (and I have no idea if this can be changed under XP/Vista etc) - but it is a standard treeview, nothing custom whatsoever.
http://www.moellebjerg.com/FlightSimulator/ProjectExplorerPreview.PNG
The model is selected because it does not have any texture. Textures are supported in the WPF 3D models, but I am not aware of which texture formats it can load.
If you want to see the treeview in action, download this:
http://www.moellebjerg.com/FlightSimulator/ProjectExplorerPreview.zip
and install this before running the exe file:
http://www.microsoft.com/downloads/...90-26E6-44E0-8780-5D3CCD3D94ED&displaylang=en
The model will currently rotate initially. There is no way to restart it. I do not think the preview should rotate, but if you click the model and hold down the button you should probably be able to rotate manually.
http://www.moellebjerg.com/FlightSimulator/ProjectExplorerPreview.PNG
The model is selected because it does not have any texture. Textures are supported in the WPF 3D models, but I am not aware of which texture formats it can load.
If you want to see the treeview in action, download this:
http://www.moellebjerg.com/FlightSimulator/ProjectExplorerPreview.zip
and install this before running the exe file:
http://www.microsoft.com/downloads/...90-26E6-44E0-8780-5D3CCD3D94ED&displaylang=en
The model will currently rotate initially. There is no way to restart it. I do not think the preview should rotate, but if you click the model and hold down the button you should probably be able to rotate manually.