Jump to content

A Skybox Problem


gryff
 Share

Recommended Posts

It has been a while since I first use a skybox - the Christmas village I created. Recently, I have been experimenting with skyboxes again - but with a larger terrain - and have run into a problem.

 

Now I have used a simplified version of code that I first found in Wingnut's "Skybox Tour" that is on the BJS examples webpage.

 

Here is my basic skybox using that code:

 

Basic Skybox - with both ground plane and skybox set to 1000x1000 (x,z dimensions)

 

Now I want to use a Blender created terrain and add the same skybox to it. Here are the results:

 

1: Skybox size =1000 - Skybox + blender terrain

 

2: Skybox size = 200 - Skybox + blender terrain

 

In case 1, the skybox does not show - just the red "clearColor". But that skybox size  worked fine in basic example

 

I've tried it with BJS 1.14 and 2.0 with same results - so I don't think it is a problem with BJS. I suspect the problem lies with my code - but I have no idea where.

 

So suggestions welcome - as I'm not "sharpest knife in the drawer" when it comes to coding :unsure:

 

cheers, gryff :)

 

 

 

Link to comment
Share on other sites

maybe z clipping of the camera

 

TY for the suggestion Raanan. :)

 

I had tried to account for that by setting a maximum Z value of the camera to  2000.

 

BUT

 

I tried to set it with :

myCamera2.MaxZ= 2000;

when of course it should be:

myCamera2.maxZ= 2000;

I guess it just failed silently.

 

TY for making me go back and look at my code.

 

[gryff <--- bangs head on desk :wacko: ]

 

cheers, gryff :)

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...