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 / Skybox not visible

Author
Message
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 16th Aug 2016 21:30 Edited at: 16th Aug 2016 21:53
Okay, so I got stuck in 3d already at the skyboxes.

I look in the help files and follow the commands instructions to make a skybox visible, but all I get is a black sky, no skybox.

What am I missing to get the internal skybox to work???

Using version 2.0.19


EDIT

My attempts at creating a skybox failed also...


Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Aug 2016 22:41
I think your own skybox has failed because it is affected by light. You should not light a skybox.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 16th Aug 2016 23:16 Edited at: 17th Aug 2016 00:30
Thanks BatVink!

I was back at it finding the answer while you were posting...

SetObjectLightMode( objID, mode )

... mode needs to be zero to turn that off.


The old Skyboxes from FPSC work great in AppGameKit if you use their boxes.

They already have the box set up for 6 separate meshes, so it is a snap assigning those.

Just like the models, convert the DDS files to PNG files, and you're good to go.

Here is a code snippet if anyone wants to try one.... (use arrow keys to look around)




Turning off the light for that object did the trick...


Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1

Attachments

Login to view attachments
JohnStabler
AGK Bronze Backer
11
Years of Service
User Offline
Joined: 16th Aug 2013
Location: Cardiff, Wales, UK
Posted: 17th Aug 2016 21:59
Top tip for users of skyboxes:

If the camera moves, move the skybox and place it with its origin at the camera. This stops the skybox looking weird if players move or jump around a bit.

Login to post a reply

Server time is: 2024-09-29 17:33:42
Your offset time is: 2024-09-29 17:33:42