Skip to main content
GameDev.net gamedev.net
🔒 Locked

Odd phenomenon in reflection

Started by zonozz Apr 14, 2013 at 3:30 AM 2 replies 1.9k views
Original Post
zonozz
zonozz

Hi everyone !

I'm practicing "reflection" effect follow the "Raster Tech" way.(http://rastertek.com/dx11tut27.html)

But I see some strange result. I debug the author's source code and my source, both have that odd phenomenon.

Note that marked aera :

[attachment=14845:Odd Phenomenon.jpg]

What's that ?

When I rotate my camera about X ( Look down at floor ) :

[attachment=14846:Odd Phenomenon 2.jpg]

Many odd reflection obj appeared !

I dont know how this phenomenon is generated.

The code is following the link I mentioned above. ( http://rastertek.com/dx11tut27.html )

zonozz
zonozz
sp waiting for answer thanks
Jason Z
Jason Z

It looks to me like your reflection texture is wrapping because that same figure in your first image is the same shape as it is at your character's legs. I'm not familiar with the rastertek tutorials, but is there any provisions for clamping the reflection texture coordinates to the [0,1] range?

Jason Zink :: DirectX MVP   Direct3D 11 engine on CodePlex: Hieroglyph 3 Direct3D Books: 
zonozz
zonozz

It looks to me like your reflection texture is wrapping because that same figure in your first image is the same shape as it is at your character's legs. I'm not familiar with the rastertek tutorials, but is there any provisions for clamping the reflection texture coordinates to the [0,1] range?

Thank you , I already fix it, the problem is in the view matrix calculate, I didn't calculate rotation about X and Y, so the result is error. Now I understand the author's way, it makes a virtual camera and do mirror movement.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.