cel shading plugin

Hi. :slight_smile:

OK I had figured out how it works, and I have read section 3.1, How do I use this with blender? I don’t get how to render using the celshading, how is this used as a texture/material on my models?

If this is just a test to see if it works, then it works fine, no probs at all.

Ken

What you see there is the box being rendered with cel-shading. If you have a more complicated model, like of a person try it on that, it may give more pleasing results. I don’t have any good examples showing off what this is capable of unfortunately.

OSX

===== Wed Jul 14 2004 ===== 20:17:15 America/New_York =====
===== Wed Jul 14 2004 ===== 20:17:17 America/New_York =====
Traceback (most recent call last):
File “celshading.py”, line 343, in draw
File “celshading.py”, line 316, in DrawPreview
IndexError: list index out of range
Traceback (most recent call last):
File “celshading.py”, line 343, in draw
File “celshading.py”, line 316, in DrawPreview
IndexError: list index out of range

Blender quit
:frowning:

That is the line where it accesses a face’s material. If you don’t have any materials it will crash like that. The plugin needs materials applied to the object, so it knows what each 1D texture applies to.

I tried the script and am very excited about the potential. I offers some great shading features!

When I loaded a more complex car model, the script would only “render” one object: a tire. I was unable to apply the script to the entire model or to other parts of the model.

I read the PDF, but it didn’t help me except with understanding the process applied in the script. I would really love some further instructions/a brief tutorial to know what I’m doing wrong :wink:

Alright, as of now it only renders one mesh in the scene. I should generalize it to handle more.

I’m going to have a video tutorial soon, illustrating how to use it.

I did that now. still same

===== Thu Jul 15 2004 ===== 18:05:29 America/New_York =====
Traceback (most recent call last):
File “celshading.py”, line 343, in draw
File “celshading.py”, line 316, in DrawPreview
IndexError: list index out of range

Any special settings to put on the material?

I don’t know. Can you post your blend file so I can test it?

Doubt that will help, can you post a file that you know that works for you?

It might just be an OSX OpenGL thing

http://uniclipse.com/opensource/test.blend

I wish I had access to more platforms to test this on…

Ugh you’ll hate me. Is there anyway to get it as a .zip file ? It just downloads as a .html file.

[edit]

:x :< :x :< :x :x :<

Just kidding 8)

http://uniclipse.com/opensource/test.zip

Heh, I’m glad it’s a good start at least. There are a lot of npr techniques out there, perhaps other could augment this plugin with other techniques. You mentioned that you don’t see practical use. However, this plugin can be used as a tool to write a cel-shaded game. That was my motivation in writing it anyway. By baked textures do you mean that it generates static 2D textures that can be applied to the mesh? Unless it is used for static scenes, I don’t see any use in that, since an objects shading is dependent on its relation to the light source.

YaYA that file works ! Thank you :smiley:

[edit]

well of course - this should be finished as a uvmapped texture baker

I have implemented some new features, however one depends on a newly added function to Image, getBindCode(). Once this new version of Blender is released I’ll release the updated script, which also fixes issues with the camera.

What is this finaly the long waited for texture baking ?

Hahaha… I still don’t even know what texture baking is :expressionless: It just lets you blend cel-shading with 2D textures