I'm using AGK2 to write a nautical 3D simulation. I coded with GDK Tier 2 in the past, and love things like integrated physics and gravity!
I'm struggling a bit with atlas indexes for my skybox. I got a skybox image that I am using as an atlas image. I whenever I try to load a subimage, the code runs but I get the whole atlas image instead.
Here is my subimages.txt:
coast_top.png:0:0:512:512
coast_left.png:0:512:512:512
coast_center.png:512:512:512:512
coast_right.png:1024:512:512:512
coast_back.png:1536:512:512:512
coast_bottom.png:512:1024:512:512
I load the atlas image with:
LoadImage( 500, "coast.png" ) //load skybox image
and I try to set a subimage with:
LoadSubImage(500, "coast_top.png") //load the top of the skybox
The code woks well with individual image files, but goes wrong when I try to change to an index image. I'm fine with cutting the index up manually, but I'd like to know what I'm doing wrong for the future.
Does anyone see how I can make this work?
Thanks!