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

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

Postby Skinnytorus » Tuesday, 24.September 2013, 18:50

ModMat: Displacement + Tex2D don't work. Dispalcement + Projections other than uv0 and uv1 = crash.
Test file attached.
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

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

Postby ikam » Thursday, 26.September 2013, 13:42

Strange behavior...
All is ok on my config x86 + windows xp + ATI
Things goes wrong like in your example on x64 + windows 7 + Nvidia
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

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

Postby Skinnytorus » Thursday, 26.September 2013, 16:11

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?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

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

Postby ikam » Thursday, 26.September 2013, 17:53

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
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

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

Postby Skinnytorus » Thursday, 26.September 2013, 18:47

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...
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

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

Postby ikam » Thursday, 26.September 2013, 18:57

yeahh, you're right it works with texture quality to full.
I will investigate that point
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

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

Postby Skinnytorus » Thursday, 26.September 2013, 19:01

Cool. Thanks.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

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

Postby ikam » Friday, 27.September 2013, 16:28

On windows XP in works with DXT...
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

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

Postby Skinnytorus » Friday, 27.September 2013, 21:47

I have no idea why this happens...
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

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

Postby ikam » Friday, 27.September 2013, 22:06

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...
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

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

Postby Skinnytorus » Friday, 27.September 2013, 22:12

Yes. Your solution works like a charm! :) Thanks.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46


Return to Bug reports



Who is online

Users browsing this forum: No registered users and 0 guests

cron