TinyChan

Topic: a 3d camera

+Anonymous A4.9 years ago #58,665

hello anyone ever use 2d software creator like unity or frebasic editor? basically programming... i am looking for a way to program a 3d camera, but i dont know how to or if the way i do i correct...

like i am writing a camera with position and angle, having variables like posxyz and rotxyz, and then camera with u and v, and i dont know how to connect thede two elements, with u and v moving along with posxyz and rotxyz in a certain value that is consistent

also defining if object should be visible when in front camera and vice versa? what do i do to avoid object behind me appearing in front of me?

+Anonymous B4.9 years ago, 14 hours later[T] [B] #606,853

You can either use Euler rotations, and construct rotation matrices for pitch, yaw and roll, or implement quaternions. Euler rotations are easier but suffer from a problem called gimble lock. Quaternions are more difficult but are the best way to go about it.

First learn what a transformation matrix is though.

+Anonymous C4.9 years ago, 2 minutes later, 14 hours after the original post[T] [B] #606,854

All that, and $4.89 plus tax will get you a small coffee at Starbucks.

·Anonymous A (OP) — 4.9 years ago, 14 minutes later, 14 hours after the original post[T] [B] #606,857

@606,853 (B)
> matrix
yeah whats that? it looks hard

@previous (C)
lol?

+Anonymous D4.9 years ago, 29 minutes later, 15 hours after the original post[T] [B] #606,860

Eulerangles_svg.png@previous (A)

·Anonymous A (OP) — 4.9 years ago, 2 hours later, 17 hours after the original post[T] [B] #606,867

@previous (D)
this is the polar coordinates?

Start a new topic to continue this conversation.
Or browse the latest topics.

:

You are required to fill in a captcha for your first 5 posts. Sorry, but this is required to stop people from posting while drunk. Please be responsible and don't drink and post!
If you receive this often, consider not clearing your cookies.



Please familiarise yourself with the rules and markup syntax before posting.