Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toon shader

#1
Hello!
Does anybody how to use a toon shader in xonotic?
Thank you
Reply

#2
I believe it's called cel shading, and it's only per-map. If you want to shade the entire game, including player models, items etc., you can only do it on your own screen with GLSL shaders.

If you want to cel shade a map, you need to set the worldspawn's _celshader key to the shader you want to use for cel shading. We had cel shaders in Nexuiz but they weren't ported to Xonotic. You can find them here. You only need to set the worldspawn's _celshader to cel/black_ink for example to get black ink outlines.

I think you can also use q3map2's -celshader parameter, for example -celshader cel/black_ink, without having to change the map file.
Reply

#3
http://en.wikibooks.org/wiki/Q3Map2/Enti...#celshader
edit: hmm that one was not very informative..
http://q3map2.robotrenegade.com/docs/sha...ading.html
is a bit better
Reply

#4
Thanks guys
Reply

#5
Actually I don't need the outlines I just want the non-photorealistic lighting of the toon shading.
I tried this and all I get is the outlines.

found it it's r_celshading 1
Reply

#6
hey! Its not a Warsow!
This. Is. Xonotic! (kick into the death pit)
tZork: Where can I find a tutorial how to create every possible shader (decals shaders, bumpmapping, emiting shaders...) Eveything written neatly down? FOR NOOBS?
Edit:I guess I found allready: http://q3map2.robotrenegade.com/docs/sha...tents.html
Thanks!
Reply

#7
But I tried it and it worked in Xonotic
Reply

#8
Yes, of course, because Xonotic is an open project and allows a huge variety of possibilities and features. Also: Hello and Welcome! To! Xonotic! (kick into a death pit) - sorr. have an obsession.
Also very important stuff (if you haven't read it yet): BASICS!
Reply

#9
(08-24-2012, 04:53 AM)soukaina Wrote: found it it's r_celshading 1

Huh? Did you want to make a cel-shaded map? If you wanted to render everything cel-shaded, you're in the wrong section. I assumed you wanted to cel-shade a map.
Reply

#10
toon shading without lines ...
so you want this?

[Image: 936full-the-legend-of-zelda%3A-the-wind-...enshot.jpg]


anyways ... all follishness aside

look at q3map_shadeAngle

Quote:Specifies the breaking angle for phong shading. This allows for smooth shadows between brush faces like patches. The angle parameter is the angle between adjacent faces at which smoothing will start to occur. Typical values are usually in the 120-179 range.

that may make your patch meshes rougher ... if thats what you were doing ...
Reply

#11
This thread might be an interesting read: http://forums.xonotic.org/showthread.php?tid=3577
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Xonotic shader manual and tools? Binaryshi 6 3,794 07-22-2015, 12:12 PM
Last Post: tZork
  Can I Make an Edge Shader? MrDetonia 3 2,877 04-16-2015, 02:30 AM
Last Post: zeeshan002
  Shader Issues With Q3A Texture Replacement Packs Orbiter Sunblast 2 3,793 09-06-2013, 03:51 PM
Last Post: Orbiter Sunblast
  Inline GLSL in Q3 shader files? poVoq 3 2,966 06-16-2013, 11:51 AM
Last Post: poVoq
  Any hack to avoid the limitation of 1 stage per shader? HKN 5 4,803 10-20-2011, 04:56 AM
Last Post: tZork
  Shader Noob - Fire Shader Help top_cat 5 6,190 09-26-2010, 05:43 AM
Last Post: GreEn`mArine

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-