Jump to content

SkyBox (animated or animated textures)


ian
 Share

Recommended Posts

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 :-)

 

 

Link to comment
Share on other sites

@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 :P

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).

Link to comment
Share on other sites

@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:

if it useful i can make that for you but i think that is not optimized for real scene

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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...