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

PagingFeature Needed

Post by stealth977 » Wed Mar 03, 2010 1:18 pm

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 :)
0 x
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

Re: PagingFeature Needed

Post by stealth977 » Wed Mar 03, 2010 3:00 pm

Oh also, getPageStatus(pageID) could be nice , the return values could be PAGE_LOADED, PAGE_UNLOADED, PAGE_ONHOLD etc...
0 x
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: 19261
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
Contact:

Re: PagingFeature Needed

Post by sinbad » Thu Mar 04, 2010 1:29 pm

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.
0 x

ERSmith
Kobold
Posts: 28
Joined: Wed Feb 25, 2009 3:58 pm

Re: PagingFeature Needed

Post by ERSmith » Mon Mar 15, 2010 2:31 pm

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.
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: PagingFeature Needed

Post by jacmoe » Mon Mar 15, 2010 2:33 pm

Look at the source for the terrain sample. :wink:
0 x
/* 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 » Tue Mar 16, 2010 3:41 pm

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.
0 x

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

Re: PagingFeature Needed

Post by Fulmens » Tue Mar 16, 2010 4:49 pm

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:
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: PagingFeature Needed

Post by jacmoe » Tue Mar 16, 2010 4:56 pm

Reading Ogre source code is not a punishment.

It's a blessing! :)
0 x
/* 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: 19261
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
Contact:

Re: PagingFeature Needed

Post by sinbad » Tue Mar 16, 2010 6:07 pm

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.
0 x

ERSmith
Kobold
Posts: 28
Joined: Wed Feb 25, 2009 3:58 pm

Re: PagingFeature Needed

Post by ERSmith » Wed Mar 24, 2010 5:05 pm

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.
0 x

Post Reply