Wings 3D Development Forum
[fixed] shader => 0,transparent => true - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [fixed] shader => 0,transparent => true (/showthread.php?tid=2823)

Pages: 1 2


[fixed] shader => 0,transparent => true - Hank - 04-12-2019

Hi there,

I did not install 2.2.4 yet, but...

I'm working a little bit with materials (roughness, metallic etc) and got this:


Dump written 2019-4-12_19-53
Version: 2.2.3
OS: Linux 4.15.0-20-generic x86_64
GPU: NVIDIA Corporation | GeForce GTX 650 Ti/PCIe/SSE2
Window: geom
Reason: {{badmap,
{false,
#{shader => 0,
view_from_world =>
{e3d_transf,
{1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,
-1.2831745267884374,-0.46685385086779296,...},
{1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,
1.2831745267884374,...}},
ws_eyepoint =>
{1.2831745267884374,0.46685385086779296,
13.010906546857338},
{ambient_light,'UseDiffuseMap'} => 0,
{ambient_light,'UseEmissionMap'} => 0,
{ambient_light,'UseNormalMap'} => 0,
{ambient_light,'UsePBRMap'} => 0,
{ambient_light,diffuse} =>
{0.8549019607843137,0.06274509803921569,
0.06274509803921569,0.26},
{ambient_light,emission} => {0.0,0.0,0.0,0.26},
{ambient_light,light_diffuse} => {1.0,1.0,1.0,1.0},
{ambient_light,metallic} => 0.45,
{ambient_light,roughness} => 0.06,
{ambient_light,ws_eyepoint} =>
{1.2831745267884374,0.46685385086779296,
13.010906546857338},
{ambient_light,ws_matrix} =>
{1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0},...}}},

Will update the steps if happens again.

BR, Hank


RE: shader => 0 - micheus - 04-12-2019

It happened after you change the material settings and click OK in the material dialog?
Or, it happened in the material dialog while changing some property? Which property you changed when you got the crash?
Or, maybe, were you assigning an image to a material?


RE: shader => 0 - Hank - 04-13-2019

it happens when I change opacity value.
After error window pops-up I click OK but it shows again and again, so I have to terminate the session.

BR, Hank

OK, now I got it.
1 Add any object
2 turn on ambient occlusion
3 change to shader mode
4 duplicate the material
5 set new material color + roughness + metallic
6 apply material to the object
7 go back to the material and change the opacity

+ recording:



BR, Hank


RE: shader => 0 - micheus - 04-13-2019

Thanks Hank.

Checked and that happens always we enable AO.


RE: shader => 0 - Hank - 04-20-2019

yeah, 2.2.4 got the same problem

BR, Hank


shader => 0,transparent => true - Hank - 06-13-2019

hello,

During work with transparent option in material area I got:

Dump written 2019-6-13_8-51
Version: 2.2.4
OS: Windows 8 (build 9200), 64-bit edition
GPU: Intel | Intel® HD Graphics 520
Window: geom
Reason: {{badmap,
{false,
#{shader => 0,transparent => true,
view_from_world =>
{e3d_transf,
{0.7163019434246543,-0.2529058053981006,
0.6503461996829085,0.0,0.9320078692827986,
0.36243803828370164,-0.6977904598416801,
-0.2596150711936347,0.6675990480543397,
3.1797939192201836,6.146082836715412,...},
{0.7163019434246543,0.0,-0.6977904598416801,
-0.2529058053981006,0.9320078692827986,
-0.2596150711936347,0.6503461996829085,
0.36243803828370164,0.6675990480543397,
-2.389349337588752,...}},
ws_eyepoint =>
{-2.389349337588752,-6.656680138883222,
2.104210976914315},
{ambient_light,'UseDiffuseMap'} => 0,
{ambient_light,'UseEmissionMap'} => 0,
{ambient_light,'UseNormalMap'} => 0,
{ambient_light,'UsePBRMap'} => 0,
{ambient_light,diffuse} =>
{0.9764705882352941,0.9882352941176471,1.0,0.2},
{ambient_light,emission} => {0.0,0.0,0.0,0.2},
{ambient_light,light_diffuse} => {1.0,1.0,1.0,1.0},
{ambient_light,metallic} => 0.0,
{ambient_light,roughness} => 0.6,
{ambient_light,ws_eyepoint} =>
{-2.389349337588752,-6.656680138883222,
2.104210976914315},...}}},
[{maps,get,
[{material,default},
{false,
#{shader => 0,transparent => true,
view_from_world =>
{e3d_transf,
{0.7163019434246543,-0.2529058053981006,
0.6503461996829085,0.0,0.9320078692827986,
0.36243803828370164,...},
{0.7163019434246543,0.0,-0.6977904598416801,
-0.2529058053981006,0.9320078692827986,...}},
ws_eyepoint =>
{-2.389349337588752,-6.656680138883222,
2.104210976914315},
{ambient_light,'UseDiffuseMap'} => 0,
{ambient_light,'UseEmissionMap'} => 0,
{ambient_light,'UseNormalMap'} => 0,
{ambient_light,'UsePBRMap'} => 0,
{ambient_light,diffuse} =>
{0.9764705882352941,0.9882352941176471,1.0,0.2},...}},
undefined],
[{file,"maps.erl"},{line,207}]},
{wings_material,apply_material_1,4,
[{file,"wings_material.erl"},{line,445}]},
{wings_draw,'-do_draw_mat_faces/4-fun-0-',4,
[{file,"wings_draw.erl"},{line,929}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{wings_draw,'-draw_mat_faces/4-fun-0-',6,
[{file,"wings_draw.erl"},{line,915}]},
{wings_dl,call,2,[{file,"wings_dl.erl"},{line,178}]},
{wings_render,render_smooth_objects_1,4,
[{file,"wings_render.erl"},{line,270}]},
{wings_render,render_smooth_objects,4,
[{file,"wings_render.erl"},{line,237}]},
{wings_render,render_objects,4,
[{file,"wings_render.erl"},{line,155}]},
{wings_render,render,1,[{file,[...]},{line,...}]},
{wings,'-redraw/2-fun-0-',2,[{file,...},{...}]},
{wx,batch,1,[{...}|...]},
{wings,handle_event_3,2,[...]},
{wings_wm,handle_event,3,...},
{wings_wm,send_event,...},
{wings_wm,...},
{...}|...]}

Stack trace:
[{wx,batch,1,[{file,"wx.erl"},{line,186}]},
{wings,handle_event_3,2,[{file,"wings.erl"},{line,424}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,984}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,951}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,852}]},
{wings_wm,redraw_win,1,[{file,"wings_wm.erl"},{line,893}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
{wings_wm,redraw_all,0,[{file,"wings_wm.erl"},{line,868}]},
{wings,init_part2,2,[{file,"wings.erl"},{line,106}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]

BR, Hank


RE: shader => 0,transparent => true - micheus - 06-14-2019

Hank, we need more information to try reproduce it.

- was the material using any image texture?
- which light model was you using when you got the crash? It happens for both light models?

If possible, could your add a primitive, assign the transparent material to it and link me a project file with this object and material?

I added a cube, create a material with 50% opacity and I couldn't reproduce the problem.


RE: shader => 0,transparent => true - Hank - 06-16-2019

I found this thread is doubled by me Tongue
so, steps can be found here
anyhow, the previous one was for 2.2.3 and in 2.2.4 still occurs...

@Micheus
if possible, merge this thread with linked above
thanks.

BR, Hank


RE: shader => 0,transparent => true - micheus - 06-16-2019

Merged. Thanks for find it.

I'm going to try to not lose it from my sight this time. Blush


RE: shader => 0,transparent => true - dgud - 11-19-2019

Fixed