New topic: 

Graphics rotate a picture and fast display

<http://forums.realsoftware.com/viewtopic.php?t=38356>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        peterthisted          Post subject: Graphics rotate a picture 
and fast displayPosted: Mon Mar 28, 2011 3:25 am                         
Joined: Mon Aug 14, 2006 7:12 am
Posts: 51                Im am doing an artificial horizon for an aircraft 
software panel.

Everything for the static picture that rotates following the horizon, is 
contained in a Group2D which is rotated min 30 times/sec using a timer. The 
group also contains the static background that is not rotated or moved.
In the group there are lines , fill areas and some numbers.
At first I did a gradient also using multiple lines but that is very very slow, 
because every line needs to be calculated so many times.

So now I am considering using a static picture, but having trouble to find the 
best way to rotate (and move) this picture on top of a static background 
picture.
The rotated picture must be transparent so the background still is visible.
This is achieved using Group2D, but as it appears too slow.

Re Peter   
                             Top                trs          Post subject: Re: 
Graphics rotate a picture and fast displayPosted: Mon Mar 28, 2011 6:00 am      
                   
Joined: Thu May 03, 2007 2:33 pm
Posts: 195                Can your app be converted to use OpenGL - this can be 
some work to do, but will be a great deal faster for the types of graphics you 
are drawing.   
                             Top                peterthisted          Post 
subject: Re: Graphics rotate a picture and fast displayPosted: Mon Mar 28, 2011 
9:01 am                         
Joined: Mon Aug 14, 2006 7:12 am
Posts: 51                Maybe that would be possible.
My app is a collection of multiple instruments, each in its own window, so 
there is a need only to change one window.
I laid it out that way to better be able to do something like that and keep the 
total overview

I have never worked with OpenGL, but I will give it a read 

For info, I am working on a Mac environment .......

Re Peter   
                             Top                doofus          Post subject: 
Re: Graphics rotate a picture and fast displayPosted: Mon Mar 28, 2011 9:23 am  
                               
Joined: Thu Sep 10, 2009 2:50 am
Posts: 90
Location: Santa Cruz, CA, USA                peterthisted wrote:I have never 
worked with OpenGL, but I will give it a read  :shock:
There's several opengl frameworks around that make it easier to use. One that I 
like is SuperSpriteSurface.   
                             Top                 peterthisted          Post 
subject: Re: Graphics rotate a picture and fast displayPosted: Mon Mar 28, 2011 
9:41 am                         
Joined: Mon Aug 14, 2006 7:12 am
Posts: 51                Quote:One that I like is SuperSpriteSurface

Downloaded it and I must say that it looks very good from the Demo app's 
Is there a quick start guide somewhere or a simple example to get started with ?

I am not used to use external classes or plugins, because I prefer to be in 
total control and understand everything i do.
However this one looks very promising

Re Peter   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to