Archive: For 3D Makers only


7th January 2002 16:33 UTC

For 3D Makers only
Probably u know that in a 3d movement you get wrapy part that looks
so sh**ty.Do u know how to fix these with alpha blending??:confused:


7th January 2002 18:42 UTC

Distance fog
If you mean distortion at a large distance, then it's best to calculate the distance of a point to the camera and set alphablending depending on the distance. For example:

(px,y,z is your point, ox,y,z is your camera/origin)

d = (sqr(px-ox) + sqr(py-oy) + sqr(pz-oz))
alpha = 3-d/2;

At distance 4 the pixels will begin to fade, and they will be transparent at distance 6. If you add a coloured clear-screen before your 3D movement (and use a buffersave for your picture), then you can have coloured fog.


8th January 2002 19:42 UTC

Thanks UnConeD. I've been having a bitch of a time getting alpha blending sorted out and this really cleans up a couple of blemishes on some of my presets.


11th January 2002 03:44 UTC

uh...

/me needs to learn course III or something more advanced to under stand...

/me gets soo much info course 2 :rolleyes:
esp. when i do my crappy 2d scopes i practically guess on making em :D:confused::(