Jump to content

  • Log In with Google      Sign In   
  • Create Account


Odd phenomenon in reflection


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 zonozz   Members   -  Reputation: 158

Like
0Likes
Like

Posted 13 April 2013 - 09:30 PM

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 :

Odd Phenomenon.jpg

What's that ?

 

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

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 )

 

 



Sponsor:

#2 zonozz   Members   -  Reputation: 158

Like
0Likes
Like

Posted 14 April 2013 - 03:43 AM

sp waiting for answer thanks

#3 Jason Z   Crossbones+   -  Reputation: 4590

Like
1Likes
Like

Posted 14 April 2013 - 05:58 AM

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?



#4 zonozz   Members   -  Reputation: 158

Like
0Likes
Like

Posted 14 April 2013 - 08:42 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS