Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Oct 13, 2019 10:09 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: OpenGL & REALbasic
PostPosted: Thu Sep 14, 2006 10:38 am 
Offline

Joined: Mon Sep 11, 2006 10:31 am
Posts: 13
Location: Asunción, Paraguay
Hi.
I've downloaded the OpenGL Modules for REALbasic and, since I've tryed it, I've been wondering...

It's possible to develop games with REALbasic in OpenGL 3D?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 14, 2006 11:55 am 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
By that do you mean is it possible to create 3D games in Realbasic using OpenGL? if so then yes.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 14, 2006 12:39 pm 
Offline

Joined: Mon Sep 11, 2006 10:31 am
Posts: 13
Location: Asunción, Paraguay
Blake wrote:
By that do you mean is it possible to create 3D games in Realbasic using OpenGL? if so then yes.


Yes, I tried to ask that. Thanks :P

The question now is "HOW?"
Also, is another question: Is there any class or any plugin to make it easier?
Honestly, dealing with the Timer is really anoying...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 14, 2006 3:15 pm 
Offline

Joined: Fri Sep 30, 2005 4:48 pm
Posts: 263
Using a thread instead of a timer will yield much higher update frequencies.

I have a pre-compiled (Mac OS X only) demo that uses OpenGL in RB: oxide3d_test03.dmg (here are some screenshots for non-Mac people). It's a tad out of date but works well as a proof-of-concept.

"HOW" is a big question - obviously you need to know your way around OpenGL, and although I won't be releasing that renderer to the public I do have a lot of open source code on my site that you might find useful - e.g. the 3D math library and waveform classes used to create all those realtime shader animations/colour modulations.

_________________
www.chaoticbox.com · REALbasic Stuff
Latest iPhone Game: Silverifsh - pure arcade action.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 17, 2006 12:17 am 
Offline

Joined: Sat Sep 16, 2006 11:51 pm
Posts: 6
:shock:

Awsome duuuuuuude!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 03, 2006 11:09 am 
Offline

Joined: Mon Sep 11, 2006 10:31 am
Posts: 13
Location: Asunción, Paraguay
Awesome...

By now, I'm trying to learn OpenGL by following the tutorials on NeHe. I still have a LONG way to go...

Almost forgot... I have a bug... Maybe it's just my keyboard. I can't display the Console for Oxide. My keyboard configuration is in Spanish-ISO. And it doesn't work even if I turn it into USA keyboard.

Just FYI :P


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 03, 2006 11:50 am 
Offline

Joined: Fri Sep 30, 2005 4:48 pm
Posts: 263
They key to the left of the "1" key *should* bring down the console if the keyboard is set to US, but if that doesn't work there's still a way around it (send me a private message if you want to get into the gritty details).

My keyboard polling scheme doesn't handle non-US layouts all that well as I simply haven't added non-roman key mappings. The code is based on my open source Async Key Events project, so if someone contributed support for a specific keyboard layout to that project ;) ;) the effects would trickle down into other apps. Unfortunately it's difficult to localize such things being one person with limited resources and hardware.

_________________
www.chaoticbox.com · REALbasic Stuff
Latest iPhone Game: Silverifsh - pure arcade action.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 05, 2006 11:11 am 
Offline
User avatar

Joined: Sat Oct 01, 2005 1:23 pm
Posts: 74
If you want to write 3d games for the Mac, you might take a look at Unity3d (http://unity3d.com/). It's a good complement to RealBasic for game development (I'd still use RealBasic for content management/editing tools, and probably for anything GUI related).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 05, 2006 2:56 pm 
Offline

Joined: Thu Jan 12, 2006 3:30 pm
Posts: 88
how do you integrate unity with realbasic? It seems like seperate environments.

Also the flight simulator in the example's folder is really good (RBPlane i think inside 3d) of how to get the 3D working.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 11:51 am 
Offline

Joined: Mon Sep 11, 2006 10:31 am
Posts: 13
Location: Asunción, Paraguay
QUESTION!!!

How do I make that a Thread work just as a Timer to replace it in OpenGL code?

I tryed a lot and I couldn't do it!!!

_________________
REALbasic 2007r1 :: Mac mini G4 1,42 Ghz 256 MB RAM
© 2007, febo-kun


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 1:06 pm 
Offline

Joined: Fri Sep 30, 2005 11:19 am
Posts: 275
febo-kun wrote:
QUESTION!!!

How do I make that a Thread work just as a Timer to replace it in OpenGL code?


What do you mean? You just more or less take the timer code and run it in a loop inside a thread.

_________________
"If you look carefully at my lips, you'll realize that I'm actually saying something else."
Brainswitch Machina - REALStudio/REALbasic
RBScriptExtender - give RBScript power to work with any class


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Oct 15, 2006 12:05 am 
Offline

Joined: Fri Dec 16, 2005 10:19 pm
Posts: 493
brian meyer wrote:
Also the flight simulator in the example's folder is really good (RBPlane i think inside 3d) of how to get the 3D working.


I looked at this in some depth and found its very out of date and has some issues (physics wise), like it lacks angle of attack code. I was going to fix it (and I almost finished) when I decided non-realistic physics would be better.

The 3d example seem to often be really out of date (Pre trimesh class for example, also before a lot of the built in 3d vector methods). I seem to have found better stuff on the rb games mailing list. Recently a shadows demo and great sparks demo were going around on it.
My modified version of the sparks demo source is currently at http://www.spincraftsoftware.com/files/ ... Source.zip

I have just been sticking to pure built in RB3D (No open GL plugins or decalres) and it seems like its possible to build games that way. So a class or plugin? RB3D space and Quesa (well its not a plug in).

When working with threads the point is to run the frames as fast as the computer can handle with out removing its ability to respond to the user. This will lead to varying frame times which you will need to handle. You will want to capture the delta time, or elapsed time and pass it to all the methods you use when you update. Your code will run in a loop on a thread which will look until you stop the game.

Good luck!

_________________
- Craig Macomber -
See my rb apps at:
http://www.spincraftsoftware.com/
Lead Programmer for Fragmented Galaxy, an MMORTS:
http://f-g.wikidot.com/


Top
 Profile  
Reply with quote  
 Post subject: HELP!
PostPosted: Tue Nov 07, 2006 1:08 pm 
Offline

Joined: Mon Sep 11, 2006 10:31 am
Posts: 13
Location: Asunción, Paraguay
I need a favor. I tryed to download the RB Animation Builder. After I download it all, i try to unzip it and Stuffit crashes.

I don't know what's happening. Somebody could send me the Classes to my Gmail: gvescu@gmail.com please?

_________________
REALbasic 2007r1 :: Mac mini G4 1,42 Ghz 256 MB RAM
© 2007, febo-kun


Top
 Profile  
Reply with quote  
 Post subject: Re: HELP!
PostPosted: Thu Nov 09, 2006 8:25 pm 
Offline

Joined: Fri Dec 16, 2005 10:19 pm
Posts: 493
febo-kun wrote:
I need a favor. I tryed to download the RB Animation Builder. After I download it all, i try to unzip it and Stuffit crashes.

I don't know what's happening. Somebody could send me the Classes to my Gmail: gvescu@gmail.com please?


I'm just going off of old memories here but I think it might be an OSX zip. If your on windows that could be the problem. If no one says they sent it to you I will dig it up and send it later.

_________________
- Craig Macomber -
See my rb apps at:
http://www.spincraftsoftware.com/
Lead Programmer for Fragmented Galaxy, an MMORTS:
http://f-g.wikidot.com/


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 14, 2006 8:18 pm 
Offline

Joined: Mon Sep 11, 2006 10:31 am
Posts: 13
Location: Asunción, Paraguay
Actually, I'm working on a OSX.
When I use the standard BOMArchive Helper it freezes, and when I use the Stuffit Expander it crashes.
I don't know what to do, and I don't have the bandwidth to download it again :oops:

_________________
REALbasic 2007r1 :: Mac mini G4 1,42 Ghz 256 MB RAM
© 2007, febo-kun


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group