Page 1 of 1

Can not select DX9

Posted: 27 Feb 2015, 22:36
by dl_studios
I'm Getting this error when trying to build for windows on my mac: Assets/Editor/NoesisGUI/Platform_.cs(5,0): error CS1029: #error: 'DirectX is not active! Please, activate it in Window -> NoesisGUI -> Settings'

I go to Window -> NoesisGUI -> Settings. I see the check box but is greyed out and unclickable. https://www.dropbox.com/s/sdtam7c19dzoj ... M.png?dl=0

My build settings are set to Windows x86. I do not have directx113D selected in the player.

The only asset in the project is Noesis, which leads me to believe that it is something between the interaction between Unity and Noesis that is not working.

I'm using the latest asset store version of Noesis on Unity version 4.6.3.1.

Any suggestions on how to fix this would be appreciated.

Thank you.

Note: this bug is hitting us at a particularly bad time as we need a windows build by monday. Any priority you can give to this issue would be greatly appreciated.

Re: Can not select DX9

Posted: 28 Feb 2015, 10:31
by sfernandez
Hi,

Unfortunately it is not possible now to generate NoesisGUI resources for DirectX from a Mac, only GL resources.
But there is something wrong with our code, because it should be possible at least to generate a Windows GL build from a Mac.

To generate a Windows GL build, please follow these steps to avoid that error message:
  • Delete Assets/Editor/NoesisGUI/Platform_.cs file.
  • Open Assets/Editor/NoesisGUI/NoesisSettings.cs and comment lines 116 to 150, so Platform_.cs is not generated again
  • Open Window -> NoesisGUI -> Settings window, and make sure GL is selected.
  • Click the Build button to generate NoesisGUI GL resources.
  • Open File -> Build Settings... window, select PC, Mac and Linux standalone.
  • Select the Windows x86 option.
  • Click the Build button.
Let me know if it is working, I have not access to a Mac machine right now to test it.

Greetings.

EDIT: Forget this message and read next post ;)

Re: Can not select DX9

Posted: 28 Feb 2015, 13:00
by sfernandez
Hi,

I've been thinking about this issue because there shouldn't be real technical problems to generate DX resources from a Mac machine. Although right now we are not allowing it by disabling the DX9 platform.

Please forget my previous post and follow these steps to allow building DX and GL resources for Windows from a Mac machine:
  • Delete Assets/Editor/NoesisGUI/Platform_.cs file.
  • Open Assets/Editor/NoesisGUI/NoesisSettings.cs and comment lines 116 to 150, so Platform_.cs is not generated again.
  • In Assets/Editor/NoesisGUI/NoesisSettings.cs comment also lines 223 to 227, so DX9 checkbox can be clicked.
  • Open Window -> NoesisGUI -> Settings window, and make sure DX9 and GL are selected.
  • Click the Build button to generate NoesisGUI DX9 and GL resources.
  • Open File -> Build Settings... window, select PC, Mac and Linux standalone.
  • Select the Windows x86 option.
  • Click the Build button.
As before, let me know if it is working, it should be :)

Bye.

Re: Can not select DX9

Posted: 09 Mar 2015, 18:43
by dl_studios
I can confirm that this fixed the issue. Thank you so much for your quick response. It was very helpful.