166609 page hits since September 6, 2004.
moosehill::Software()
moosehill::Software()
Please note that PS2RC was last updated in 2002, and the information on this page may be outdated. Still, there might be someone interested in it. The source code might be made available if I can find it. If you'd like me to dig for it, let me know.

This little app parses Pixel Shader 1.0/1.1 object files and outputs Register Combiner code. It's especially useful for converting Cg code compiled with the 'dx8ps' profile for use in OpenGL.

While NVParse does read PS 1.1 in the latest version, this tool performs some useful optimizations which can often result in fewer combiner stages being used than in D3D (leading to higher performance).
ps2rc.exe <objfile>
ps2rc.exe -ts <objfile> <listfile>
Use cgc.exe first to generate myfile.list

(Assemble) nvasm.exe myfile.list myfile.pso
(Generate RC) ps2rc.exe myfile.pso > myfile.rc
(Generate TS) ps2rc.exe -ts myfile.pso myfile.list > myfile.ts


NOTE: If you use the -ts option, PS2RC requires you to pass the "list" file also. This file will be searched for Cg compiler comments in order to determine the texture type of each stage. If the file does not have these comments, 2D textures will be assumed!

To try out some quick examples (you need nvasm to run them):
test.bat test
test.bat test2
test.bat test3
test.bat test4
test.bat test5
Last version available (October 24, 2002): PS2RC beta 3 (200 KB)
PS2RC is "donationware" - with the binary provided FREE for any use, with no fees, royalties or other obligations.

As opposed to "shareware", you're not forced to pay anything if you enjoy and use the software. This software (PS2RC) is no longer being developed, however, a small voluntary donation would be very welcome. If you decide to support this software, please use the Paypal link to the left! Thank you!
PS2RC was developed by Carl Ådahl to make Cg more useful back in 2002. He has since moved to D3D and HLSL, and therefore doesn't know if this tool is still very useful. :)

Bug reports, comments, suggestions or other questions? Drop me a mail!
(c) 2004 Moosehill Software