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 / set matrix normals values?

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 5th Oct 2006 18:59 Edited at: 5th Oct 2006 19:00
does anyone know of the highest value before it turns black again.
as iam using it and when the ground gets to high it reverses the normals back to black?
.......
set matrix normal 1,x,z,cos(get matrix height(1,x,z)+35),sin(get matrix height(1,(x),z)+40),cos(get matrix height(1,(x),z)+35)
........
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Oct 2006 19:35
cos and sin can return a number between -1 and 1

Normals should be from 0 to 1

so I assume that's your problem

Boo!
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 6th Oct 2006 00:10
wath do you mean exactly is the largest power 1.0 for the normals?
i have still not got it where i want it but its close
you can se the screenie that i have managed to limit the darkest parts.
cheers

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-25 09:32:23
Your offset time is: 2024-09-25 09:32:23