[HELP]Force a tile to load and show

nindim

24-04-2007 22:41:11

Is there anyway to force a tile to stay loaded and shown, such as the one my character is on just now.

The problem is that I create a pillar which my character can jump on, sometimes these pillars are quite high and if the camera can't see the bottom of the tile, the entire pillar disappears. I assume this is to do with the tile getting unloaded becaause PLSM2 thinks the tile is out of the view fustrum.

I have tried using the LOADNOW setoption with a secondary camera at ground height, yet after about 45 seconds this does nothing but crash my program, the same as LOADNOW with NULL passed.

I have searched the source code but cannot see anything like what I want, can anyoine either confirm or deny it's existence?

The other use for this would be to deform tiles which are not currently visible. There was another post on this which used the loadnow setoption, but as I have said this simply crashes my app.

Thanks a lot.

nindim

25-04-2007 00:40:06

I have looked into this problem a little further. There are no show/hide/load or unload events happening when the tile disappears.

If I point the cameras lookat a bit below it shows the tile or if I rotate the camera it sometimes shows, it depends on which point of the tile is deformed though. TO put things into perspective, I am deforming the tile quite high, I'd say at least the width of a tile.

Horizon visibility computing is off (not that it did anything in my app at the start, but just in case) I really dont know why this is happening, perhaps something o do with bounding box info for the tile?

Edit: My near and far clip planes are also set appropriately, near being 0.1, so it shoudlnt really be clipping anything.