How to create a "Mirror Ball" type Pinball

Hello,

I am trying to make a Pinball that has a "Mirror Ball" look to it. This Pinball doesn't really need to reflect what's around it, just needs to look like it's a highly-polished piece of chrome.

In other words, the texture shouldn't rotate with the ball, but always look pretty much the same form the perspective you are playing from.

I am developing this for mobile, so I need the shader to be fairly simple. Here are some examples of exactly what I am trying to do (I can't seem to figure out how to get an effect like this with any of the built-in shaders.)

alt text

alt text

As you can see from these two screenshots, what Pinball HD appears to be doing is just have a static reflection-type texture on the Pinball. You can see the pinball looks identical in the two shots, and it's just at slightly higher angle in the second image.

I don't need the reflection on the table, just a basic shader that doesn't rotate with the 3D Object.

1 Answer

1

You can put a texture on the ball and just have the ball not rotate. You could use a cubemap if you wanted to get fancy.

Ah, that makes total sense. So wrap the physics ball with a mesh ball that's just there for decoration. I knew there was a simple solution. :)

If you have light sources in your game you could also use a simple Specular shader instead of the cubemap.

@Smorpheus: even the physics ball doesn't really need to rotate; you can freeze the rotation on all axes.

Am I crazy for thinking that would make the ball perform oddly? Shouldn't restricting rotation mess with the physics system to some degree?

@Smorpheus: Depends on how much friction you have. If there's no friction, the ball wouldn't normally rotate anyway.