eezstreet Posted October 16, 2013 Share Posted October 16, 2013 This is more for my purposes than for anything else. Looking up the different shader stages in order to get a good tech demo worked on. Shaders can be in either .shader or in .mtr. Most of the original keywords still apply, with some differences. Base shader data: sunThis keyword has been removed (see below) q3map_sun/q3map_sunext <R> <G> <B> <Pitch> <Yaw> <Roll>Equivalent to sun. q3gl2_sun <R> <G> <B> <Pitch> <Yaw> <Roll> <Light Scale> <Shadow Scale>Altered sun shader. Has advanced shadow casting. q3gl2_tonemap <R> <G> <B> <Exposure Min> <Exposure Max>Use tonemaps? (not sure how this works) Stage data: map <blah>This has an extra reserved keyword: $deluxemap stage <blah>This is a new keyword. The parameter can be one of the following:diffuseMapnormalMap/bumpMap (identical in function)normalParallaxMap/bumpParallaxMap (identical in function)specularMap specularReflectance <value>For a specular stage, specifies how much reflectance there is specularExponent <value>For a specular stage, specifies the exponent for the glossiness gloss <value>For a specular stage, specifies how much glossiness there is rgbGenlightingDiffuseEntity now works correctly. alphaGendot/oneMinusDot no longer works. glowThis keyword no longer functions. surfaceSpritesThis keyword no longer functions. (for now) Link to comment
Tempust85 Posted October 16, 2013 Share Posted October 16, 2013 I've played around with normal mapping and specular in ioquake3, if I'm of any use let me know. Link to comment
eezstreet Posted October 16, 2013 Author Share Posted October 16, 2013 If you could make a small tech demo or show off the rendering power of this, it would be great. Link to comment
Tempust85 Posted October 17, 2013 Share Posted October 17, 2013 Regarding levels. I can get models in ioquake3 to show off normal mapping in existing maps but when I try it on a wall texture, it just disappears so not sure what's going on there. I can't seem to get a dynamic sun working either with the info ioquake3 provided. :\ Link to comment
Szico VII Posted February 10, 2014 Share Posted February 10, 2014 How do we add bloom to textures now glow doesnt work? Link to comment
Xycaleth Posted February 10, 2014 Share Posted February 10, 2014 Didn't even know this thread existed Dynamic glow will be added back in at some point (keep in mind rend2 is heavily WIP still). Bloom doesn't exist in rend2, but I plan on adding it some way down the line. Link to comment
Szico VII Posted February 10, 2014 Share Posted February 10, 2014 Yeah, cool. I think a shader manual for rend2 is a VERY good idea as I have no idea how to use any new shader commands aside from the normalmap ones. For example, cubemaps, distortion shaders e.t.c Also, when it says..."alpha channel" for normalparralaxmaps....how does that work exactly? Link to comment
Xycaleth Posted February 10, 2014 Share Posted February 10, 2014 For normalparallax, you have a single texture, where the regular normal map goes in the RGB channels, and then a height map for the parallax effect in the A channel. You'd need to save it as a TGA or PNG image. I linked you this page in PM, but I'll link it again for anyone else to find: https://github.com/ioquake/ioq3/blob/master/opengl2-readme.txt This covers all the new shader syntax. Link to comment
Szico VII Posted February 10, 2014 Share Posted February 10, 2014 So theres only 4 new shader syntaxes to cover normal/parralax and dynamic sun? No cubemaps, no bloom, no HDR? Awww. Link to comment
Tempust85 Posted February 11, 2014 Share Posted February 11, 2014 @@Szico VII You can enable HDR and control tonemapping for your level, though I think HDR might be a bit buggy atm? You should make a map with ioquake3 rend2, then port it to JKA to help Xycaleth with making sure all features are in. I was doing this, but I'm busy with DF2 & JK2:HD and you're more capable. Link to comment
eezstreet Posted February 11, 2014 Author Share Posted February 11, 2014 There's some stuff even in ioquake3 rend2 which need to be implemented (there's no bloom, cubemaps are WIP, there's some shader optimizations that need to take place, etc), as well as stuff which I'd like to see done (motion blur, LUT color grading, etc).for right now, rend2 doesn't really offer any significant benefit but it will later down the line. The biggest priorities are to improve performance and stability more than adding these features. Stoiss and Futuza like this Link to comment
Tempust85 Posted March 4, 2014 Share Posted March 4, 2014 There's cubemaps available now in OpenJK rend2, but not sure how well they work. From what I can tell in the code, it uses tcgen environment in the .shader/.mtr and you place misc_cubemap entities in your map. New shader stuff in ioquake3's rend2: normalScale <x> <y> - State the X and Y scales of the normal map. This is useful for increasing or decreasing the "strength" of the normal map, or entering negative values to flip the X and/or Y values. Default 1 1. parallaxDepth <value> - State the maximum depth of the parallax map. This is a fairly sensitive value, and I recommend the default or lower. Default 0.05. Link to comment
Pande Posted March 4, 2014 Share Posted March 4, 2014 This is missing <deviance> <samples> at the end here, if it is sunExtq3map_sun/q3map_sunext <R> <G> <B> <Pitch> <Yaw> <Roll>These control penumbra of the sun lighting. Link to comment
ensiform Posted March 4, 2014 Share Posted March 4, 2014 In the process of adding those new features & commits @@DT85 just mentioned. Plus there was a commit involving some shadow fix with mdr models, which i also applied to ghoul2 models. Tempust85 and Boothand like this Link to comment
ensiform Posted March 4, 2014 Share Posted March 4, 2014 Done in https://github.com/JACoders/OpenJK/commit/71811573194750b2e22346febe5e76b165418ed5 Link to comment
ensiform Posted March 4, 2014 Share Posted March 4, 2014 alphaGendot/oneMinusDot no longer works.They never really did. Parsed but doesn't do anything in vanilla either. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now