Search found 206 matches

by xXxMoNkEyMaNxXx
Thu Jan 10, 2013 10:21 am
Forum: Support and Development
Topic: lua carousel? help please
Replies: 8
Views: 3051

Re: lua carousel? help please

Yes.

cam=camera position
obj=object position
C=carousel center

transparency=sqrt(acos((obj-C) dot (cam-C))/pi)
a dot b=(ax*bx+ay*by+az*bz)/(a.magnitue*b.magnitude)
by xXxMoNkEyMaNxXx
Thu Jan 10, 2013 9:55 am
Forum: Support and Development
Topic: lua carousel? help please
Replies: 8
Views: 3051

Re: lua carousel? help please

You could use the arccosine of the dot product of the direction to the cam and the direction to the object on the carousel divided my pi all squared (or square-rooted, one of them looks better.) as the coefficient for transparency.
by xXxMoNkEyMaNxXx
Thu Jan 10, 2013 9:46 am
Forum: Support and Development
Topic: 3D Rendering
Replies: 7
Views: 9133

Re: 3D Rendering

The Matrix is all messed up when you turn the camera, but it doesn't fly off anymore.
Controls:
QWEASD: move
IO: FOV
Arrow keys: Rotate badly, avoid using at first
R: Reset
by xXxMoNkEyMaNxXx
Thu Jan 10, 2013 9:08 am
Forum: Support and Development
Topic: 3D Rendering
Replies: 7
Views: 9133

Re: 3D Rendering

Thanks, but I got it mostly figured out. Now I'm trying to normalize the matrix for the camera when it's rotated, it's looking great so far.
by xXxMoNkEyMaNxXx
Thu Jan 10, 2013 7:44 am
Forum: Support and Development
Topic: 3D Rendering
Replies: 7
Views: 9133

Re: 3D Rendering

Ah, there we go, an hour later. The problem was with using'graphics' but I have no idea why.
by xXxMoNkEyMaNxXx
Thu Jan 10, 2013 6:44 am
Forum: Support and Development
Topic: 3D Rendering
Replies: 7
Views: 9133

3D Rendering

I meant to bump my Demo thread, but this is what I'm trying to work on/fix: -Raycasting -Modules -Lighting Controls: wasd:move io: field of view arrow keys, qe, rclick: Turn properly R: Reset --By xXxMoNkEyMaNxXx local next=next local env=getfenv() local function using(namespace) for i,v in next,env...