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 / How to normalize a matrix

Author
Message
ZioNz
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location:
Posted: 23rd Feb 2004 10:12
Hi, i already made the matrix using a simple editor, is there a way to "normalize" matrix like matedit does??, without having to remake it, like a function or something??

-
Ratty Rat
22
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 23rd Feb 2004 11:46
This bit of code comes from the DB1 manual (I imagine they won`t mind my re-producing it here).

It sets the normals for a plane in the matrix defined by x,z to x-1, z-1.
Put this in loops for your matrix x & z and it should normalize the entire matrix.
It`s useful to fiddle with this, you can 'dampen' the normals, for instance, to produce smoother looking surfaces!

"Don`t try to engage my enthusiasm, I don`t have one"

Login to post a reply

Server time is: 2025-06-03 18:13:07
Your offset time is: 2025-06-03 18:13:07