| Author |
Message |
Anon
Posts: 657
 |
Looks like a textured model isnt supported by toon shader?
With the shader its white,
without shader (shadergen) only the outline works
PS. I have zero shader programming experience
Last edited by Anon on Sat Apr 17, 2010 3:39 am; edited 4 times in total |
|
ThomasEgi
 Posts: 1820 Location: Germany,Koblenz
 |
the toon shader sample was not build with texture-support in mind, so it has no support for texture. it can be added by modifying the shaderfile itself.
thought this has been discussed on the forum quite some times already. for example here http://www.panda3d.org/phpbb2/viewtopic.php?t=6929
using the serach function might bring up lot more results.
note: you can do cartoon-inking even without shaders,for example as workaround for veryveryvery old graficcards. _________________ rig: dell inspiron 1720; ubuntu 9.10_64 ;panda 1.7.0
may a catgirl be with you. nyaan nyan~~ ^.^ |
|
Anon
Posts: 657
 |
Toon effect without custom shader:
The black colour doesnt shade right.
Last edited by Anon on Mon Jan 04, 2010 1:34 pm; edited 1 time in total |
|
Anon
Posts: 657
 |
|
rdb pro-rsoft
Posts: 5843 Location: Netherlands
 |
| Hm, does your model have vertex normals? |
|
Anon
Posts: 657
 |
I have uploaded the model.
You can find the download link in my previous post. |
|
Anon
Posts: 657
 |
I guess built-in toon shading doesnt change specularity.
So i changed specular to 0 in Blender:
Still not bad. But outline doesnt work. If I press outline too much I get these black lines from top and right of the window. Those are present with the default panda model, too. |
|
Anon
Posts: 657
 |
|
sunbull
Posts: 16 Location: Beijing, China
 |
yes, your zip file has broken.
Well, I got black lines from top right of window too if I outline too much. I think it's the way shader runs. This part should not be the problem. _________________ by Mario, with best regards.
Last edited by sunbull on Fri Nov 06, 2009 1:07 pm; edited 1 time in total |
|
rdb pro-rsoft
Posts: 5843 Location: Netherlands
 |
It's a conundrum, and there has been a similar bug report about this:
| Code: | | https://bugs.launchpad.net/panda3d/+bug/424640 |
The workaround is to put this in your Config.prc file:
| Code: | | textures-power-2 none |
But yeah, you really shouldn't set the cartoon separation value so high. |
|
sunbull
Posts: 16 Location: Beijing, China
 |
Anon, you should alter the texture by .jpg or some other. When using the .png you can mention that the render-to-texture has an error resault. I guess Toon doesnt support Alpha channel. Maybe your other models are the same.
here is the resault:
 _________________ by Mario, with best regards. |
|
Anon
Posts: 657
 |
Thanks for the help.
But isnt this a bug then? I checked in GIMP and there wasn't any alpha value.
JPG is lossy, BMPs are big, and PNGs are small, like few kbytes for few-color images like this anyway. So I would really like to use PNGs.
| rdb wrote: | | But yeah, you really shouldn't set the cartoon separation value so high. |
I just set it high so you would notice it. By default it's few pixels wide but still bothering. |
|
sunbull
Posts: 16 Location: Beijing, China
 |
So that you should use rgb mode in your model's texture.
Add this line to you .egg file, after the line "panda.png":
| Code: | | <Scalar> format { rgb } |
maybe because the export plugin didn't consider situation like you. the resault is same with above so I do not repeat. _________________ by Mario, with best regards. |
|
Anon
Posts: 657
 |
Ah, it's finally solved...
I would still call this a 'bug'.
Last edited by Anon on Mon Feb 22, 2010 4:29 am; edited 1 time in total |
|
sunbull
Posts: 16 Location: Beijing, China
 |
But you are using png without alpha channel...
I cant understand that. isnt it a contrary way to original intention of png...
actually you can contral the compression rate of jpg. isnt it better? _________________ by Mario, with best regards. |
|
Anon
Posts: 657
 |
No, png isn't used only for the transparency. Jpg format has lossy compression. Even if you set it to 100% it is still noticeable, at least for me ( and in that case also big in filesize). Png uses lossless compression methods, so its bigger, but the image doesnt change visually. Png is of course bigger than a 75% jpg but its smaller than bmp ( which can be compressed but I have never seen one). Also png is really small if you use few colours.
I know that a jpg textured model cant be so bad visually, but why not use png if its almost the same size in my case?
Last edited by Anon on Mon Jan 04, 2010 1:38 pm; edited 1 time in total |
|
sunbull
Posts: 16 Location: Beijing, China
 |
I really learnt a lot from that. Thank you! _________________ by Mario, with best regards. |
|
astelix
 Posts: 851 Location: Milano, ITA
 |
Anon I tried to download your model but without success:
at the end of download all I got is an empty zip file _________________ My Rig:
P3D 1.7.0@WinXP & Kubuntu 10.04- Athlon 64 5200 X2 ~ Radeon 3200HD (integrated) |
|
Anon
Posts: 657
 |
This problem is solved long ago.
Unless you want the ugly panda model :b |
|
astelix
 Posts: 851 Location: Milano, ITA
 |
| Anon wrote: | This problem is solved long ago.
Unless you want the ugly panda model :b |
hah no it isn't ugly, not uglier than the one I'm trying to do by myself these days for sure - I mind to port your pandakid to blender and use it in place of the good ol fat panda for my purposes, rigging, animating and dressing it - I guess is faster for me to start from yours than wait I finish my own. of course sharing it back to panda ppl as I often do. _________________ My Rig:
P3D 1.7.0@WinXP & Kubuntu 10.04- Athlon 64 5200 X2 ~ Radeon 3200HD (integrated) |
|
Anon
Posts: 657
 |
|
astelix
 Posts: 851 Location: Milano, ITA
 |
thankyou Anon - I imported and checked out - beside is cute as I thought and well done I'm not sure I'm going to use it for the different editing approach I use, anyhow I'll share the blender source nonetheless - those interested may grab it here _________________ My Rig:
P3D 1.7.0@WinXP & Kubuntu 10.04- Athlon 64 5200 X2 ~ Radeon 3200HD (integrated) |
|
Anon
Posts: 657
 |
I think I should mention now that I made the model after I saw treeform's or drwr's 2d art for a new panda logo. I dont remember who it was maybe someone else can tell.
I wanted to pose it like in the image but failed to rig. |
|
astelix
 Posts: 851 Location: Milano, ITA
 |
|
Anon
Posts: 657
 |
|
|