OS X USERS: Nexuiz 2.4.2 HEADS UP

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Mon May 12, 2008 11:04 am

  • Supposedly, OpenGL 2.0 shaders should work fine now on OS X. However, the code to force OpenGL 2.0 shaders to be off (you can just turn them on temporarily, they'll be off again when you start the game next time) is still in place to guarantee that it will run fine.

    Please try turning the shaders on, and report problems you may be getting here! Also report if they work fine for you! If it works fine for everyone, next release will no longer force OpenGL 2.0 shaders off.

    Stuff to especially watch out for: HUD (if it stays still or rotates wildly), realtime dynamic/world lights shadows (if they have zigzag edges or look fine) and bloom/HDR.

    If OpenGL 2.0 shaders do work for you temporarily, follow this procedure to allow the setting to be saved:

    Patch the Nexuiz.app or Nexuiz-SDL.app folder:
    • Control-Click Nexuiz.app (or Nexuiz-SDL.app), click "Show package contents"
    • Open "Contents", then "MacOS"
    • Open nexuiz-osx-agl (or nexuiz-osx-sdl) in your favorite text editor
    • remove the +"r_glsl 0" from the last line
    Then the "OpenGL 2.0 Shaders" setting in the game menu will be saved just like the other settings, and no longer forced off.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Mon May 12, 2008 5:20 pm

  • Works fine here. Looks awesome!
    I'M BATMAN!
    User avatar
    HarryButt
    Keyboard killer
     
    Posts: 560
    Joined: Thu Jan 17, 2008 4:51 pm
    Location: Hamburg, Germanistan

Mon May 12, 2008 6:55 pm

  • works fine too :)

    Now I can play all maps whith a higher rate of fps :D
    Lo
    Member
     
    Posts: 21
    Joined: Thu Dec 06, 2007 9:51 pm
    Location: Austria

Fri May 16, 2008 2:42 pm

  • Doesn't activate on my Dual-2.7 GHz G5 / ATI Radeon 9650 / mac os X 10.4.11.

    Error message from the console :

    GLSL shader glsl/default.glsl generic diffuse failed! some features may not work properly.
    GLSL shader glsl/default.glsl generic failed! some features may not work properly.
    OpenGL 2.0 shaders disabled - unable to find a working shader permutation fallback on this driver
    (set r_glsl 1 if you want to try again)
    [NSB] ppwer !
    User avatar
    obi_wan
    Alien trapper
     
    Posts: 256
    Joined: Mon Mar 13, 2006 9:24 am
    Location: France

Fri May 16, 2008 3:12 pm

  • Works fine on my macbook though :)
    [NSB] ppwer !
    User avatar
    obi_wan
    Alien trapper
     
    Posts: 256
    Joined: Mon Mar 13, 2006 9:24 am
    Location: France

Fri May 16, 2008 3:28 pm

  • obi_wan! you rocket spam0ring little gangster! welcome back you! :D
    uncomfortable
    random
    mean
    embarrassing
    limited
    User avatar
    Urmel
    Forum addon
     
    Posts: 1744
    Joined: Fri Mar 03, 2006 10:06 am
    Location: Offline

Fri May 16, 2008 3:36 pm

Fri May 16, 2008 3:38 pm

  • (Radeon 2600 Pro 256MB btw. If it makes any difference.)
    I'M BATMAN!
    User avatar
    HarryButt
    Keyboard killer
     
    Posts: 560
    Joined: Thu Jan 17, 2008 4:51 pm
    Location: Hamburg, Germanistan

Fri May 16, 2008 4:19 pm

  • @esteel : no, no problem at all, r_glsl set to 1 simply doesn't get 'validated' and if i ask for the value it's zero. So it shouldn't be a problem ;)

    hey urmel :) :)
    i see the forum addons didn't change :)

    NSB powa
    (i don't spam rockets, i cover every possible running way :D ^^ )
    [NSB] ppwer !
    User avatar
    obi_wan
    Alien trapper
     
    Posts: 256
    Joined: Mon Mar 13, 2006 9:24 am
    Location: France

Sat May 17, 2008 2:42 am

  • What about the untextured playermodels? I just have black, shadeless models running around.
    iSuck
    Alien
     
    Posts: 150
    Joined: Thu Apr 19, 2007 11:34 pm

Sat May 17, 2008 8:48 am

  • iSuck wrote:What about the untextured playermodels? I just have black, shadeless models running around.

    WHEN? In 2.4.2 in general or only if you enable r_glsl? Its not really clear from your text. Which system/graphic card do you have?
    Like that would be some of the problems we want to avoid and that would mean r_glsl should still be 0 for mac maybe..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Sat May 17, 2008 1:54 pm

  • iSuck: if r_glsl 1 causes untextured player models, it probably is a compile error in some but not all glsl permutations.

    To help us, do the following:

    ]log_file glsl-report.txt
    ]developer 1
    ]r_glsl_restart
    ]log_file ""

    and post the log messages (Finder: Go to... "~/.nexuiz/data" and put the file glsl-report.txt online somewhere).
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sat May 17, 2008 10:29 pm

  • Sorry for not being specific.
    Black models only occur with r_glsl on, I thought that was well a well known bug on mac already. I'll make that log file now...

    Macbook, 2ghz intel core 2 duo, Intel GMA950 64mb (I will destroy intel for that card), 1gb RAM


    ====== Log started (Sat May 17 17:30:23 2008) ======
    ]developer 1
    ]r_glsl_restart
    ]log_file ""
    ====== Log stopped (Sat May 17 17:30:44 2008) ======

    ====== Log started (Sat May 17 17:32:49 2008) ======
    ]developer 1
    ]r_glsl_restart
    GLSL shader glsl/default.glsl depth/shadow compiled.
    program link log:
    WARNING: Vertex shader writes varying 'EyeVector' which is not read by fragment shader.

    GLSL shader glsl/default.glsl lightmap compiled.
    program link log:
    WARNING: Vertex shader writes varying 'EyeVector' which is not read by fragment shader.

    GLSL shader glsl/default.glsl lightmap glow compiled.
    program link log:
    WARNING: Vertex shader writes varying 'EyeVector' which is not read by fragment shader.

    GLSL shader glsl/default.glsl lightdirection diffuse colormapping glow compiled.
    program link log:
    WARNING: Vertex shader writes varying 'EyeVector' which is not read by fragment shader.

    GLSL shader glsl/default.glsl lightdirection diffuse glow compiled.
    program link log:
    WARNING: Vertex shader writes varying 'EyeVector' which is not read by fragment shader.

    GLSL shader glsl/default.glsl lightdirection diffuse compiled.
    program link log:
    WARNING: Vertex shader writes varying 'EyeVector' which is not read by fragment shader.

    GLSL shader glsl/default.glsl lightdirection diffuse colormapping compiled.
    GLSL shader glsl/default.glsl generic compiled.
    GLSL shader glsl/default.glsl generic diffuse compiled.
    ]log_file ""
    ====== Log stopped (Sat May 17 17:33:07 2008) ======


    iSuck
    Alien
     
    Posts: 150
    Joined: Thu Apr 19, 2007 11:34 pm

Sun May 18, 2008 7:01 pm

  • My 2.1GHz G5 with ATI X600 XT does this too, but I thought it was because the card doesn't support OpenGL....
    User avatar
    pavlvs327
    Advanced member
     
    Posts: 86
    Joined: Mon Aug 27, 2007 9:05 pm

Mon May 19, 2008 7:16 am

  • iSuck wrote:Sorry for not being specific.
    Black models only occur with r_glsl on, I thought that was well a well known bug on mac already. I'll make that log file now...

    Macbook, 2ghz intel core 2 duo, Intel GMA950 64mb (I will destroy intel for that card), 1gb RAM


    There are no errors in the log provided, so whatever is going wrong is either not a shader compile error, or is not being recognized by the shader compiler as an actual error case.

    This error has been reported before by Willis but for him it supposedly went away when the texture matrix issue was resolved.

    It would be very valuable to know which cards are affected (like whether it happens on NVIDIA or ATI at all), and if there are any other special circumstances.

    Something to try:
    r_depthfirst 0 in the console (or set the Depth First slider in the Video menu to Disabled)
    LordHavoc
    Site Admin
     
    Posts: 191
    Joined: Wed Mar 29, 2006 7:39 am
    Location: western Oregon, USA

Mon May 19, 2008 7:21 am

  • pavlvs327 wrote:My 2.1GHz G5 with ATI X600 XT does this too, but I thought it was because the card doesn't support OpenGL....


    Not support OpenGL? ATI hasn't made any consumer graphics chips without OpenGL support since 1997 or so. (a few 2D-only server chips however)

    Furthermore, Mac OS X guarantees OpenGL support - the entire desktop is rendered with it.
    LordHavoc
    Site Admin
     
    Posts: 191
    Joined: Wed Mar 29, 2006 7:39 am
    Location: western Oregon, USA

Thu May 22, 2008 1:45 pm

  • I haven't had any errors at all so far, everything runs fine.
    User avatar
    Hyside
    Member
     
    Posts: 10
    Joined: Fri May 16, 2008 10:06 pm
    Location: Ohio

Tue Aug 19, 2008 11:14 pm

  • :!: By the way, since the rotating texture/HUD bug is gone you can enable OpenGL 2.0 as default without resetting it every time on startup, amiright?
    Just another hint for the next version...
    I'M BATMAN!
    User avatar
    HarryButt
    Keyboard killer
     
    Posts: 560
    Joined: Thu Jan 17, 2008 4:51 pm
    Location: Hamburg, Germanistan

Tue Aug 19, 2008 11:38 pm

  • That's the idea, Harry
    Image
    User avatar
    torus
    Forum addon
     
    Posts: 1341
    Joined: Sun Dec 24, 2006 6:59 am
    Location: USA

Thu Aug 28, 2008 10:03 am



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest