ian Posted December 11, 2016 Share Posted December 11, 2016 Is possible to create skybox which will be like video instead of images ??? Is there any example? Is it possile to do anythink like that? For example skybox with planets which move around skybox area..?? Quote Link to comment Share on other sites More sharing options...
ian Posted December 12, 2016 Author Share Posted December 12, 2016 Is possible to create skybox which will be like video instead of images ??? Is there any example? Is it possile to do anythink like that? For example skybox with planets which move around skybox area..?? @Deltakosh Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 12, 2016 Share Posted December 12, 2016 Hi ian If you're okay with the entire skybox moving, the simple solution would be to rotate it in the beforeRender loop, Otherwise, if you have animated/video skybox textures, the skybox is just a normal box, instead of using the skybox material, you could split the skybox mesh into submeshes and apply the video textures accordingly. I hope you figure out what's best for your situation :-) Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 12, 2016 Share Posted December 12, 2016 @ian that is possible in Custom Shader ( planet stuff ) Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 12, 2016 Share Posted December 12, 2016 2 hours ago, aWeirdo said: If you're okay with the entire skybox moving, the simple solution would be to rotate it in the beforeRender loop, Weeeeeeeee - http://www.babylonjs-playground.com/#1FXCZ1 Sorry, just really wanted to do that... NasimiAsl, ian and aWeirdo 3 Quote Link to comment Share on other sites More sharing options...
Raggar Posted December 12, 2016 Share Posted December 12, 2016 @NasimiAsl This looks like a very decent skybox shader: http://glslsandbox.com/e#37202.4 I can apply it to a mesh in the SHDR editor, but not in CYOS. I am completely lost when it comes to shaders There are A LOT of cool ones floating around, though. Just take a look at this: https://www.shadertoy.com/view/4ts3z2 Wouldn't that be awesome as some kind of post-processing effect (the storm). Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted December 12, 2016 Share Posted December 12, 2016 @Raggar http://www.babylonjs.com/cyos/#5OCTV#1 http://www.babylonjs.com/cyos/#5OCTV#2 Rotated http://www.babylonjs.com/cyos/#5OCTV#5 more detail (not recommended for web) http://www.babylonjs.com/cyos/#5OCTV#6 1 hour ago, Raggar said: https://www.shadertoy.com/view/4ts3z2 if it useful i can make that for you but i think that is not optimized for real scene ian and Raggar 2 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 12, 2016 Share Posted December 12, 2016 We went over a bunch of this on the shader talk thread, there might be some good content on there for you. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 12, 2016 Share Posted December 12, 2016 7 hours ago, RaananW said: Weeeeeeeee - http://www.babylonjs-playground.com/#1FXCZ1 Sorry, just really wanted to do that... I was thinking more like a space screen or something, slowly rotating xD Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 12, 2016 Share Posted December 12, 2016 Still fun thou! on a more serious note - You can, of course, change the rotation factor. This might help you achieve what you want Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 12, 2016 Share Posted December 12, 2016 i was actually just making an example of that.. http://www.babylonjs-playground.com/#1FXCZ1#1 works fine with clouds aswell^^ ian 1 Quote Link to comment Share on other sites More sharing options...
Raggar Posted December 12, 2016 Share Posted December 12, 2016 5 hours ago, NasimiAsl said: @Raggar http://www.babylonjs.com/cyos/#5OCTV#1 http://www.babylonjs.com/cyos/#5OCTV#2 Rotated http://www.babylonjs.com/cyos/#5OCTV#5 more detail (not recommended for web) http://www.babylonjs.com/cyos/#5OCTV#6 if it useful i can make that for you but i think that is not optimized for real scene Very cool. You don't have to make it, as I think that is better suited for some other time, when I hopefully know what I'm doing. Even getting already-made shaders to work is a pain in the ass for me, so I'm not counting on getting any good at it in the near future. I've watched through some videos, and read some basics on GLSL and shaders, but I reckon it will take a while On another node, if we take that dust storm (and pretend it is optimized as much as possible, while still keeping the same effect) and recreate it with particles, which one do you think would be more performant? If shaders are more or less as performant as particles, I suppose you could use them for some nice rain, snow, dust environment effects etc. Quote Link to comment Share on other sites More sharing options...
ian Posted December 14, 2016 Author Share Posted December 14, 2016 work is a pain in the ass exactly so I'm not counting on getting any good at it in the near future. If some day there will be some future of animation skybox , this will be great future stuff. implement simply VS do implement hard (but allways do same things). Is there any another way to achive this without complicated shader coding ??? greetings Ian Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 14, 2016 Share Posted December 14, 2016 No http://www.babylonjs.com/cyos/#14WKFU#21 Ehhh I stand corrected on that No... you could do a billboard particle system, but it would be just as hard to set that up and would not be that fast or smooth I do not think. ian 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 14, 2016 Share Posted December 14, 2016 http://babylonjs-playground.com/#15EAVV#0 and anything else is a custom shader, the problem is: like with every texture you have to map it correctly. a simple picture on a box. give it a try! maybe you can figure out a solution without dive deep into shaders. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 14, 2016 Share Posted December 14, 2016 That's just a video playback, I thought he was looking for something more dynamic. Nabroski 1 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.