Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 7:57 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: [ANN] RB3D GL v0.2 release
PostPosted: Mon Jan 11, 2010 2:29 pm 
Offline

Joined: Mon Feb 05, 2007 11:35 am
Posts: 98
After much wrangling, I've finally managed to add Windows support to my RB3D OpenGL replacement!
But take it with a big grain of salt: My only testing Windows "machine" is in emulation: VMware Fusion running Windows XP (OpenGL 2.1-compliant). I don't have a proper Windows machine to work on, but I'm taking the position that if an emulator has it running, that's a sign I'm moving in the right direction.

The only functionality missing on Windows is antialiasing, but everything else seems to be working. Of course, it's possible it might not work on your Windows machine, so do let me know what sort of error messages you get.

Finally, I'll note that these classes are written in RB2007r1. There may be some issues with RB2009.

Also new are classes for creating torus and box shapes. See glTorus and glBox in the docs.

Download here:
http://www.jcquan.com/REALbasic/GL-v0.2.zip

_________________
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: [ANN] RB3D GL v0.2 release
PostPosted: Mon Jan 11, 2010 3:42 pm 
Offline

Joined: Thu Feb 22, 2007 7:08 pm
Posts: 1384
Thanks Jeff for the Windows support.

There are few errors in the glSpace class:
Private mFogMode As Integer = GL_LINEAR

glSpace.InitOverlays:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR)  // linear filtering Line: 38
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR) // Line: 39
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR) // linear filtering Line: 57
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR) // Line: 58

But if you remove the GL_LINEAR from mFogMode then all works.

Tested on Vista RB 2007 R3.


Top
 Profile  
Reply with quote  
 Post subject: Re: [ANN] RB3D GL v0.2 release
PostPosted: Mon Jan 11, 2010 7:41 pm 
Offline

Joined: Mon Feb 05, 2007 11:35 am
Posts: 98
Do you mean removing GL_LINEAR as the default value from mFogMode fixed fog for you, or did you change something else as well? What were you seeing before this?

_________________
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: [ANN] RB3D GL v0.2 release
PostPosted: Mon Jan 11, 2010 8:10 pm 
Offline

Joined: Thu Feb 26, 2009 4:41 pm
Posts: 37
So what does this add that RB3D OpenGL doesn't have?


Top
 Profile  
Reply with quote  
 Post subject: Re: [ANN] RB3D GL v0.2 release
PostPosted: Mon Jan 11, 2010 8:26 pm 
Offline

Joined: Mon Feb 05, 2007 11:35 am
Posts: 98
Lots of things, all of which are listed in the included docs, such as:

- OBJ file importing
- Opacity and blending functions per element3D
- Rendering of object can be set per element3D (ie: you can have an element3D ignore fog settings)
- Support for the OpenGL Shader Language (GLSL) as well as OpenGL’s low-level shaders
- Multiple textures per mesh
- Antialiasing (Mac-only at the moment)
- Built-in creation for Torus, Box, Sphere, Cylinder, and Disk
- Drawing of lines and points

_________________
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: [ANN] RB3D GL v0.2 release
PostPosted: Tue Jan 12, 2010 2:02 am 
Offline

Joined: Thu Feb 22, 2007 7:08 pm
Posts: 1384
If I remove "GL_LINEAR" from "mFogMode", also let it zero, so there is no error at line: 38, 39, 57, 58
Otherwise I become a error "The paramater is not compatible to this function" on the lines above.

The application "OpenGL Test.exe" works here so far any error.


Top
 Profile  
Reply with quote  
 Post subject: Re: [ANN] RB3D GL v0.2 release
PostPosted: Tue Jan 12, 2010 2:15 pm 
Offline

Joined: Mon Feb 05, 2007 11:35 am
Posts: 98
That's interesting, seeing that the code in glSpace.InitOverlays has nothing to do with mFogMode. Thanks for pointing it out -- I'll take a closer look.

_________________
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  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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