V!nc3r Posted December 20, 2016 Share Posted December 20, 2016 Hi all, I tried to set up a scene in the playground with a custom cubeTexture, but playground doesn't like it https://www.babylonjs-playground.com/#1XOKHQ#1 So for now my simple scene is on my ftp : https://www.nothing-is-3d.com/tmp/cubemapBJS/ This is a screenshot from the photoshop file used to generate the cubemap (based from the famous tropicalSunnyDay) Exported files are located here : https://www.nothing-is-3d.com/tmp/cubemapBJS/cubemap/ And here what i get, check how the pz is mapped : So simple question why the cubemap is inverted ? Is it me who is doing it wrong ? Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 20, 2016 Share Posted December 20, 2016 @V!nc3rYes, i think it is something about how reflection works, and also how the (link to a random blog: ) cube map is definedhttp://babylonjs-playground.com/#1H7ZZH#0 V!nc3r 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 20, 2016 Share Posted December 20, 2016 so here is the short versionhttp://babylonjs-playground.com/#1H7ZZH#1 you see the px reflection and your camera starts -z. just think about it. Pryme8 1 Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted December 20, 2016 Author Share Posted December 20, 2016 31 minutes ago, Nabroski said: it is something about how reflection works Ouch, my topic seems to be a n00b question indeed. I don't know why I don't drawn a parallel between reflectionTexture and mirror IRL... Can't wait vacations to have some rest Nabroski 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 20, 2016 Share Posted December 20, 2016 @V!nc3r @Sebavan has a really cool blog, check this out: https://seblagarde.wordpress.com/?s=cubemap @rich can you see this gif? would be kind of cool, if i can phrase a babylonjs - playground with a live prieview (like shadertoy), maybe also useful for other engines in this forum. V!nc3r 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 20, 2016 Share Posted December 20, 2016 @Nabroski This is not my blog but one I like to read. This is the blog form the director of rendering research at Unity. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 20, 2016 Share Posted December 20, 2016 @Sebavan What ? I could be your blog, man. Seblagarde / Sebavan so close. For me its your blog. I will tell nobody. Sebavan and V!nc3r 2 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.