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  [ 3 posts ] 
Author Message
 Post subject: Super Basic - Simple points in 3d
PostPosted: Thu Mar 12, 2009 4:31 pm 
Offline

Joined: Thu Mar 12, 2009 4:23 pm
Posts: 5
Hey all,
I want to graph some data in one of my programs and would like to create a basic x,y,z axis and plots some points in 3d space, be able to zoom in and out and rotate the camera etc. I download the RBGL3d class and managed to create a camera and some empty space, pretty exciting. I guess now I'm just looking for the simplest way of creating these plots. I don't need texture mapping, or anything fancy I would be supper happy with floating multi-colored-balls. Can any one help me out getting this off the ground. I have about zero experience with 3d, and don't really want to have to learn too much to get this off the ground. Since there is really no documentation for the RBGL library I'm not really making any progress.
Thanks in advance!
Julian


Top
 Profile  
Reply with quote  
 Post subject: Re: Super Basic - Simple points in 3d
PostPosted: Fri Mar 13, 2009 12:30 pm 
Offline

Joined: Mon Feb 05, 2007 11:35 am
Posts: 98
RBGL's API is the same as RB3D's — you should be able to use RB's language reference to glean what each equivalent function is. The primary difference is the addition of the prefix RB3D to each of the function names. But why not use RB3D itself?

Neither RBGL or RB3D builds spheres (or any other shapes, for that matter) for you automatically — you'll have to build that yourself. For RB3D, you can load in a pre-built 3DMF model from a 3D modeler like Meshwork (http://codenautics.com/meshwork/). Meshwork can easily build a sphere for you.

As to moving a camera, things get more complicated. Depending on how you position/rotate/zoom your camera, it's going take a bit of math to get the camera where you want it. Joe Strout's 3D FAQ at http://www.strout.net/info/coding/rb/ has some code for orbiting and aiming a camera.

_________________
Regards,

Jeff Quan
jeff@jcquan.com
http://www.jcquan.com/JQportfolio
My RBGL replacement classes: http://www.jcquan.com/REALbasic


Top
 Profile  
Reply with quote  
 Post subject: Re: Super Basic - Simple points in 3d
PostPosted: Mon Jan 25, 2010 9:59 am 
Offline

Joined: Mon May 12, 2008 5:25 pm
Posts: 43
julian mussi wrote:
Hey all,
I want to graph some data in one of my programs and would like to create a basic x,y,z axis and plots some points in 3d space, be able to zoom in and out and rotate the camera etc. I download the RBGL3d class and managed to create a camera and some empty space, pretty exciting. I guess now I'm just looking for the simplest way of creating these plots. I don't need texture mapping, or anything fancy I would be supper happy with floating multi-colored-balls. Can any one help me out getting this off the ground. I have about zero experience with 3d, and don't really want to have to learn too much to get this off the ground. Since there is really no documentation for the RBGL library I'm not really making any progress.
Thanks in advance!
Julian


I did a post a couple years ago about how to do a Cube in 3rd.
Check it out here:

viewtopic.php?f=4&t=22359&p=118363&hilit=Carmine#p118363

(I don't have the .zip on my site anymore, but all the code is in the post i think)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

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