Closed tyanyuy3125 closed 5 years ago
Bummer! I was racking my brain as to why they wouldn't execute.
By the way, how did you get this log? I was trying to find a console output of some kind to see if the scripts were failing, but couldn't find one.
@Swivelgames I'm also curious where you found MagicaVoxel's logfile. I'd like to fix some shaders for the latest version of MV, but don't know what it's getting caught up on.
To view the logging file:
MagicaVoxel.exe
with Wine through terminal and Wine itself will print all the debugging logs via terminal, and it's real-time./Shader
directory which is more detailed.That makes too much sense.
For macOS:
/Applications/MagicaVoxel-0.98.2-mac/MagicaVoxel.app
/Contents/MacOS/MagicaVoxel
, resulting a command prompt that looks like $ /Applications/MagicaVoxel-0.98.2-mac/MagicaVoxel.app/Contents/MacOS/MagicaVoxel
.For long term use, you can create a macOS-friendly bash script (text file with extension .command
that has been chmod +x
-ed) and drop it in the same directory as MagicaVoxel.app
:
Run MagicaVoxel With Log.command
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR"
./MagicaVoxel.app/Contents/MacOS/MagicaVoxel
@capnslipp Well done. I do not use macOS so couldn't provide a solution to it. Your reply is of great help to those macOS users. :) Thank you.
Hi!
On my mac I'm getting:
[Cmd] : xs : tergen 19260817 50 20 1 0 -10 10 10 [Log] cache model [Log] compute model ==== [GL:Shader] ==== ERROR: 0:19: 'f' : syntax error: syntax error
[Error] cmd failed to parse parms: MV_CMD_VoxelShader
And, naturally, shader produces nothing. I'm not a developer, so I don't know if this might help, but I'd very much like to get this shader to work.
@my-little-bunny
I have to say that this is a weird issue and it's disappointing that for me locating the bug through the log is nearly impossible.
At present without further investigating I can only guess that the problem comes from the 'f' mark for the float number. I've removed the mark in the latest build, please check it out and see if the problem disappears. If the problem still exists, welcome to comment in this issue.
Hope to help.
Thank you for your reply. Sadly, shader (and all of the others) still doesn't work. New log:
[Log] compute model ==== [GL:Shader] ==== ERROR: 0:18: '<<' does not operate on 'int' and 'int' ERROR: 0:19: '&' does not operate on 'int' and 'int' ERROR: 0:20: Use of undeclared identifier 'o'
[Error] cmd failed to parse parms: MV_CMD_VoxelShader
I've copied your command: xs tergen 19260817 50 20 1 0 -10 10 10, so I don't think there were any 'o's.
It may also be worth noting that this shader, xs height, also doesn't work on mac, and ephtracy said it was some sort of problem with mac recognising UTF-8 encoding: https://twitter.com/ephtracy/status/956999681132974082
Although other shaders (https://github.com/lachlanmcdonald/magicavoxel-shaders) work perfectly fine with no problems at all.
Thank you for your reply. Sadly, shader (and all of the others) still doesn't work. New log: [Log] compute model ==== [GL:Shader] ==== ERROR: 0:18: '<<' does not operate on 'int' and 'int' ERROR: 0:19: '&' does not operate on 'int' and 'int' ERROR: 0:20: Use of undeclared identifier 'o' [Error] cmd failed to parse parms: MV_CMD_VoxelShader
This is actually a compatibility problem now, for the OpenGL in your mac does not support the bitwise-based random generator. To fix it I have to change the algorithm of the generator, which cannot be fixed in a short period of time. I'll manage to do some tests in osx to improve the experience of those users working on non-Windows platforms like you.
I am so sorry for wasting your precious time. I promise the next release will fix mentioned problems.
Thank you! No need to be sorry, I just wanted to contribute to this issue, sorry I couldn't do more.
It is worth concerning that the bug of the generator has been fixed at present. Feel free to have a try.
OH MY GOD IT FINALLY WORKS!!!! Thank you so much!!!!
All fixed. Close the issue.
Basic Info
Tested MagicaVoxel Version: 0.99.2
GLSL version: 1.10
Behavior: Simply cannot execute
Target Platform: Linux wine, macOS and Windows with lower GLSL version.
Log
In fact all the shaders in this project cannot avoid the mentioned problem. The log below belongs to the Terrain Generator.
Fixing status
Now
project
tergen
flow
lifegame
flow2
tergen2
cave
drop
cubefill
shaders work in GLSL 1.10.