Be it a problems with Skyboxes and trigger ye be havin?

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the when posting support requests.

User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Be it a problems with Skyboxes and trigger ye be havin?

Postby William » December 18th, 2009, 8:24 pm

I have a room that I want to make look like your outside ... my problem is that I don't want the room to have the same skybox as the actual outside. Is it possible to make my room have a nice blue sky while my real outside sky is dark and cloudy?
Last edited by William on December 23rd, 2009, 11:57 pm, edited 4 times in total.
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

User avatar
daniel_san
Moderator
Moderator
Posts: 84
Joined: September 8th, 2009, 11:03 pm
Name: Dan
IRC Username: daniel_san
Contact:

Re: A complicated issue : /

Postby daniel_san » December 18th, 2009, 8:38 pm

Somone correct me if there's an easier way to do this.
I believe you could just use triggers to change the skybox.
Check out master chef ogro. Look at the glitchworld config in particular

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: A complicated issue : /

Postby Hirato » December 18th, 2009, 9:14 pm

since he said inside, he can use the envmap shader series, and just specify the other skybox as the envmap for the windows...
he might need to turn the reflectivity parameter up a notch
This is not a url, clicking it is pointless

User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: A complicated issue : /

Postby William » December 18th, 2009, 9:42 pm

How would I use the triggers to do that ... or where could I find a tutorial? I havent yet worked with triggers yet and getting into them, I'd like to do a lot already with them that I just had planned to put off until later.

That envmap caught my eye a bit too, but other than the entity, I'm not sure how to work with it ... helk I'm not even sure what the entity does lol
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

User avatar
Mike
Administrator
Administrator
Posts: 871
Joined: May 24th, 2009, 12:52 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: A complicated issue : /

Postby Mike » December 18th, 2009, 11:44 pm

In master chef ogro you can check out my teletest map where I have a ton of switches that change the skybox. Here is my .cfg for them:
"level_trigger_9" = [skybox skyboxes/desert]
"level_trigger_8" = [skybox skyboxes/grass]
"level_trigger_3" = [skybox skyboxes/twilight]
"level_trigger_2" = [skybox skyboxes/valley]
"level_trigger_1" = [skybox skyboxes/red2]
"level_trigger_7" = [skybox skyboxes/mountain]
"level_trigger_6" = [skybox skyboxes/pretty]
"level_trigger_5" = [skybox skyboxes/snowy]
"level_trigger_4" = [skybox skyboxes/snow]

When you click on a model you can hit . and see the entity values. The 3rd value is the trigger type and 4th is the trigger number, so for level_trigger 4, my model would have the values 11 4 so that it triggers every time I hit the model and that it uses level trigger 4, which is set to change the skybox to skyboxes/snow Hope that clears things up a bit :) Take care.
-mike
Sign up for our to keep up to date with the Sandbox news!
We also have a , , and a [/b][/color]!

User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: A complicated issue : /

Postby William » December 19th, 2009, 12:18 am

Alright, I'm checking all that out now, I'll let you guys know if I figure it or not. I appreciate all the help guys :)
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: A complicated issue : /

Postby William » December 19th, 2009, 12:33 am

Alright, so your saying that if I take those triggers and put them into the bottom of my level's CFG then I can make those trigger's change the skyboxes to my liking?
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: A complicated issue : /

Postby William » December 19th, 2009, 12:50 am

ALRIGHT!!! I GOT IT!!! Thanks guys! :D
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: A complicated issue : /

Postby William » December 19th, 2009, 2:03 am

Nope ... new problem ... every time I save the map I have to copy and paste

//aliases

"level_trigger_1" = [skybox skyboxes/hill]
"level_trigger_2" = [skybox skyboxes/black]

From the last map ... is there any way that it will just stay ...
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

User avatar
daniel_san
Moderator
Moderator
Posts: 84
Joined: September 8th, 2009, 11:03 pm
Name: Dan
IRC Username: daniel_san
Contact:

Re: A complicated issue : /

Postby daniel_san » December 19th, 2009, 3:21 am

That is because hirato combined the map cfg with the art-cfg.
Everytime you save your map it will write a new art.cfg, overwriting any scripting you've done within the art-cfg.
Just save that information in a file called mymap.cfg (where mymap is replaced with whatever you name your map) :mrgreen:
and you should be good.

-daniel_san


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 3 guests