CScrollView resizing

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Rob
Posts: 15
Joined: Wed Jan 28, 2009 4:24 pm

CScrollView resizing

Post by Rob »

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.
xyzzy
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This was also fixed in a recent version of Irrlicht. IIRC, it was somewhere in the 1.7.x releases, but you might also check out the nightly built SVN version.
Rob
Posts: 15
Joined: Wed Jan 28, 2009 4:24 pm

Post by Rob »

thanks for the reply!

i´m using 1.7.2, I thought that was the latest, are there patches? Will take a look, but didn´t see any last week... or did I miss them?
xyzzy
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, since it would change existing applications, it might have gone into SVN/trunk only (i.e. ready for Irrlicht 1.8). Maybe give that version a try. There are not too many incompatibilities in the API, so updating should be rather straight forward.
Rob
Posts: 15
Joined: Wed Jan 28, 2009 4:24 pm

Post by Rob »

Maybe I´ll wait for release 1. 8) , 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?
xyzzy
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You should contact the authors of those examples directly. It never has been part of Irrlicht.
Rob
Posts: 15
Joined: Wed Jan 28, 2009 4:24 pm

Post by Rob »

I emailed them, but they didn´t reply.

Thanks for the feedback, Irrlicht is a really good engine, with a lot less bugs than Windows! :lol:
xyzzy
Post Reply