Jump to content
  • Advertisement
  • entries
    232
  • comments
    1463
  • views
    961871

Dynamic cube map reflections

Sign in to follow this  
Ysaneya

283 views

I know that some people will be happy: i'm working on a new video, this time to show off the shaders and effects on the space station. It should be ready sometimes next week.

I've been fixing a few bugs ( the "dark halo" around the planet, especially visible in the ring background ), and i'm reworking the scene setup so that the gas planet is further, and i'll also add a couple of moons.

Most of the work in the past days has been focused on playing with shadow maps, adding some new pipes to the rendering pipeline, and implementing dynamic cube map reflections.

Cube map reflections can be used to do some "mirror" effects, that reflect the environment surrounding an object ( in my case, the space station ). At the moment, the cube map has a resolution of 6x256x256, which is definately a bit low / blurry, but once mixed with all the other shaders, i think it will be pretty unnoticeable.

It's pretty cool to see the stars and all the planets reflected on the station. Makes up for some interesting / confusing point of views. Here's a screenshot, with the other shaders disabled ( only reflections ):



It's interesting to note that the tesselation of the mesh is affecting the reflections quality ( ie. you can see "lines" in the reflections ). The reflection vector is indeed calculated per vertex. If that is noticeable with all effects / shaders, i will probably try to offset it to the pixel shader.

Also, remember that the cube map is regularly updated ( i tried different values, from 10 times per second, up to 1 time per second ) to reflect the environment. If a ship was to pass near the station, you'd see it reflected on the walls.
Sign in to follow this  


2 Comments


Recommended Comments

Will you have satellites orbiting the planets? It would be cool, at least as a visual effect, and possibly for some missions as well.

Share this comment


Link to comment
I've been checking out this project for a while now and I really like how it's coming together. Good to hear that you've fixed the 'dark halo' bug, since it was just about the only little flaw I noticed in your last video. Well, other than that I haven't got anything helpful to mention other than "keep up the good work!" [smile]

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!