Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Odd phenomenon in reflection

4: Adsense

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   

169
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 )

 

 



#2 zonozz   Members   

169
Like
0Likes
Like

Posted 14 April 2013 - 03:43 AM

sp waiting for answer thanks

#3 Jason Z   Members   

6430
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   

169
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.