gryff Posted May 21, 2015 Share Posted May 21, 2015 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 cheers, gryff Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 21, 2015 Share Posted May 21, 2015 Without checking the code (on my phone :-)) - maybe z clipping of the camera? gryff 1 Quote Link to comment Share on other sites More sharing options...
gryff Posted May 21, 2015 Author Share Posted May 21, 2015 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 ] cheers, gryff GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 21, 2015 Share Posted May 21, 2015 :-)I'm happy the problem was solved, don't bang the head too hard!This is, by the way, why I love TypeScript. Solves just that... 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.