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.

Newcomers DBPro Corner / Dark triangle limbs

Author
Message
tubeular cube face
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 5th Aug 2008 17:53
so I'm using limbs to build a sort of car thing only I want all the outside to look like a single surface therefor paralell planes should have the same tone. However all of the limbs based of triangles are always darker and I can't work out why and make them the same shade. I have tried applying texture but they are still darker. Its not very easy to explain but basicly load up the code below and you may see what I mean.



Tubeularcubeface
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 5th Aug 2008 18:22
you must use the command SET LIMB NORMALS obj,limb for it to recive the light properly.
cheers
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Aug 2008 19:20


See the loop at the end of the function ... BTW, you shouldn't GOSUB to a function name - call the function as I've done in the code. Although DBPro currently allows it, and it is currently safe, there's no guarantee that it will be so in the future.

tubeular cube face
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 5th Aug 2008 21:41
Thanks for your replies but this did not work I got a could not understand comand error warning a picture is attached.

Tubeularcubeface

Attachments

Login to view attachments
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Aug 2008 23:03
It's one of the newer commands - you need to upgrade to one of the newer versions of DBPro.

Login to post a reply

Server time is: 2024-09-27 18:26:02
Your offset time is: 2024-09-27 18:26:02