Home Technical Talk

UDK - Reflection Problems

SH4DOWM4NTIZ
polycounter lvl 8
Offline / Send Message
SH4DOWM4NTIZ polycounter lvl 8
Hi there,

I am having some trouble with reflections in UDK and can't figute out what i am doing wrong...

so here's the problem:

Whenever i apply a cubemap i captured in the scene to one of the assets, the scale is all wrong...the reflection is way to big, as if what it is mirroring would be right next to it. (Intensity turned up a fair bit for demonstration here)

5DpMb33.jpg

36HBbmb.jpg

Here is what my shader looks like:

gNnJkcL.jpg

The only way i got it work properly so far is on flat surfaces, using the reflect actor in the shader, but this is really hitting performance...when i create a static texture from it and use that instead, it does not allign it properly

G610cwI.jpg

x0Gyrj0.jpg

If anyone can help me out with this he will have my eternal grattitude :D

Replies

  • Obscura
    Offline / Send Message
    Obscura grand marshal polycounter
    You are doing everything good, this is how it should look and work. To get good size to your cubemap, you need parallax correction, because without this, it will be always "big" and won't have the same dimensions as your areas. There are a few ways for doing this, but you can find a scripted version somewhere here which would work the best, because thats the easiest to set up (search for parallax corrected cubemap). Without this scripted thing, you would have to type in the dimensions for all your cubemaps. With the scripted thing, you can set the cubemap's dimensions with scaling a dummy which is way easier than setting up every number (uv coordinated too)with hand.
  • SH4DOWM4NTIZ
    Offline / Send Message
    SH4DOWM4NTIZ polycounter lvl 8
    Ah, I see... Thank u very much Obscura :D
Sign In or Register to comment.