Page 1 of 1

[resolved] Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Tuesday, 24.September 2013, 18:50
by Skinnytorus
ModMat: Displacement + Tex2D don't work. Dispalcement + Projections other than uv0 and uv1 = crash.
Test file attached.

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Thursday, 26.September 2013, 13:42
by ikam
Strange behavior...
All is ok on my config x86 + windows xp + ATI
Things goes wrong like in your example on x64 + windows 7 + Nvidia

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Thursday, 26.September 2013, 16:11
by Skinnytorus
1) In fact, this is the example from example.wz4. You can find it searching for a displace op.
And it works for me in the latest build of wz4 from fb repository (nvidia + win7 64).
Looks like wz4ce has changed something for nvidia + win7 64 configs...

2) Does wz4ce crash on you with Dispalcement + Projections other than uv0 and uv1?

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Thursday, 26.September 2013, 17:53
by ikam
1/ doesn't work for me with the 2 binaries just doanloaded from fb repo (x86 + x64) on win7.

2/ yes with model and camera it crash

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Thursday, 26.September 2013, 18:47
by Skinnytorus
Man... I think I found the cause of that strange behavior. It's the texture quality setting.
1. Open displace_tex2d.wz4
2. In Document options set Texture Quality to full.
3. Save
4. Restart wz4, reopen the file and... voila! You can see the displacement. :)
The question is why it does not work for DXT...

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Thursday, 26.September 2013, 18:57
by ikam
yeahh, you're right it works with texture quality to full.
I will investigate that point

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Thursday, 26.September 2013, 19:01
by Skinnytorus
Cool. Thanks.

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Friday, 27.September 2013, 16:28
by ikam
On windows XP in works with DXT...

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Friday, 27.September 2013, 21:47
by Skinnytorus
I have no idea why this happens...

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Friday, 27.September 2013, 22:06
by ikam
it seems to be an hardware issue. With some devices, DXT format is not listed to support vertex texture displacement.

You can fix it by adding a MakeTexture2 op and choose argb8888 or argb32f texture format.
Displacement operator should be used whenever with those texture format (if texture quality settings is not set to full in werkkzeug doc preferences)

For crashes with others mode than UV it is another problem, see it later...

Re: Bug: ModMat: Displacement + Tex2D don't work

PostPosted: Friday, 27.September 2013, 22:12
by Skinnytorus
Yes. Your solution works like a charm! :) Thanks.