Question about parallax

http://postimg.org/image/cacj5is4n/

Parallax effect on the floor looks nice, but look at the walls. The question is: is the parallax designed to be used on other surfaces than floor/ground? Maybe someone have a ‘quick fix’ for that? On the forum I found only old topics…

My settings:
SteepParallax : true
ParallaxHeight : 0.09

Maybe your tangents are wrong. Do you even have tangents?

I made floor on my own, it is a custom mesh. There are normals, TangentBinormalGenerator is used.

Walls and roof are made of tiles, every tile is converted from Blender.

So yes, as far as I know i have tangents.
Look again at the screen, to the lower right corner, the bricks on the wall are all rised to the top. It seems to me that they should be orthogonal to the surface, not parallel, but now it’s somehow connected with the camera’s angle. This is more noticeable for higher values of ParallaxHeight. If you want I can provide next screenshot later.

Which card and OS? I also had strange direction issues with parallax at some point, dunno if they’re completely fixed @pspeed

So the walls and roof have also had tangents generated? It looks like they are incorrect, is all. Proper tangents are 100% necessary for proper normal maps and parallax.

@normen said: Which card and OS? I also had strange direction issues with parallax at some point, dunno if they're completely fixed @pspeed

JME’s parallax has always had consistency issues from one version to the next… but invariably if the tangents match the bump map then you can make it look right. Proper tangents being the key… matched with the y-inversion of the bump map vectors, of course.

In the picture, it looks to me like incorrect tangents.

I’ll make a fast experiment with rotating the camera, so the floor (which have correct normal & tangents) will be in place of walls and one wall will be on the bottom.
But later, I’m at work right now and don’t have my project files here.

@pspeed
You were right, it was a lack of tangents. I did not know that loading a j3o file I still need to generate them. Thank you.

@FrozenShade said: @pspeed You were right, it was a lack of tangents. I did not know that loading a j3o file I still need to generate them. Thank you.

If you don’t need them then they are a sizable waste of memory for no good reason… so the loader can’t really guess whether it should auto-generate them or not. Thus, if you have normal maps or bump maps then you will need to generate them. (You can actually open the j3o in the scene editor, generate tangents, and save it again if you’d rather not do it at load time.)