realbasic-games
[Top] [All Lists]

Re: more brain picking...

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: more brain picking...
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Thu, 1 Jun 2006 00:20:17 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <2FF996BD-6E7B-4E03-B63A-A2C5959C1FB3 at divergentmedia dot com> <bc06d452b7a7455656a09ce3e36a1657 at fireyesoftware dot com> <08C64373-B2B0-421B-AB83-4B12A914E462 at divergentmedia dot com>

On Jun 1, 2006, at 12:13 AM, Mike Woodworth wrote:

other questions: i just realized my video frame is backwards, is it possible i've attached the texture backwards? or am i looking at it from the behind?

OpenGL coordinates are bottom-left based, so you have to flip the Y axis from what you'd think in RB.

hmm, my frame is backward left to right.

I presume you are drawing your texture on a quad? Just flip the x vertices of the quad, or rearrange the texture coordinates.

change:
A     B
C     D

to:
B     A
D     C

The texture is being stretched between vertices, so you can do anything you want to the shape and orientation of your video :-) Rotation is free. You could even play it on a bouncing sphere.

Asher

-------------------------
Asher Dunn
Head Developer, Fireye Software
http://www.fireyesoftware.com/
AIM, Yahoo, MSN: crazedglkid


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>