Under Windows and D3D9, an MFC application using the CScrollView class may use the SetScaleToFitSize procedure to scale the view.
However, with Irrlicht, there seems to be some problems:-
1. Create the Irrlicht device passing the hwnd of the CScrollView.
2. Call setResizable(true)..
3. Mouse points correctly correlate to the Irrlicht device view.
4. If the user then resizes the CScrollView window using the mouse, Irrlicht´s internal coordinates stay set to the original size of the CScrollView as formed initially oncreating the Irrlicht device. Irrlich drawing resizes correctly, however, functions such as getSceneNodeFromScreenCoordinatesBB fail as they are expecting coordinates as per the original size of the view, not the changed size after manual resizing!
One could of course calculate the change in relation to the original size and scale the points passed in from the mouse, but Irrlicht should track the change as setResziable was set to true.
Appreciate if anyone know why this occurs?
Calling the Irrlicht procedure OnResize cause problems with D3D9, as it list errors on each call regarding deleting materials, eventually crashing in the dll.
If anyone has any information on this problem please help clarify this issue.
CScrollView resizing
Maybe I´ll wait for release 1. , the next version right, 1.8? I mean this is just a simple fix, to have the engine track the resolution change once setresizing is enabled, right?
By the way, there is no where in the wide wide web that the source for the hardware raytracing examples can be found. Samples are still shown, but the source code links are gone. Any ideas?
By the way, there is no where in the wide wide web that the source for the hardware raytracing examples can be found. Samples are still shown, but the source code links are gone. Any ideas?
xyzzy