# is this a materials bug of UE4 on Ubuntu 14.04 ??

**URL:** <https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060>\
**Category:** Rendering\
**Tags:** Linux, unreal-engine, bug-report, question\
**Created:** [March 9, 2015, 1:18am UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060 "2015-03-09T01:18:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![apaza610](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@apaza610](https://forums.unrealengine.com/u/apaza610)\
**Post date:** [March 9, 2015, 1:18am UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060/1 "2015-03-09T01:18:30Z")

</div>

hello, I correctly compiled UE4 in ubuntu 14.04 and found one problem when creating a simple material with any texture (png,jpg,tga) :

* * *

Error [SM4] error: too many parameters to ‘vec3’ constructor

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialNormalRaw’ returning vec3

Error [SM4] warning: left-hand operand of comma expression has no effect

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialTranslucentMultipleScatteringExtinction’ returning vec3

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialWorldPositionOffset’ returning vec3

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialWorldDisplacement’ returning vec3

Error [SM4] warning: implicit truncation from ‘vec4’ to ‘vec2’

* * *

I compiled UE 4.7, 4.7.2 and even 4.6 but always the same problem, (in windows the material creation worked well, but my Ubuntu Machine is way more powerful),

 ![33143-problemmaterial.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/0/58087d4f1396a4c0924db468cfa7ce222822ca89.png)

please does somebody knows what I’m doing wrong ??, I’m using this machine:

Ubuntu 14.04

16Gb Ram

GTX760 with proprietary Nvidia drivers

intel core i7

clang 3.3

---

<div class="post-metadata">

**Author:** ![johnny2k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@johnny2k](https://forums.unrealengine.com/u/johnny2k)\
**Post date:** [March 27, 2015, 9:59pm UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060/2 "2015-03-27T21:59:59Z")

</div>

Hi Daegon666,

I’m curious if this still happens if you build it with clang 3.5. Would you try that and test?

---

<div class="post-metadata">

**Author:** ![apaza610](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@apaza610](https://forums.unrealengine.com/u/apaza610)\
**Post date:** [March 28, 2015, 12:28pm UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060/3 "2015-03-28T12:28:55Z")

</div>

I tried compiling with clang 3.5, and even did a Fresh installation of Ubuntu 14.04, only for that, but the same problem is still there, the only workaround I found is to create the materials in Windows ☹ and, come back to Ubuntu to do the rest , I will download the latest UE4 for Linux today from github and try again…

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 28, 2015, 2:04pm UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060/4 "2015-03-28T14:04:12Z")

</div>

Looks like HLSL-\> GLSL transcrpter bugging out

---

<div class="post-metadata">

**Author:** ![apaza610](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@apaza610](https://forums.unrealengine.com/u/apaza610)\
**Post date:** [April 21, 2015, 2:10pm UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060/5 "2015-04-21T14:10:41Z")

</div>

Ok I finally solved this problem when playing with many Nvidia Drivers, for the gtx760, was like a trial and error but one driver worked well 🙂

---

<div class="post-metadata">

**Author:** ![amigo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@amigo](https://forums.unrealengine.com/u/amigo)\
**Post date:** [April 21, 2015, 11:41pm UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060/6 "2015-04-21T23:41:12Z")

</div>

Please tell us what version of the driver worked, so others with a similar error can try to resolve it that way?

---

<div class="post-metadata">

**Author:** ![apaza610](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@apaza610](https://forums.unrealengine.com/u/apaza610)\
**Post date:** [April 25, 2015, 12:10am UTC](https://forums.unrealengine.com/t/is-this-a-materials-bug-of-ue4-on-ubuntu-14-04/310060/7 "2015-04-25T00:10:58Z")

</div>

Hi amigo, the version of driver working with the GTX760 for Ubuntu 14.04 is the 346.59, I will try to test with Debian as well, I hope it works as well.
