Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

FragmentTesselator gone nuts #47

Closed
danirod opened this issue Jan 18, 2016 · 3 comments
Closed

FragmentTesselator gone nuts #47

danirod opened this issue Jan 18, 2016 · 3 comments

Comments

@danirod
Copy link
Contributor

danirod commented Jan 18, 2016

Can confirm FragmentTesselator is also broken on Windows.

What happened:

Fragment shader failed to compile with the following errors:
ERROR: 0:74: error(#160) Cannot convert from: "2-component vector of vec2" to: "highp float"
ERROR: error(#273) 1 compilation errors.  No code generated
Exception in thread "Voxel Main" java.lang.IllegalStateException: Syntax Error in FragmentTessellator.glsl
        at net.guerra24.voxel.client.graphics.shaders.ShaderProgram.loadShader(ShaderProgram.java:309)
        at net.guerra24.voxel.client.graphics.shaders.ShaderProgram.<init>(ShaderProgram.java:105)
        at net.guerra24.voxel.client.graphics.shaders.TessellatorShader.<init>(TessellatorShader.java:60)
        at net.guerra24.voxel.client.graphics.shaders.TessellatorShader.getInstance(TessellatorShader.java:39)
        at net.guerra24.voxel.client.resources.GameResources.init(GameResources.java:129)
        at net.guerra24.voxel.client.core.Voxel.init(Voxel.java:117)
        at net.guerra24.voxel.client.core.Voxel.mainLoop(Voxel.java:156)
        at net.guerra24.voxel.client.core.Voxel.<init>(Voxel.java:70)
        at net.guerra24.voxel.client.bootstrap.Bootstrap.main(Bootstrap.java:111)
 FAILED

What should happen:

The game should open.

System specs:

  • OS: MS Windows 10
  • CPU: Intel Xeon E5606
  • Card: ATI Radeon HD 5400 Series
  • RAM: 16 GB
@danirod
Copy link
Contributor Author

danirod commented Jan 18, 2016

Quick workaround: commenting anything related to parallax on the shader code seems to do the trick again.

@Guerra24 Guerra24 added this to the Voxel-0.0.9-Alpha milestone Jan 18, 2016
@Guerra24
Copy link
Collaborator

Probably caused by NVIDIA cards compiling code correctly when has errors. I can't test it because im using NVIDIA.

Guerra24 added a commit that referenced this issue Jan 18, 2016
# Changes
All the assets now are stored in the jar, so the external assets folder
only stores generated data like worlds, configuration, mods, etc.

Some changes to Sound System code.

# BugFixes
Quick fix to Parallax Mapping not compiling in non NVIDIA graphic cards
(issue #47).
@Guerra24 Guerra24 modified the milestones: Voxel-0.0.10-Alpha, Voxel-0.0.9-Alpha Jan 20, 2016
@Guerra24
Copy link
Collaborator

Temporally fixed by placing a "#define NVIDIA" on shader load and using "#ifdef NVIDIA" to check and compile if is valid.

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

No branches or pull requests

2 participants