drakth Posted January 12, 2014 Share Posted January 12, 2014 Hi everyone, Im trying to add a skybox, to a new project but it seems im doing something wrong. I created a terrain (1024x1024) then from the Materials->Sky i drag and drop the Skybox Texture.mat and i get the following messages Loading material "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.mat..." Loading shader "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/shaders/model/flat/sky.shader"... Loading texture "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.tex..." Deleting material "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.mat" Deleting shader "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/shaders/model/flat/sky.shader" Deleting texture "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.tex" Any ideas on what am i doing wrong? Any help appreciated. Quote Link to comment Share on other sites More sharing options...
Rick Posted January 12, 2014 Share Posted January 12, 2014 Have a look at http://www.leadwerks.com/werkspace/files/file/463-skybox/ and http://www.leadwerks.com/werkspace/topic/8137-skybox-fixed-no-seam/ 1 Quote Link to comment Share on other sites More sharing options...
drakth Posted January 13, 2014 Author Share Posted January 13, 2014 Hi Rick, thank you for your reply. I did what the first link says, created a pivot, with the script and a camera, but if i do that the FPS Player script doesnt seems to work correctly, any ideas? Also, the 2nd link doesnt seems to work for me, it says i dont have permissions to view that topic. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 13, 2014 Share Posted January 13, 2014 Hi everyone, Im trying to add a skybox, to a new project but it seems im doing something wrong. I created a terrain (1024x1024) then from the Materials->Sky i drag and drop the Skybox Texture.mat and i get the following messages Loading material "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.mat..." Loading shader "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/shaders/model/flat/sky.shader"... Loading texture "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.tex..." Deleting material "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.mat" Deleting shader "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/shaders/model/flat/sky.shader" Deleting texture "C:/Users/Matias/Documents/Leadwerks/Projects/TestProject2/Materials/Sky/skybox_texture.tex" Any ideas on what am i doing wrong? Any help appreciated. I recommend attaching your map file in this forum so we can try it ourselves and see. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted January 13, 2014 Share Posted January 13, 2014 It's because, again, the FPSPlayer script creates it's own camera in code.Watch this video https://www.youtube.com/watch?v=dTaSP1fKD7c&feature=youtu.be and in the beginning you'll see how I change the FPSPlayer script to stop it from creating a camera and instead have it accept a camera entity as a parameter. Do that and then you'll bring in a camera object that you pass as a parameter to both scripts. 1 Quote Link to comment Share on other sites More sharing options...
drakth Posted January 13, 2014 Author Share Posted January 13, 2014 Hi Rick, Thanks so much, that fixed the Skybox issue!! Quote Link to comment Share on other sites More sharing options...
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.