i don't think there is a tutorial for that but it's simple (if you aren't a 3dgs beginner
).
basically you just have to define a second view:
Code:
view skyview
{
x = 2000; // place it where you geometry for the 3d-skycube is
y = 2000;
z = 1000;
layer = -10; // set the layer lower than the default camera
size_x = 1024; // set the size to your screen resolution
size_y = 768;
flags = visible;
}
always rotate your skyview with the default camera:
Code:
starter rotateskyview
{
while(1)
{
vec_set(skyview.pan, camera.pan);
wait(1);
}
}
and make sure you don't use a background color otherwise the lower layer won't be visible:
Code:
vec_set(sky_color, vector(0, 0, 0)); // put this into your main function for example
(everything off the top of my head so look into the manual if something doesn't work because i used wrong parameter names or made some other mistake...)