123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|664|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> cell shadding

Fri, 14 Mar 2008, 00:07
realtime
I try to make the cell shading effect in blitz3d.
the result is not that bad
and it is very fast because you don't do the calculation during rendering process

the middle image is the original
the left and the right is the model after cell-shading is applied




if image don't show click here


here is the code





-=-=-
me blog: fork-garden
Fri, 14 Mar 2008, 01:07
shroom_monk
Wow, that's pretty good! Well done!
Fri, 14 Mar 2008, 13:37
Forklift_Fred
That's pretty cool and so simple when you think about it.
I got confused by the VertexNX(surf,a)*1 part but changing the 1 soon made it clear. In fact the model I tried it with to start with was very small so it didn't look like it was working properly at all until I loaded a larger model and realised what was happening. A bit of trial and error and I found a good value.

Very nice.

-=-=-
Come rain or shine...
Fri, 14 Mar 2008, 19:31
realtime
the above code is not working well with model that has more than one surface, also when your model is colored rather than using texture

I have change the mode a little
this one should work with multiple surface and also I use vertexcolor instead of entitycolor, better

the vertexnx(surf,a)*1, the 1 means how thick the line would be, you can change it as you like





-=-=-
me blog: fork-garden
Sat, 15 Mar 2008, 10:27
DeathKnight
thank you very much realtime nice effect
Sat, 15 Mar 2008, 18:19
Forklift_Fred
Interesting... The original code wouldn't work with .3ds models, didn't like the surface handling.

The second version is happy but doesn't seem to do anything!

I don't know if it's my models or .3ds models in general???

-=-=-
Come rain or shine...
Sun, 16 Mar 2008, 07:45
realtime
the second code should solve the problem with multiple surfaces and colored brush
it doesn't do anything but that

-=-=-
me blog: fork-garden
Sun, 16 Mar 2008, 11:49
Forklift_Fred
That's fair enough, I just wonder what's wrong with my models

As I said the second code loads my .3ds models OK but the scaling doesn't seem to do anything. I'm sure that's not your fault at all, I was just curious as to whether anyone knew of an issue with 3ds?

-=-=-
Come rain or shine...