Jump to content

Skyboxes


drakth
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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

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.

  • Upvote 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...