OS X Shader Problem

I compiled the master branch source with xcode, just as it specified. Everything works, minus two key things:

  1. the auto detect function no longer shows up. I can select a core and load a rom, but the ability to browse to a game and select a core upon load is gone.

  2. Shaders dont work. At all. They are all detected, but when i select one, it does not get loaded and the pass just sits empty as if nothing has been selected. I am still trying to learn all of this so possibly some guidance would be appreciated from some of the more knowledgeable members.

Core detection needs the info files, I believe, so make sure they’re sitting alongside the cores.

For the shaders, make sure you have Nvidia’s Cg Toolkit installed when you compile and make sure it’s getting bundled in with the other required libraries in the app bundle.

Thanks for the reply.

I installed the cg toolkit 3.1.0013, last version available on nvidia’s site.

I added the cg.framework to the build libraries. The successfully built it. I also added the SDL.framework to it as well, just in case. I built both with and without the SDL framework.

.cg files appear to be loaded, but the image does not change. and the same problem is occuring with the .cgp files. they do not get loaded at all and it remains blank.

Is there another version of the cg toolkit i should be using, or am i missing something else?

Thank you for your help.

Make sure the framework is getting added into the final package, as well.

The other option is to use the cg2glsl python script to convert them all to glsl and load those instead.

Thank you for the help, one more question.

I am still getting used to xcode, but when you say make sure its added to the final package, is there an additional step i must take aside from linking it through the build phases tab?

Dunno, I’m not very familiar with XCode either. Just take your resulting app bundle, view contents and then poke around and make sure the cg.framework is in there somewhere. If it’s not, something’s gone wonky.

Something has definitely gone wrong with my build. For now i converted the current batch to glsl. The main shader i wanted however did not go through, but i will continue to poke around and see what i can accomplish.

Thanks for all of the help hunterk

no problem.

Which shader were you wanting? I have a few that I’ve hand-converted because the script doesn’t like them.

I was trying to convert the crt-royale shader.

The main reason i wanted to keep them as cg shaders is glsl doesnt seem to like the parameter menu in RGUI. but thats something ill mess around with later. If you have a glsl crt-royale i would be grateful

Ah, yeah, that one has a few features that haven’t made it to the GLSL backend yet, like mipmaps and sRGB framebuffers, so it won’t work outside of Cg :confused: