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 Professional Discussion / edge-shade image... show me!

Author
Message
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 27th Apr 2003 06:44
look I've posted more than my fair share of questions in this forum asking about toon shading and now I want an answer. Someone who got toon shading to look good post the images you used. Please!!!! I've been working for hours with different images and they all look like crap! so how bout it post the images you used and I'll stop posting these stupid questions. thanx in advance!
We could have handled that better.
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 27th Apr 2003 18:21
look I'm sick of this someone reply now!!!!!!
don't want to be rude but come on I just need an example of what was used for making the ships in the gallery toon shading maps. Lets see some please.

We could have handled that better.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Apr 2003 18:27
no you have been rude and there is no call for you to demand anything from anyone here.

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 27th Apr 2003 18:33
you know what though... I just want to see an example besides the one in "examples" so someone besides you folks with an aditude that hand out judgement in your short useless posts help me. I've seen people with twice the rudeness get 67 or more posts and most are helpfull not just swart ass comments about forum virtue you yourself respond to the stupid resolution one!

We could have handled that better.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Apr 2003 18:44
because the question asked was a valid one... i wasn't be demanded of, and it extremely pissed me off when the guy decided he was going to attack me for just trying to help.

you're demanding to see something here, rather than asking nicely if someone has an example of Cell Shading that you could see you're demaning to see one.
i'm getting very tired of the arrogant attitudes of you newbies around here ... either ask again politely or don't ask at all.
we're not here as servants or lackies to anyone - and you'd heed well to actually show a little respect around here by asking for help rather than demanding it.

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 27th Apr 2003 18:44
I apologize.
I have desturbed the wa of your forums.
I have demanded where I have no right to demand.
I have obviously offended you.
I apologize.

We could have handled that better.
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 27th Apr 2003 18:51
Will you Raven-sama please post an example of the toon shading you have created. You being and expert DBPro programmer I'm sure you can show me a helpful example.

*Not sarcasm.
*I apologize.

We could have handled that better.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Apr 2003 20:15
oki... well i'll see about creating a simple shader to handle this - working on it right now.
the defualt one just doesn't cut it for some reason (and i don't know why)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Soyuz
23
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 27th Apr 2003 20:33
Wow Chainer I'm impressed with your genuine apology. It's a rare thing to see someone be abusive around here and then back down and apologise. I can't help you but I comend you.

I see where you're coming from. It can be frustrating sometimes when you have a problem that seems to hold up the rest of your project. Personally I blame the rough sketchy examples and documentation. I've had better documentation from free applications. Sorry guys but it's true.
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 27th Apr 2003 21:45
I can't thank you enough Raven for your help. This is the most that I've ever received. Once again sorry for my abusive comments I'll try my best to be calm and nice in the forums.

We could have handled that better.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Apr 2003 00:21
if you want to have a crack at this yourself here's my shader for the effect



mostly the nVidia standard one you'll see about only changed slightly for DBpro use using vector3's instead of vector4's and such
the ViewProjection Matrix should be the (view matrix * projection matrix)
you'll want to use a Build Perspective LHMatrix4 for the basis for the main projection, view and world matix.

once thats down it's pretty simple to see what goes where, i've also included the setup for the FVF Structure which in another recent post i've posted my FVF.inc.dba file ... if you use that you can declare, build and setup almost all FVF's that DBpro is capable of.
although i still have a little bug working to worm out

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 28th Apr 2003 01:39
I don't mean ask more of you already but this is really confusing to me. I don't understand how this is to be used. I recognize that it is a vertex shader but how to use it in a program is unclear. Do you think you could do a quick follow-up post just to explain the use of this. Please.

Do I just put it in a DBPro source file??? Or what?

Very sorry for my lack of knowledge regarding this type of programming. Thank You again!

We could have handled that better.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Apr 2003 07:01
right now i'm kinda racing to get Mechwarrior done i want a playable version by midnight - which doesn't seem likely at this point cause of what i've done.

but basically all you need to do is take a model, any model will do and load that... then load the shader.
use the 'convert fvf object' command and i'd strongly suggest you use this library (include it)



use the definition provided in the Shader but use '+' instead of '|'
you'll then have to make 3 matrix, 1world, 1veiw, 1projection and 3vector3's

the shader expects the projectionveiw matrix as one so to get that you multiply the veiw*projection = veiwprojection
the matrix IT should be the veiw matrix vector3 position, the eye vector should be the camera position.

you then set the light vector to whereever you expect the light to be (offset it anywhere really doesn't greatly matter)

you then set the shader constants, then set the shader on the object and all you have to do then is update the veiw matrix and eye vector to whereever you move the camera and want to move the object
remember once you're done editing it to then reset the matrix to the projection against the projection matrix.

as i said i'd code this but don't have the time, and its just a lengthy process - not hard but lengthy (atleast for me)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
aprilfan
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 29th Apr 2003 22:58
Alright I'll cetainly try... That can't be too hard.
Thankyou for your help.

We could have handled that better.

Login to post a reply

Server time is: 2026-07-11 04:22:42
Your offset time is: 2026-07-11 04:22:42