How To : Hide the Cursor

There are many times when doing a P3D presentation that you either don't want to see a cursor at all, or only sometimes, like when you need to click on something. So there are two methods of dealing with this.

Always Hide Cursor

If you don't want to see a cursor at all, then using an <env> tag in the show xml file is the best option and you would add the following line, beside any other <env> tags just below the <presentation> tag.


To show the cursor again, you can either change NO to YES, or just comment out as normal.


Interactively Show and Hide Cursor

To be able to interactively show and hide a cursor within P3D requires us to replace the system cursor, with a custom cursor, that also has the advantage that it appears correctly in both eyes, rather than just a single eye as the system cursor does. This is really important when using stereo.

You can of course create your own custom cursor if you want, but there is one included in the osgconfigs folder that can be downloaded from the Present3D Installation Page. If you then put the osgconfigs somewhere it can be easily shared, for instance in the Users home folder, so you would use the following, just changing 'username' to your username.

setenv P3D_CURSOR /Users/username/osgconfigs/cursors/redCursor.png

You can now either use the 'c' key to  toggle the cursor on or off, or within a slide add a <key> tag to do the toggle.




I hope this is helpful, personally I would always use one of the above methods to hide the cursor, along with the new feature that allows you to stop the top menubar poping up and you can find how to do that here : How To : Control MenuBar Visibility





No votes yet