Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Cartoon-like 3d question

Author
Message
Drifter
21
Years of Service
User Offline
Joined: 24th Jun 2003
Location:
Posted: 7th Feb 2005 01:26
I want to make a game with graphics like toon shading, as in futurama. I was wondering how to get a black outline to go around a 3d object all the time.

"Sun makes me sneeze but thats a different story"
Nookii
21
Years of Service
User Offline
Joined: 29th Jan 2004
Location:
Posted: 7th Feb 2005 11:21
i guess you would skin the model that way... so that it would have a black line around it

Every Time You Read This Will Make Your Life A Few More Seconds Less

Read Whats Important... Not Whats Pointless
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 7th Feb 2005 11:25
In DarkBASIC Professional its possible, not sure about DBC though.

Multiplayer DLL on its way! Easy to use DLL for client/server multiplayer games.
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 7th Feb 2005 18:12 Edited at: 7th Feb 2005 18:13
This is called "cel shading". And without shaders, it isn't possible.
Well, yes, it's possible. But not really easy or economic.

This is the trick:
First, load an object and disable lighting on this objet. Then "fade it up" to make it look very bright; it'll give it a toon aspect.
Now, to give it a black outline, you'll have to duplicate the mesh, scale it up a few (105%, 110%), and invert its normals. This way you'll only see the borders of the mesh.

Here's an example, to make it clearer:


It's not perfect, but it can work wonder if you don't look too close. And it doubles your polycount, too. But hey, I've warned you...

P.S.:I've add the "rocket.3ds" file used in the example under the download button.

Ideas: memories of things which did not occur yet...

Attachments

Login to view attachments
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 7th Feb 2005 19:55
wow! nice
thanks, this will come usefull to me

blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 8th Feb 2005 04:15
Bugger, you beat me to what I've been playing with for the last year...

Quote: "fade object 1,5000"


lol...

Avatar - white cat in a snowstorm. Look closely.
Drifter
21
Years of Service
User Offline
Joined: 24th Jun 2003
Location:
Posted: 8th Feb 2005 06:38
Thanks everybody

"Sun makes me sneeze but thats a different story"

Login to post a reply

Server time is: 2025-05-25 02:11:43
Your offset time is: 2025-05-25 02:11:43