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.

Dark GDK / db Set Cartoon Shading On problems

Author
Message
Green Fox
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location:
Posted: 2nd Apr 2009 09:38
When use the \"dbSetCartoonShadingOn\" command it make the sphere disappear. When I // it, it comes back, but not shaded right. I\'m using the images from the DBPro Basic3d1-Example. What am I doing wrong? As far as I can tell, the syntax is right. (also, I cant figure out how to turn all the lights out. dbSetAmbientLight doesn\'t seem to do the trick.)

G0DL355
15
Years of Service
User Offline
Joined: 12th Dec 2008
Location: Between Realities...
Posted: 2nd Apr 2009 16:54
Lights work in a slightly different way to cameras.

The only thing I could suggest to add to your lighting code is this:


dbHideLight(0);


This will hide the default light, which might be the effect you're looking for.

Does your Mouse Look and WASD code work?
Never seen it done that way before - its certaintly a lot neater than the way I do it XP

Good luck,

G0DL355

--------------
So Endeth What Was Begotten From That Moste Darkest and Forgotten Of Times...
Green Fox
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location:
Posted: 2nd Apr 2009 20:31
Sorry, that comment was from how I use to handle camera movement. If you're interested, that fly cam was in a .h file. Here it is.

Just call mouseLook (0.5) and flyCamera (10).


flycam.h


flycam.cpp


But I that's not the code I'm having problems.
Green Fox
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location:
Posted: 11th Apr 2009 23:52
bump, so no one knows what I'm doing wrong here?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Apr 2009 00:15 Edited at: 12th Apr 2009 00:20
I've never use that command myself, but I believe that it relies on a shader called cartoon.fx. You'll find a copy of it in your GDK folder under Samples\Bin\effects

Login to post a reply

Server time is: 2024-09-30 23:26:36
Your offset time is: 2024-09-30 23:26:36