Justintime9 wrote:How do I do that? Is there a tutorial somewhere, on the subject? Is there a limit of pages I should break it into? (if I make a page for each room, will it be laggy or something)
It's actually pretty simple. In the Book.Txt file in Blender (where you set your age sequence) There's a script that looks like this:
- Code: Select all
pages:
- index: 0
name: mainRoom
For each page you'll need to add a new Index and page name. So, as an example:
- Code: Select all
pages:
- index: 0
name: mainRoom
- index: 1
name: Exterior
- index: 2
name: interior
Then, for every object that will be on a specific page. Like all your exterior objects on the Exterior page you'll need to add this in the properties setting in blender for each object:
- Code: Select all
string|name:page_num|1
The properties setting is where you set the bounds for an object. just click the "Add Property" button and it will set a default float property. change it to a string with the drop down menu, and then put your 'page_num' into the one that says 'Name: 'and the # into the last box.
For easy setting of these properties, set it for a single object. Select every other you want on that page with the
You can do this with just one object, and then select all the other objects you want on that page, SHIFT+RMB one at a time, and then finally select the object you first added the properties to last. then just type CTRL+C it will give you a list of choices to copy, choose Properties, then in the next menu it pops up "page_num"
One you export, pyprp will export each page individually, starting with the first index and then working to the last. Some pages will export faster than others because those with less objects require less time etc. All pages are loaded upon link in to an age, so you shouldn't notice a performance issue in game.
Cyan for instance used multiple pages in almost all their ages. Even Negilahn and Dereno had two pages. The only thing you need to be careful of is that pyprp does not, by default, set referencing for objects on other pages. So if you have an object you need to click on, make sure everything tied to that object (cameras, click regions, lights etc) are on the same page, even responders and pythonfile mods, otherwise pyprp will create them with blank settings.
You can also speed up the export time by cutting back on vertex counts and using smaller textures. As a general rule:
background textures (like sky's, and background vista's) should be the larger textures, while general textures (like rock, sand, etc) should be 512 x 512. Smaller textures for things like plants, books etc should be about 512 x 256 and 256 x 256. Everything else (like lamp glares etc) can be 128 x 128 or 64 x 64 as they require even less detail. For instance the rock used by Cyan for the hood and cavern is only 512 x 512.