Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Increasing renderdistance

Author
Message
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 1st Dec 2012 19:12
Hi, I started experimenting with a spacegame I have been thinking about making. The first thing I did was create a skybox thing, but I noticed a problem, when I set my skybox object scale to anything above 650, the corners don't render, and if I increase the scale, more and more of the object dissapears. My guess is that it has something to do with renderdistance, and as far as I can see, there is no command to change that. Im using beta 1085 (tier 1 but hopefully T2 soon) though.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 1st Dec 2012 19:26
SetCameraRange should fix it
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 1st Dec 2012 19:32
That seems to have fixed it, thanks. Also, is there any documentation for the 1084 and 5 betas avalible?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 1st Dec 2012 19:40
The documentation should be in the AGK/IDE/Help folder
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 1st Dec 2012 19:52
Mine dosn't seem to update when I install new versions...
lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 1st Dec 2012 23:30
You mean you don't have the new commands at all in the help files?

I got thrown because it still said "What's new in 1.07" in the helpfile but all the new commands are in there for 108. So my advice is, double check.

My hovercraft is full of eels
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 2nd Dec 2012 11:47
Yep, that seems to have been my problem, thanks for the info
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 3rd Dec 2012 19:31 Edited at: 3rd Dec 2012 20:33
The Zoq2,

Skyboxes don't need to be really "over-sized" (can be very small) and don't need to "contain" your entire scene.

You have to deal with the depth test of your skybox object with this command which will permit to draw your objects behind your skybox (exists since AppGameKit 1083b i guess) :




And remember to make your skybox following and centered on the X,Y,Z Camera Position and set its collision mode and lighting to 0 After it's just some position adjustments to make it looking well And then you can reduce your camera range depending on your needs (and performances)

hope this helps

(just tested and it works fine)
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 3rd Dec 2012 19:51
That sounds like a better way of doing it

i'll try it later

Login to post a reply

Server time is: 2024-05-02 03:19:25
Your offset time is: 2024-05-02 03:19:25