Add3DArchive()
Syntax
Add3DArchive(Path$, Type)Description
Add a new absolute or relative path to the current 3D path list. All the 3D commands which need to load a data (texture, mesh, sky, @link""RenderWorld" "world", ...) use this path.
You may wonder why there is a special way to handle the files for 3D commands ? Because it makes the data access more flexible and now, you can access the data in the standard filesystem or directly in archive file, like .zip. It's a very cool feature, as you can pack all you data in one big compressed file and access them as it was a standard directory.
'Type' can be one of the following value:#PB_3DArchive_FileSystem : Standard directory #PB_3DArchive_Zip : Compressed zip fileExample:Add3DArchive("MyData.zip", #PB_3DArchive_Zip) ; Add the .zip as a directory in the path LoadTexture(0, "MyTexture.jpg") ; load the MyTexture.jpg from the zip LoadTexture(1, "World\Grass.jpg") ; load the Grass.jpg from the zip, in the World\ path
Supported OS
Windows, Linux