psch.thinbasic.com community forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 12, 2010, 12:54:38 am

Login with username, password and session length
Search:     Advanced search
Curious how effects in latest Tomb Raider are done ? See this article to check out the thinBASIC way: Gaming FX: TRA
158 Posts in 30 Topics by 19 Members
Latest Member: GeniimmescemI
* ** Home Forum Index Help Search Login Register
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 12, 2010, 12:54:38 am

Login with username, password and session length

Permissions

by admin on October 01, 2009, 10:36:00 am

Dear friends,

let me proudly announce new series of TBGL programming articles, the Movie FX.
They focus on creating basic visual effects and postprocessing of the video using ThinBASIC and VirtualDub.

The first articles in the series focuses on composition of still photo and animated CG object together, to create illusion of UFO flying over the city.

 

Final image produced by the script

You can read about the approach in PDF form, download script and have a look at final video .


Petr Schreiber

by admin on January 01, 2009, 09:35:00 am
217 Views

Dear friends,

2009 is here, I would like to thank to all users of ThinBasic and TBGL, who helped to enhance the module during the last year!

To make interesting step to the new year, I created little library to be used with TBGL for handling MD2 files, you can download it here.
It allows you to load and animate multiple different MD2 models at the same time, and it is released with full source code and documentation.

 

Take care,
Petr Schreiber

by admin on November 27, 2008, 12:14:00 am

Dear friends,

today, on November 26th 2008, ThinBasic made big jump forward by releasing version 1.7.0.0.

From TBGL point of view you can use improved entity module with field of view manipulation, auxiliary functions to determine OpenGL extensions and their entry points.
Very important is new possibility to use TBGL window inside any dialog, ideal for creating editor type applications. Of course, whole TBGL was revised and tweaked again, so performance has improved comparing to ThinBasic 1.6.0.10.

From optimization point of view you can rely on new dialog callback system as well as improved assembler provided via Oxygen module.
And that is not all... this update is really must for every ThinBasic programmer.

You can again educate yourself by reading ThinBasic Journal, #2 - this time created by much bigger gang of authors.

 

Petr Schreiber

by admin on July 06, 2008, 10:00:00 am
310 Views

The title says it (almost) all.

New ThinBasic from July 5th is simply faster and better.
The execution speed has significantly improved comparing to 1.6.0.9, and there is more, much more...

To get detailed look into new features you can grab ThinBasic Journal . It is new magazine which serves as learning tool for all TB programmers. It covers addition to language, as well as some general purpose articles - about porting old BASIC applications and even topic about porting new NeHe tutorials.

Regarding TBGL - TBGL_ResetKeyState and TBGL_GetTextureResolution has been added.

Hope you will like it.

 

Best regards,
Petr Schreiber

 

 

by admin on June 10, 2008, 09:41:00 pm
273 Views | Rating: (0 rates)

Dear visitors,

I would like to recommend you to download latest release of thinBASIC, version 1.6.0.9.
Besides improvements in TBGL ( like tweaks and new commands ) it also brings some important features every script can use.

3D programs usually operate with complex structures, which can be represented as variables of user defined type ( UDT ) in thinBASIC. Mentioned new release allows easier work with such a structures. Let me demonstrate you little before/after example :smile:

Lets consider following UDT and array of variables of this type:

TYPE TParticle
x AS DOUBLE
y AS DOUBLE
z AS DOUBLE
duration AS LONG
END TYPE

LOCAL Particle(10) AS TParticle

To assign to such a variables and reference this members you could use:

Before

Particle(1).x = 1
Particle(1).y = 2
Particle(1).z = 3
Particle(1).duration = 1000 - Particle(1).y

With latest release

WITH Particle(1)
.x = 1
.y = 2
.z = 3
.duration = 1000 - .y
END WITH

As you can see, even the simple assignment can be done now with less typing. You can reference members using easier way, which can enhance the speed you write and edit your code. Still, if you prefer the "old" way, you can use it too.

Second very important addition is new DOEVENT command, which allows to significantly decrease CPU usage of your programs.
If you design your main program loop as following:

WHILE TBGL_IsWindow(hWnd)
 -- Code here --
WEND

... it is highly probable, that especially on single core CPUs you can make CPU occupied over 90%. This is good for benchmarks or application which run alone or need uncompromising speed.

But MS Windows is multitasked environment, so in most cases it is polite to let other processes use some of the CPU power. By simple change of main loop to:

WHILE TBGL_IsWindow(hWnd)
 DOEVENTS
 -- Code here --
WEND

... the CPU usage drops down to fair use of just 0 to 10% CPU resources. If you are afraid this modification will necessarily make your programs run slow, let me assure that on most computer you will be still able to reach framerates over 150 FPS, which is 2x more than most LCD monitors manage to display.

Hope you liked this little introduction to new ways you can enhance your simulation, game or simply visualization programs which use TBGL module.

For more details about new thinBASIC and TBGL module improvements please have a look inside help files, bundled with each thinBASIC installation.

 

Best regards,
Petr Schreiber

Recent
[October 26, 2009, 04:31:41 pm]

[June 08, 2009, 08:04:04 pm]

[November 22, 2008, 08:14:51 pm]

[September 26, 2008, 06:49:42 pm]

[September 26, 2008, 08:20:57 am]

[September 16, 2008, 03:37:51 pm]

[February 26, 2008, 11:11:49 am]

[October 29, 2007, 11:28:49 am]

[October 26, 2007, 08:48:27 pm]

[September 16, 2007, 10:33:28 pm]
Members
Total Members: 19
Latest: GeniimmescemI
Stats
Total Posts: 158
Total Topics: 30
Online Today: 2
Online Ever: 20
(August 07, 2008, 11:03:38 am)
Users Online
Users: 0
Guests: 2
Total: 2

Last 10 shouts:
September 08, 2009, 12:26:00 pm
ThinEdge M15 specification was enhanced, latest ThinBASIC preview contains TBGL with support for normals stored directly in M15 file!
OBJ2M15 export tool has been updated to reflect this new possibilities.
August 05, 2009, 06:18:23 pm
If you are interested in latest enhancements in work-in-progress TBGL 0.2.5 and would like to help with testing, please do not wait any longer and download it today at TBGL kitchen
November 08, 2007, 10:20:17 pm
Very, very good article by Mike Hartlef about developement of AirDogs in Articles section
July 02, 2007, 05:47:50 pm
Tomb Raider: Anniversary analysed from thinBASIC point of view, see articles on http://psch.thinbasic.com/
May 03, 2007, 06:29:33 pm
New article on http://psch.thinbasic.com/

... this time about trees
March 21, 2007, 09:09:01 pm
Hi all,

do not miss new release of OpenGL headers
admin
January 27, 2007, 06:56:18 pm
thinEdge 1.0.0.6 early preview is out !
January 09, 2007, 01:26:57 pm
I updated the model viewer bundled with AT-AT model. It will work now even with latest thinBASIC
October 27, 2006, 10:36:46 am
Hi all,
new release of thinEdge is out !
October 06, 2006, 06:08:35 pm
Hi, thanks for the wishes.
I wish you the same^2 !
Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media
TinyPortal v0.9.5 © Bloc
Valid XHTML 1.0! Valid CSS!