Guppy Posted September 11, 2014 Posted September 11, 2014 (the ones from the work shop) How are they supposed to work? Here is what I've tried; Modified the FPScontroler script to take an optional external camera, IMO this should be part of the default script. I also added self.camera:SetKeyValue("skybox_texture","Materials/Sky/skybox_texture.tex") self.camera:SetKeyValue("skybox_intensity","1.0") On said camera I've tried plugging in each of the scripts in turn to no avail - in fact when saving the map and reloading the camera has no scripts attached. I've tried to open the script in the editor to try and find a hint of how to use it, but I cannot - guess it's some sort of content protection scheme kicking in there. Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k
shadmar Posted September 11, 2014 Posted September 11, 2014 No need to mod the FPScontroller script. Add a pivot to your scene and attach a simple controlscript like this in Script:Start() to locate any camera (also the one created in the FPSPlayer) local world=World:GetCurrent() for i=0,world:CountEntities()-1 do if world:GetEntity(i):GetClass()==Object.CameraClass then self.camera=world:GetEntity(i) tolua.cast(self.camera,"Camera") break end end if self.camera then self.camera:SetKeyValue.... ... end Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Guppy Posted September 11, 2014 Author Posted September 11, 2014 That certainly works - I just find it more intuitive to have the camera as a separate entity so I can adjust FoV and what not independent of the fps script One thing you didn't answer is how do I turn on for instance the sky box? I may be missing something blatantly obvious Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k
shadmar Posted September 11, 2014 Posted September 11, 2014 Skybox is kinda of outdated as a postprocess since Josh now has this buildt in the root tab. But you just add it as a regular postprocess effect. 00_skybox... in the effects tab under root. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.