Well, I got it to work like that problem was actually what the previous poster said. However I got it to work decently with normal mappingserengeor wrote:Just made a quick test with your code + some other code to make it compile. Does it work for you and is this what you need?
Release.rar - 1.5 Mb
Move around with fps cam (was too lazy to position/rotate it myself )
Parallax problem, maybe a irrlicht bug?
Re: Parallax problem, maybe a irrlicht bug?
Re: Parallax problem, maybe a irrlicht bug?
I see, well I can't be much of help here than, I think.
PS. One of the screens in the first post seams to be 1x1 size.
PS. One of the screens in the first post seams to be 1x1 size.
Working on game: Marrbles (Currently stopped).
Re: Parallax problem, maybe a irrlicht bug?
take a look at the materialTypeParam. It controls the shifting of the parallax mapping. A value of 0.015 to 0.045 does the thing well. Also, make sure that the texture for the relief mapping has the normal in the color channels and the height in the alpha channel.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Re: Parallax problem, maybe a irrlicht bug?
This is a well-known problem with parallax mapping. It's really not meant for shallow viewing angles, because the approximation it makes is almost always incorrect at angles like that. If you're willing to write your own shader for parallax, you can solve this problem by limiting the offset from parallax.