Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Nov 22, 2017 8:02 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: OpenGL Controls [Open Source]
PostPosted: Mon Feb 23, 2009 1:26 am 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
Hey guys, I just finished up working on some OpenGL Control Classes to use with rb and am opening them up to the public. I really want these to be customizable for use in any game so feel free to download, use, alter and offer up suggestions to improve them 8)

The OpenGL Code is cross-platform so Mac & Windows programmers are welcome. One note for Mac users, there has been a couple cases of the thread running too quickly and locking up the app, if this happens just change the thread to a timer and remove the do & loop.

Download: OGL Controls v1.1 (Released: 03/08/2009)

Download: OGL Controls v1.0 (Released: 02/23/2009) - Newer Versions of RB, Fixes Super issue.
Download: OGL Controls v1.0 (Released: 02/23/2009) - RB 5.5.5

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Last edited by Blake on Sun Mar 08, 2009 8:01 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Mon Feb 23, 2009 8:35 am 
Offline

Joined: Fri Feb 20, 2009 11:48 am
Posts: 9
Wow... Today is my lucky day! I'm returning to RB to do some cross-platform applications that rely on OGL for the rendering context. I'll sure give your library a go. Thank you!


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Mon Feb 23, 2009 12:36 pm 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
You're welcome :)

That is my main goal, to give everyone access to the tools needed to create quality games in rb.

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 4:22 am 
Offline

Joined: Thu Oct 13, 2005 1:05 am
Posts: 101
Thanks !

I tried to compile it with RB 2008 5.1 (Mac) , didnt changed any code
but always get an compiler error

Control Builder.rb : OpenGLSlider1 on Console impements the Event "ValueChanged"
but his superclass Canvas has that event already implemented.


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 10:55 am 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
mitch_stgt wrote:
Thanks !

I tried to compile it with RB 2008 5.1 (Mac) , didnt changed any code
but always get an compiler error

Control Builder.rb : OpenGLSlider1 on Console impements the Event "ValueChanged"
but his superclass Canvas has that event already implemented.


Hmm...Is there a value changed event for the canvas now? I'm using 5.5.5 so I am sure some things have changed.

If there is just comment out the even in the OpenGLControl class and it should work.

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 11:41 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 3:53 pm
Posts: 3261
Location: England
Blake wrote:
Hmm...Is there a value changed event for the canvas now?

No, the error message is misleading.

When opening the project in some recent versions, the controls lose their super - it reverts to Canvas.

We can all have lots of fun resetting them to OpenGLControl :(

_________________
Steve Garman
Using REALbasic 2008r2 Professional on Windows Vista Ultimate
and REALbasic 2009r5.1 Professional on Linux Ubuntu 9.04 Desktop
and REAL Studio 2010r1 Personal on Linux Ubuntu 9.10 Desktop
Occasional blog


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 2:14 pm 
Offline

Joined: Thu Oct 13, 2005 1:05 am
Posts: 101
Thanks for help with that RB bug .
Q: How many times must i change canvas to OpenGLControl ?
All canvas in the projekt to OpenGLControl ?


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 2:26 pm 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
Oh I didn't realize that they lost their super. Luckly I named them what they are so setting the super should be easy without guessing what sub-class it is :)

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 3:16 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 3:53 pm
Posts: 3261
Location: England
Just had a quick play with this - I really like it :D

_________________
Steve Garman
Using REALbasic 2008r2 Professional on Windows Vista Ultimate
and REALbasic 2009r5.1 Professional on Linux Ubuntu 9.04 Desktop
and REAL Studio 2010r1 Personal on Linux Ubuntu 9.10 Desktop
Occasional blog


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 3:54 pm 
Offline

Joined: Fri Feb 20, 2009 11:48 am
Posts: 9
Please excuse my lack of knowledge, I've been away from RB for about 5 years... But how is this installed? I've placed the whole Control Builder folder into the plugins directory but I don't think that's correct. Thx for bearing with me. :oops:


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 4:03 pm 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
Its not a plugin, its straight RB code. Just launch the source (.rb) and set the supers of the canvases (if they are incorrect) and you are good to go.

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 4:05 pm 
Offline

Joined: Fri Feb 20, 2009 11:48 am
Posts: 9
Thanks Blake... Looks like I need to spend a bit more time in the User manual... :wink:


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Tue Feb 24, 2009 4:09 pm 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
jhouck wrote:
Thanks Blake... Looks like I need to spend a bit more time in the User manual... :wink:


No problem, try the new download (first post) if you are having any more issues getting it working.

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Wed Feb 25, 2009 5:31 am 
Offline

Joined: Thu Apr 10, 2008 6:03 am
Posts: 303
Location: Paris-La Défense, France
I've downloaded it, opened the project, and tried it in the debugger.
Each time it crashed when opening.

So I created a new Window, set its super property to OpenGLDisplay.
Then I added a control
And when debugging this new window it doesn't work either.

I am using RB 2008r4.2 on Windows Vista 32 bits

_________________
Check my Website for high quality custom controls and classes (no plugins) for Windows, Mac OS and Linux
REALBasic 2012 R2 on Win 7 & Mac OS X


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Controls [Open Source]
PostPosted: Wed Feb 25, 2009 12:32 pm 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
Sounds like it may be in the creation of opengl, can you step through the open event and see where its crashing?

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group