Author Topic: Deferred Lighting and soft shadows  (Read 69929 times)

0 Members and 1 Guest are viewing this topic.

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Deferred Lighting and soft shadows
Since the patch appears to be made against trunk r11167, I tried it against trunk and our official github master.  Both had compile errors on my Mac, while Swifty's own repo does not, so I'm fairly certain the patch is missing something.  I'm going to try some git magic to see if I can figure out what's up, but I wouldn't expect anyone to have any success with the provide patch above.  I don't see a branch on Swifty's repo that represents SVN's trunk somehow, so I'll have to do something with a multi-remote setup to try to generate diffs between branches somehow...

Code: [Select]
=== BUILD TARGET code OF PROJECT FS2_Open WITH CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build
write-file /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code-all-target-headers.hmap
write-file /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code-own-target-headers.hmap
/bin/mkdir -p /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/i386
write-file /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/i386/code.LinkFileList
write-file /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code-project-headers.hmap
/bin/mkdir -p /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64
write-file /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/code.LinkFileList
write-file /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code-generated-files.hmap
write-file /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/freespace.o /Users/cliff.gordon/fs2open/code/freespace2/freespace.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/freespace.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/freespace.dia -c /Users/cliff.gordon/fs2open/code/freespace2/freespace.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/freespace.o
In file included from /Users/cliff.gordon/fs2open/code/freespace2/freespace.cpp:39:
In file included from ../../code/fireball/fireballs.h:16:
In file included from ../../code/model/modelrender.h:15:
../../code/lighting/lighting.h:80:20: error: extra qualification on member 'getNumStaticLights'
        int scene_lights::getNumStaticLights();
            ~~~~~~~~~~~~~~^
1 error generated.

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/multi_sexp.o /Users/cliff.gordon/fs2open/code/network/multi_sexp.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/multi_sexp.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/multi_sexp.dia -c /Users/cliff.gordon/fs2open/code/network/multi_sexp.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/multi_sexp.o
In file included from /Users/cliff.gordon/fs2open/code/network/multi_sexp.cpp:7:
In file included from ../../code/network/multi_sexp.h:8:
In file included from ../../code/ship/ship.h:31:
In file included from ../../code/fireball/fireballs.h:16:
In file included from ../../code/model/modelrender.h:15:
../../code/lighting/lighting.h:80:20: error: extra qualification on member 'getNumStaticLights'
        int scene_lights::getNumStaticLights();
            ~~~~~~~~~~~~~~^
1 error generated.

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/radardradis.o /Users/cliff.gordon/fs2open/code/radar/radardradis.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/radardradis.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/radardradis.dia -c /Users/cliff.gordon/fs2open/code/radar/radardradis.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/radardradis.o
In file included from /Users/cliff.gordon/fs2open/code/radar/radardradis.cpp:12:
In file included from ../../code/ship/ship.h:31:
In file included from ../../code/fireball/fireballs.h:16:
In file included from ../../code/model/modelrender.h:15:
../../code/lighting/lighting.h:80:20: error: extra qualification on member 'getNumStaticLights'
        int scene_lights::getNumStaticLights();
            ~~~~~~~~~~~~~~^
1 error generated.

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/levelpaging.o /Users/cliff.gordon/fs2open/code/freespace2/levelpaging.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/levelpaging.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/levelpaging.dia -c /Users/cliff.gordon/fs2open/code/freespace2/levelpaging.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/levelpaging.o

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/safe_strings.o /Users/cliff.gordon/fs2open/code/globalincs/safe_strings.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/safe_strings.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/safe_strings.dia -c /Users/cliff.gordon/fs2open/code/globalincs/safe_strings.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/safe_strings.o

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/trackirglobal.o /Users/cliff.gordon/fs2open/code/external_dll/trackirglobal.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/trackirglobal.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/trackirglobal.dia -c /Users/cliff.gordon/fs2open/code/external_dll/trackirglobal.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/trackirglobal.o

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.o /Users/cliff.gordon/fs2open/code/graphics/gropengldraw.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.dia -c /Users/cliff.gordon/fs2open/code/graphics/gropengldraw.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.o
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropengldraw.cpp:36:
../../code/lighting/lighting.h:80:20: error: extra qualification on member 'getNumStaticLights'
        int scene_lights::getNumStaticLights();
            ~~~~~~~~~~~~~~^
/Users/cliff.gordon/fs2open/code/graphics/gropengldraw.cpp:1768:8: warning: unused variable 'sdr_index' [-Wunused-variable]
                        int sdr_index;
                            ^
/Users/cliff.gordon/fs2open/code/graphics/gropengldraw.cpp:3157:2: error: use of undeclared identifier 'PFNGLBLITFRAMEBUFFEREXTPROC'
        vglBlitFramebufferEXT(0, 0, gr_screen.max_w, gr_screen.max_h, 0, 0, gr_screen.max_w, gr_screen.max_h, GL_COLOR_BUFFER_BIT, GL_NEAREST);
        ^
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropengldraw.cpp:25:
In file included from ../../code/graphics/gropengltexture.h:16:
../../code/graphics/gropenglextension.h:365:66: note: expanded from macro 'vglBlitFramebufferEXT'
#define vglBlitFramebufferEXT                   GLEXT_CALL( OGL_BLITFRAMEBUFFER, PFNGLBLITFRAMEBUFFEREXTPROC )
                                                                                 ^
../../code/graphics/gropenglextension.h:194:10: note: expanded from macro 'GLEXT_CALL'
                                                        ((x)GL_Functions[i].function_ptr)
                                                          ^
1 warning and 2 errors generated.

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglpostprocessing.o /Users/cliff.gordon/fs2open/code/graphics/gropenglpostprocessing.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglpostprocessing.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglpostprocessing.dia -c /Users/cliff.gordon/fs2open/code/graphics/gropenglpostprocessing.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglpostprocessing.o
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropenglpostprocessing.cpp:15:
In file included from ../../code/ship/ship.h:31:
In file included from ../../code/fireball/fireballs.h:16:
In file included from ../../code/model/modelrender.h:15:
../../code/lighting/lighting.h:80:20: error: extra qualification on member 'getNumStaticLights'
        int scene_lights::getNumStaticLights();
            ~~~~~~~~~~~~~~^
1 error generated.

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.o /Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.dia -c /Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.o
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp:15:
../../code/lighting/lighting.h:80:20: error: extra qualification on member 'getNumStaticLights'
        int scene_lights::getNumStaticLights();
            ~~~~~~~~~~~~~~^
/Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp:781:28: error: cast from pointer to smaller type 'GLuint' (aka 'unsigned int') loses information
                        vglProgramParameteriEXT((GLuint)shader_object, GL_GEOMETRY_INPUT_TYPE_EXT, Current_geo_sdr_params->input_type);
                                                ^~~~~~~~~~~~~~~~~~~~~
/Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp:782:28: error: cast from pointer to smaller type 'GLuint' (aka 'unsigned int') loses information
                        vglProgramParameteriEXT((GLuint)shader_object, GL_GEOMETRY_OUTPUT_TYPE_EXT, Current_geo_sdr_params->output_type);
                                                ^~~~~~~~~~~~~~~~~~~~~
/Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp:783:28: error: cast from pointer to smaller type 'GLuint' (aka 'unsigned int') loses information
                        vglProgramParameteriEXT((GLuint)shader_object, GL_GEOMETRY_VERTICES_OUT_EXT, Current_geo_sdr_params->vertices_out);
                                                ^~~~~~~~~~~~~~~~~~~~~
/Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp:989:31: error: unknown type name 'glGetUniformBlockIndexARBProcPtr'; did you mean 'glGetUniformLocationARBProcPtr'?
        new_uniform_block.location = vglGetUniformBlockIndexARB(Current_shader->program_id, uniform_text);
                                     ^
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp:18:
../../code/graphics/gropenglextension.h:370:79: note: expanded from macro 'vglGetUniformBlockIndexARB'
#define vglGetUniformBlockIndexARB              GLEXT_CALL2( OGL_GET_UNIFORM_BLOCK_INDEX, PFNGLGETUNIFORMBLOCKINDEXPROC )
                                                                                          ^
../../code/graphics/gropenglextension.h:282:41: note: expanded from macro 'PFNGLGETUNIFORMBLOCKINDEXPROC'
#define PFNGLGETUNIFORMBLOCKINDEXPROC                   glGetUniformBlockIndexARBProcPtr
                                                        ^
../../code/graphics/gropenglextension.h:198:29: note: expanded from macro 'GLEXT_CALL2'
#define GLEXT_CALL2(i, x) ((x)GL_Functions[i].function_ptr)
                            ^
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp:17:
In file included from ../../code/graphics/gropengl.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:2400:18: note: 'glGetUniformLocationARBProcPtr' declared
      here
typedef GLint (* glGetUniformLocationARBProcPtr) (GLhandleARB programObj, const GLcharARB *name);
                 ^
5 errors generated.

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.o /Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.dia -c /Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.o
/Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:379:14: error: use of undeclared identifier 'GL_CLIP_DISTANCE0'
                        glDisable(GL_CLIP_DISTANCE0+i);
                                  ^
/Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:716:13: error: use of undeclared identifier 'GL_CLIP_DISTANCE0'
                        glEnable(GL_CLIP_DISTANCE0+num);
                                 ^
/Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:719:14: error: use of undeclared identifier 'GL_CLIP_DISTANCE0'
                        glDisable(GL_CLIP_DISTANCE0+num);
                                  ^
/Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:1278:19: error: use of undeclared identifier 'GL_TEXTURE_BUFFER_ARB'
        vglBindBufferARB(GL_TEXTURE_BUFFER_ARB, id);
                         ^
/Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:1293:23: error: use of undeclared identifier 'GL_UNIFORM_BUFFER'
        vglBindBufferBaseEXT(GL_UNIFORM_BUFFER, index, id);
                             ^
/Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:1308:19: error: use of undeclared identifier 'GL_UNIFORM_BUFFER'
        vglBindBufferARB(GL_UNIFORM_BUFFER, id);
                         ^
/Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:1549:2: error: unknown type name 'glUnifrom4fARBProcPtr'; did you mean 'glUniform4fARBProcPtr'?
        vglUniform4fARB(opengl_shader_get_uniform(name.c_str()), val.a1d[0], val.a1d[1], val.a1d[2], val.a1d[3]);
        ^
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:13:
In file included from ../../code/graphics/gropenglstate.h:16:
../../code/graphics/gropenglextension.h:355:56: note: expanded from macro 'vglUniform4fARB'
#define vglUniform4fARB                                 GLEXT_CALL( OGL_UNIFORM4F, PFNGLUNIFORM4FARBPROC )
                                                                                   ^
../../code/graphics/gropenglextension.h:266:35: note: expanded from macro 'PFNGLUNIFORM4FARBPROC'
#define PFNGLUNIFORM4FARBPROC                                   glUnifrom4fARBProcPtr
                                                                ^
../../code/graphics/gropenglextension.h:194:10: note: expanded from macro 'GLEXT_CALL'
                                                        ((x)GL_Functions[i].function_ptr)
                                                          ^
In file included from /Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp:12:
In file included from ../../code/graphics/gropengl.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:2380:17: note: 'glUniform4fARBProcPtr' declared here
typedef void (* glUniform4fARBProcPtr) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
                ^
7 errors generated.

CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/aiturret.o /Users/cliff.gordon/fs2open/code/ai/aiturret.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2open/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2open/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/aiturret.d --serialize-diagnostics /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/aiturret.dia -c /Users/cliff.gordon/fs2open/code/ai/aiturret.cpp -o /Users/cliff.gordon/fs2open/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/aiturret.o
In file included from /Users/cliff.gordon/fs2open/code/ai/aiturret.cpp:4:
In file included from ../../code/ship/ship.h:31:
In file included from ../../code/fireball/fireballs.h:16:
In file included from ../../code/model/modelrender.h:15:
../../code/lighting/lighting.h:80:20: error: extra qualification on member 'getNumStaticLights'
        int scene_lights::getNumStaticLights();
            ~~~~~~~~~~~~~~^
1 error generated.

** BUILD FAILED **


The following build commands failed:
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/freespace.o /Users/cliff.gordon/fs2open/code/freespace2/freespace.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/multi_sexp.o /Users/cliff.gordon/fs2open/code/network/multi_sexp.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/radardradis.o /Users/cliff.gordon/fs2open/code/radar/radardradis.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.o /Users/cliff.gordon/fs2open/code/graphics/gropengldraw.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglpostprocessing.o /Users/cliff.gordon/fs2open/code/graphics/gropenglpostprocessing.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.o /Users/cliff.gordon/fs2open/code/graphics/gropenglshader.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.o /Users/cliff.gordon/fs2open/code/graphics/gropenglstate.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/aiturret.o /Users/cliff.gordon/fs2open/code/ai/aiturret.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(8 failures)
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: Deferred Lighting and soft shadows
Since the patch is against trunk, there seems to have been some confusion somewhere. So, to clarify, what I requested was a patch against the zookeeper branch, because that's what we use (and what is required) for FotG.

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Deferred Lighting and soft shadows
I don't know then. Can't you guys just apply my patch to trunk, then apply your changes on top of that?

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Deferred Lighting and soft shadows
My compile errors were from your patch applied to trunk, so at least on Mac there's no point in me doing any further work on it if it won't compile anyway.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline DahBlount

  • Moderator
  • 29
  • Alpine ☆ Cancer Tribulation
    • Minecraft
    • Skype
    • Steam
Re: Deferred Lighting and soft shadows
So the following problems are fixed in the most recent build.

In ship and weapon select screens, using 3D weapons and Ships causes the models to be rendered in a different orientation than trunk.

Some models, such as the GVB Osiris aren't rendered at all and don't show up when using the wireframe view.

Glowpoints aren't clipped through subspace portals, they just appear randomly in space.

However, using the Fixed Render Pipeline still forces the model to behave in strange ways and nameplates seem to glow.

I also noticed there is a slight stutter for some reason, any idea what could be causing it?
<Axem> yet still more insightful than #hard-light

<Axem> jad2.23 will just be cat videos

<DahBlount> So
<DahBlount> JAD2.2 is like that
<Axem> maybe
<Axem> it can be whatever you like!
<DahBlount> A Chocolate Sundae?
<Axem> sure

My models: GTF Gilgamesh - GTD Nuadha [Redesigning] - Ningirama [WIP] - GTG Zephyrus

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Deferred Lighting and soft shadows
chief, did you add modelrender.cpp and modelrender.h and shadows.cpp and shadows.h to your xcode project? I neglected to mention that but if you were able to compile my branch, I can't think of any other reasons why it would fail to compile. I just did a clean checkout of trunk and applied the patch. It compiled successfully. I don't have any idea if I'm doing anything wrong (or right).

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Deferred Lighting and soft shadows
I'll try that tomorrow.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Deferred Lighting and soft shadows
Ok, I did add the files this time, but I still get bombed out before anything that had to do with the missing files.  The extra qualification errors I posted above seem to be something coming from newer compilers like clang and gcc 4.8+.  I found a stackoverflow page on extra identifiers that seems to be relevant.  According to it, the fact that it works in MSVC is a bug :P
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Deferred Lighting and soft shadows
Okay, I tried to fix those extra qualification issues. I hope it compiles for you.

[attachment kidnapped by pirates]

 

Offline Axem

  • 211
Re: Deferred Lighting and soft shadows
I tried to take the most recent patch and patch it with trunk and it won't build. :(

This is the output from VS13

http://pastebin.com/yEnvUQ3T

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Deferred Lighting and soft shadows
I tried to take the most recent patch and patch it with trunk and it won't build. :(

This is the output from VS13

http://pastebin.com/yEnvUQ3T
The patch doesn't add the necessary files to the 2013 project. You need to add shadows.cpp, modelrender.cpp, shadows.h, and modelrender.h to the "code" project. Or, if you want, I can just send you my project files, which have already been modified.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Axem

  • 211
Re: Deferred Lighting and soft shadows
Ah, yes. That would be it... Stuff works now...! :)

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Deferred Lighting and soft shadows
Those errors seem to be gone now, but I'm still seeing some others that I guess would require a different fix. I'll try to condense them down to just the files with errors remaining:

Code: [Select]
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.o /Users/cliff.gordon/fs2_open_git/code/graphics/gropengldraw.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2_open_git/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.d --serialize-diagnostics /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.dia -c /Users/cliff.gordon/fs2_open_git/code/graphics/gropengldraw.cpp -o /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropengldraw.o
/Users/cliff.gordon/fs2_open_git/code/graphics/gropengldraw.cpp:1768:8: warning: unused variable 'sdr_index' [-Wunused-variable]
                        int sdr_index;
                            ^
/Users/cliff.gordon/fs2_open_git/code/graphics/gropengldraw.cpp:3157:2: error: use of undeclared identifier 'PFNGLBLITFRAMEBUFFEREXTPROC'
        vglBlitFramebufferEXT(0, 0, gr_screen.max_w, gr_screen.max_h, 0, 0, gr_screen.max_w, gr_screen.max_h, GL_COLOR_BUFFER_BIT, GL_NEAREST);
        ^
In file included from /Users/cliff.gordon/fs2_open_git/code/graphics/gropengldraw.cpp:25:
In file included from ../../code/graphics/gropengltexture.h:16:
../../code/graphics/gropenglextension.h:365:66: note: expanded from macro 'vglBlitFramebufferEXT'
#define vglBlitFramebufferEXT                   GLEXT_CALL( OGL_BLITFRAMEBUFFER, PFNGLBLITFRAMEBUFFEREXTPROC )
                                                                                 ^
../../code/graphics/gropenglextension.h:194:10: note: expanded from macro 'GLEXT_CALL'
                                                        ((x)GL_Functions[i].function_ptr)
                                                          ^
1 warning and 1 error generated.

I think this forum post might have some info on clearing that error up, although the warning sounds concerning too.

Code: [Select]
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.o /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2_open_git/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.d --serialize-diagnostics /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.dia -c /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp -o /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglshader.o
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp:781:28: error: cast from pointer to smaller type 'GLuint' (aka 'unsigned int') loses information
                        vglProgramParameteriEXT((GLuint)shader_object, GL_GEOMETRY_INPUT_TYPE_EXT, Current_geo_sdr_params->input_type);
                                                ^~~~~~~~~~~~~~~~~~~~~
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp:782:28: error: cast from pointer to smaller type 'GLuint' (aka 'unsigned int') loses information
                        vglProgramParameteriEXT((GLuint)shader_object, GL_GEOMETRY_OUTPUT_TYPE_EXT, Current_geo_sdr_params->output_type);
                                                ^~~~~~~~~~~~~~~~~~~~~
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp:783:28: error: cast from pointer to smaller type 'GLuint' (aka 'unsigned int') loses information
                        vglProgramParameteriEXT((GLuint)shader_object, GL_GEOMETRY_VERTICES_OUT_EXT, Current_geo_sdr_params->vertices_out);
                                                ^~~~~~~~~~~~~~~~~~~~~
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp:989:31: error: unknown type name 'glGetUniformBlockIndexARBProcPtr'; did you mean 'glGetUniformLocationARBProcPtr'?
        new_uniform_block.location = vglGetUniformBlockIndexARB(Current_shader->program_id, uniform_text);
                                     ^
In file included from /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp:18:
../../code/graphics/gropenglextension.h:370:79: note: expanded from macro 'vglGetUniformBlockIndexARB'
#define vglGetUniformBlockIndexARB              GLEXT_CALL2( OGL_GET_UNIFORM_BLOCK_INDEX, PFNGLGETUNIFORMBLOCKINDEXPROC )
                                                                                          ^
../../code/graphics/gropenglextension.h:282:41: note: expanded from macro 'PFNGLGETUNIFORMBLOCKINDEXPROC'
#define PFNGLGETUNIFORMBLOCKINDEXPROC                   glGetUniformBlockIndexARBProcPtr
                                                        ^
../../code/graphics/gropenglextension.h:198:29: note: expanded from macro 'GLEXT_CALL2'
#define GLEXT_CALL2(i, x) ((x)GL_Functions[i].function_ptr)
                            ^
In file included from /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglshader.cpp:17:
In file included from ../../code/graphics/gropengl.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:2400:18: note: 'glGetUniformLocationARBProcPtr' declared
      here
typedef GLint (* glGetUniformLocationARBProcPtr) (GLhandleARB programObj, const GLcharARB *name);
                 ^
4 errors generated.

I think the above mentioned post may also have some help for fixing the casting issues.  As for the unknown type, I'm not sure what to do about that one. 

Code: [Select]
CompileC build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.o /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/cliff.gordon/fs2_open_git/projects/Xcode4
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=218 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.6 -g -Wno-sign-conversion -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/code.hmap -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/Debug/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources/x86_64 -I/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/DerivedSources -Wno-write-strings -Wno-char-subscripts -Wno-shorten-64-to-32 -F/Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/Debug -FFrameworks -MMD -MT dependencies -MF /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.d --serialize-diagnostics /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.dia -c /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp -o /Users/cliff.gordon/fs2_open_git/projects/Xcode4/build/FS2_Open.build/Debug/code.build/Objects-normal/x86_64/gropenglstate.o
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:379:14: error: use of undeclared identifier 'GL_CLIP_DISTANCE0'
                        glDisable(GL_CLIP_DISTANCE0+i);
                                  ^
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:716:13: error: use of undeclared identifier 'GL_CLIP_DISTANCE0'
                        glEnable(GL_CLIP_DISTANCE0+num);
                                 ^
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:719:14: error: use of undeclared identifier 'GL_CLIP_DISTANCE0'
                        glDisable(GL_CLIP_DISTANCE0+num);
                                  ^
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:1278:19: error: use of undeclared identifier 'GL_TEXTURE_BUFFER_ARB'
        vglBindBufferARB(GL_TEXTURE_BUFFER_ARB, id);
                         ^
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:1293:23: error: use of undeclared identifier 'GL_UNIFORM_BUFFER'
        vglBindBufferBaseEXT(GL_UNIFORM_BUFFER, index, id);
                             ^
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:1308:19: error: use of undeclared identifier 'GL_UNIFORM_BUFFER'
        vglBindBufferARB(GL_UNIFORM_BUFFER, id);
                         ^
/Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:1549:2: error: unknown type name 'glUnifrom4fARBProcPtr'; did you mean 'glUniform4fARBProcPtr'?
        vglUniform4fARB(opengl_shader_get_uniform(name.c_str()), val.a1d[0], val.a1d[1], val.a1d[2], val.a1d[3]);
        ^
In file included from /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:13:
In file included from ../../code/graphics/gropenglstate.h:16:
../../code/graphics/gropenglextension.h:355:56: note: expanded from macro 'vglUniform4fARB'
#define vglUniform4fARB                                 GLEXT_CALL( OGL_UNIFORM4F, PFNGLUNIFORM4FARBPROC )
                                                                                   ^
../../code/graphics/gropenglextension.h:266:35: note: expanded from macro 'PFNGLUNIFORM4FARBPROC'
#define PFNGLUNIFORM4FARBPROC                                   glUnifrom4fARBProcPtr
                                                                ^
../../code/graphics/gropenglextension.h:194:10: note: expanded from macro 'GLEXT_CALL'
                                                        ((x)GL_Functions[i].function_ptr)
                                                          ^
In file included from /Users/cliff.gordon/fs2_open_git/code/graphics/gropenglstate.cpp:12:
In file included from ../../code/graphics/gropengl.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glext.h:2380:17: note: 'glUniform4fARBProcPtr' declared here
typedef void (* glUniform4fARBProcPtr) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
                ^
7 errors generated.

I can't find any documentation but maybe these identifiers are defined in a different header on OS X?  Google has them seemingly in glext.h or glew.h.  Seems like Apple might just be silly and doesn't have them available.  I can see this right now - none of the official Apple glext.h files have it defined, however, the XQuartz glext.h files on my PC are the Khronos distribution, and do have it defined.  But X11 isn't even included with OS X 10.9+ now, so linking against that would mean building the libs in or requiring XQuartz to be installed.  If that would even work at  all.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Deferred Lighting and soft shadows
It looks like we need some more Mac expertise in this thread. Echelon9, if you're out there somewhere, have you tried compiling this code?

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Deferred Lighting and soft shadows
There appear to be some issues with large transparant objects. Mostly they simply refuse to show up.




Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Deferred Lighting and soft shadows
Are they all in the root subobject or or they in child subobjects? Are they being rendered using -trans or no?

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Deferred Lighting and soft shadows
On closer inspection it seems to only occur with subobjects. Detail-0 is displayed properly but everything linked to that (turret or otherwise) isn't.
Not using any textures with -trans
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Deferred Lighting and soft shadows
Oh good to know. My code that separates out transparencies to draw them later only works for the root submodel. I was going to extend that system for all submodels in the future but it looks like I may have to do it sooner rather than later based on your bug report.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Deferred Lighting and soft shadows
Also something I've noticed is this:

To the right is what happens with the shadows/def lighting build, I'm getting those wierd artifacts around bitmaps.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Deferred Lighting and soft shadows
What build are you running with the pics on the left?