PagingFeature Needed

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
stealth977
Gnoll
Posts: 638
Joined: Mon Dec 15, 2008 6:14 pm
Location: Istanbul, Turkey
x 42

PagingFeature Needed

Post by stealth977 »

There should be a isPageVisible(pageID) function in the interface, it is very much needed for various features as you can guess :)

If there is one and i couldnt find it, sorry for bugging you, its just hard to find a function in the crowded list of paging related headers :)
Ismail TARIM
Ogitor - Ogre Scene Editor
WWW:http://www.ogitor.org
Repository: https://bitbucket.org/ogitor
User avatar
stealth977
Gnoll
Posts: 638
Joined: Mon Dec 15, 2008 6:14 pm
Location: Istanbul, Turkey
x 42

Re: PagingFeature Needed

Post by stealth977 »

Oh also, getPageStatus(pageID) could be nice , the return values could be PAGE_LOADED, PAGE_UNLOADED, PAGE_ONHOLD etc...
Ismail TARIM
Ogitor - Ogre Scene Editor
WWW:http://www.ogitor.org
Repository: https://bitbucket.org/ogitor
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: PagingFeature Needed

Post by sinbad »

Hmm- there's no isPageVisible(pageID) because actually visibility isn't an issue when it comes to paging, proximity is. Whether or not you can physically see a page is not something that's useful to the paging system because it takes no time at all for a camera to turn around or even in an occluded environment peek through a gap. So we just don't use visibility in the system, which is why pages are not forced to care about it.

For your second request, I was deliberately trying not to expose state variables like this too much because it just adds locking for it to be threadsafe. Doing this was the main problem with overcomplicating the resource threading so I didn't want to repeat the same mistake. I would prefer that people interacted with the load sequence via events which require no more locking than the standard process.
ERSmith
Kobold
Posts: 28
Joined: Wed Feb 25, 2009 3:58 pm

Re: PagingFeature Needed

Post by ERSmith »

Speaking of paging. Is it only a rumor that 1.7 contains terrain paging?

If it isn't a rumor, is there a good source of documentation on using it? I have been looking and will continue to look. The wiki tutorial only covers single page terrain use of course since its from an old Ogre build.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: PagingFeature Needed

Post by jacmoe »

Look at the source for the terrain sample. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
ERSmith
Kobold
Posts: 28
Joined: Wed Feb 25, 2009 3:58 pm

Re: PagingFeature Needed

Post by ERSmith »

You all truly hate me. I once had a professor who used that as a threat of punishment. Reading each others source.

If only Knuth taught that way.

"Here, read this source". Though his "leave it as an exercise for the reader" was about as infuriating.

One day I'll figure it out I guess.

Thanks.
Fulmens
Gremlin
Posts: 151
Joined: Sun Jun 22, 2008 8:29 pm
Location: Nantes, France
x 1

Re: PagingFeature Needed

Post by Fulmens »

ERSmith wrote:You all truly hate me. I once had a professor who used that as a threat of punishment. Reading each others source.
If peer code reviewing was considered a punishement, there was either a problem with your mates or your professor :roll:
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: PagingFeature Needed

Post by jacmoe »

Reading Ogre source code is not a punishment.

It's a blessing! :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: PagingFeature Needed

Post by sinbad »

The truth is that paging is there, but I don't feel it's fast enough yet. That's why it's sort of hidden in a cupboard and not being talked about very much. The terrain sample does indeed have a test of it.

I want to get some time to work on this more soon, but I burned a ton of Ogre time on 1.7 and I need to spend a bit of time earning some money to pay the mortgage now ;) Will come back to it soon.
ERSmith
Kobold
Posts: 28
Joined: Wed Feb 25, 2009 3:58 pm

Re: PagingFeature Needed

Post by ERSmith »

Fulmens:

Please do not disparrage my professors or peers, you know nothing of them.

Sinbad:

Thank you, that actually does help. I'm still looking at the terrain sample code anyway. Not much so far on this terrain .dat file format its using yet.
Post Reply