Cel Shading effect

Started by
16 comments, last by Sagito 18 years, 3 months ago
http://www.imageshack.us/
Advertisement
Thanks for the link... =) Here is the texture trouble:

http://img529.imageshack.us/my.php?image=errosdetextura9cd.jpg

All my textures look like those, with very low-res... =S
http://sagito.wordpress.com
What size textures are you using? I think the problem is that you are using small, non power-of-two textures which results in the streching and blurry effect.

Hth,
Ollie"It is better to ask some of the questions than to know all the answers." ~ James Thurber[ mdxinfo | An iridescent tentacle | Game design patterns ]
After marcjulian's post, I started using 1024 * 1024 textures (which are huge, I think), instead of 1024 * 768, and the result is still the same, nothing changed... =\ I checked DX Flags, and tried several combinations, however, it only got worse, so I got back to LINEAR...

Thx...
Tiago...
http://sagito.wordpress.com

Ok, finally, I got my vertex shader working, including the code to compile it from a file... It works fine for textures, but the "ink" outlines have a strange behaviour... =S

http://img353.imageshack.us/my.php?image=error1ip.jpg

Any idea why? I will post the code, if you think necessary...

Thx again...
Merry Christmas.

http://sagito.wordpress.com
it looks to me like you may be addressing your index or vertex buffer wrong. I know I have gotten a similar effect when I address a vertex that is invalid memory it determines the value to be some point far off in space. My recommendation would be to check that first.
Not to draw attention off topic at all, but I have a question I have wanted answered just for the sake of curiosity. Is there any specific method to drawing or creating the textures you make when you are turning them into cell shaded anyways? Do you draw the textures as though you are making a cartoon (by that i mean adding the specular lighting beforehand). How much do you concentrate on details, and how much do you leave to the shader? etc.

Basicaly im just asking this from the standpoint of developing the art that we will be plugged into the shader at a later time. Im presuming you still do use textures, though honestly I have no clue here.

Curiously
Richard
Hmm... I will check that, thanks a lot... =) Anyway, I will post the code here as soon as I can (it's in another computer), because it's likely that I can't find the bug (don't really have much experience...). =
Thx... =D
http://sagito.wordpress.com

This topic is closed to new replies.

Advertisement