Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Dx11 mode not supported (need shader model 5)

Discussion in 'Shaders' started by Totchinuko, Apr 14, 2016.

  1. Totchinuko

    Totchinuko

    Joined:
    Apr 14, 2016
    Posts:
    14
    Hi everyone.

    I hope I'm posting this in the right place. I'm relatively new with Unity (or even with video game programming, I was a web developer). So I started playing with those Image Effects in the Unity 5.3.4f1 Standards assets and I ran into this problem on the Depth of Field script saying "Dx11 mode not supported (need shader model 5)", when selecting the Dx11 defocus type. And obviously, it doesn't work at all.

    So I probably could just ignore that and not use DoF or use the other type, but it could be a more annoying problem. I search on Google, this forum, and a few other places. I found some threads about that but no real solutions so far. I have a Nvidia Geforce GTX 770 (here is my Dxdiag), and my drivers are up to date. I'm running Unity personal on Windows 10 with Dx12 (could be the problem?). Oh and the Unity title bar is clearly saying <DX11> and I don't have a Integrated graphic (Never used it, it has been deactivated in the bios since ages).

    I don't know what to do about that so any help would be greatly appreciated =o. And sorry if my english is not good enough.

    Thank you.
     
    Last edited: Apr 14, 2016
  2. Fuegan

    Fuegan

    Joined:
    Dec 5, 2012
    Posts:
    20
    Hello,

    First I think you should be sure that there is no graphic emulation enabled "Edit -> Graphic Emulation" and make sure you are on "no emulation".

    If it's not the problem I'm not really sure, I would assume that if Dx12 is installed on your pc it'll include Dx11 but maybe you could try to install Dx11 independently?
     
  3. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
  4. Totchinuko

    Totchinuko

    Joined:
    Apr 14, 2016
    Posts:
    14
    @elbows : thanks for the tip =). I understand your point, but I don't like the idea of an underlying problem that could cause trouble for something else.

    @Fuegan: hum I don't have an emulation either ._. (I wish It would be that simple). I'm gonna try to Install Dx11 independently in the evening, thanks ^^.
     
  5. Totchinuko

    Totchinuko

    Joined:
    Apr 14, 2016
    Posts:
    14
    Well no luck with dx11 install. It wont even perform the installation because I have a more recent version. Or am I missing a special page with a special installer? Any other idea?

    Actually, do you think it's worth the effort to fix that problem?

    (sorry for the double post)
     
  6. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Try a new project. You don't need "older" DX. You just need the latest (12) and Windows 10 to be able to run anything before.

    As for your problem, it sounds as if you have out of date standard assets. These don't get upgraded when you upgrade your project, and is a common reason for issues like this. To solve, you will want to remove old image effects and install them fresh from asset store.
     
  7. Totchinuko

    Totchinuko

    Joined:
    Apr 14, 2016
    Posts:
    14
    *sight* Alright I feel dumb now ._. Sooo I fixed my problem, turn out it wasn't my computer or anything, just me being stupid. The script is actually giving this warning whenever the GameObject is disable. And since it was on a prefab, the warning was always there. And the reason why it was not working was because the focus point was misplaced by some script.

    But I learn a couple of things thanks to you all =o. So thank you a lot =).