Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Materials can't compile on Windows #22

Open
nabeelsherazi opened this issue Apr 7, 2021 · 0 comments
Open

Materials can't compile on Windows #22

nabeelsherazi opened this issue Apr 7, 2021 · 0 comments

Comments

@nabeelsherazi
Copy link

Hello!

I'm new to this project and just trying to get it to build for the first time on Windows 10. I'm using a clean Anaconda environment with all dependencies shown as listed in requirements.txt. I haven't encountered the DLL load issue that is mentioned in the README for Anaconda.

Instead, when I run main.py, I find that every material is failing to compile. Each one provides this error:

 (Material.py:200)
[WARNING |2021-04-06 22:51:19.165] Validation failure (0):  (Material.py:216)
[ERROR   |2021-04-06 22:51:19.165] Link failure (0):  (Material.py:228)
[ERROR   |2021-04-06 22:51:19.165] default_aec1d398_da1e_308c_9d63_56e9056db8f9 material has been failed to compile from source (Material.py:60)
[ERROR   |2021-04-06 22:51:19.165] Failed to generate_new_material default_aec1d398_da1e_308c_9d63_56e9056db8f9. (ResourceManager.py:809)
[ERROR   |2021-04-06 22:51:19.165] Failed to generate_new_material default_aec1d398_da1e_308c_9d63_56e9056db8f9. (ResourceManager.py:809)
[INFO    |2021-04-06 22:51:19.165] Load Material Instance : default (MaterialInstance.py:22)
[ERROR   |2021-04-06 22:51:19.165] default material instance has no material. (MaterialInstance.py:44)
[ERROR   |2021-04-06 22:51:19.165] MaterialLoader cannot found default resource. (ResourceManager.py:394)
[INFO    |2021-04-06 22:51:19.165] Generate new material : default (ResourceManager.py:729)
[ERROR   |2021-04-06 22:51:19.345] MaterialLoader cannot found default resource. (ResourceManager.py:394)
[INFO    |2021-04-06 22:51:19.345] Load default material. (Material.py:23)
[ERROR   |2021-04-06 22:51:19.365] default GL_VERTEX_SHADER shader compile error.
GL_COMPILE_STATUS : 0
ERROR: 0:1598: 'texture' : no matching overloaded function found (using implicit conversion)
ERROR: 0:1598: 'texture' : function is not known
ERROR: 0:1759: '=' : syntax error syntax error

This error happens over and over again until all materials are done loading. Then, presumably because none of these materials load, there is this traceback (some lines cut for brevity):

Traceback (most recent call last):
  File "main.py", line 104, in <module>
    next_open_project_filename = run(editor, project_filename)
...
  File "C:\...\PyEngine3D\PyEngine3D\Render\Terrain.py", line 112, in render_terrain
    material_instance.use_program()
AttributeError: 'NoneType' object has no attribute 'use_program'

I'll dig in further to see if I may be able to find something more, but I'm very new to 3D rendering and so my ability to help may be limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant