thinBasic: Basic Programming Language - Powered by vBulletin
  • Register
  • Help

  • Articles
    • thinBasic Community
    • TBGL
    • thinBasic Language
    • Modules
    • From the forum
    • About thinBasic
    • SDK Development
  • Forum
  • Blogs
  • Bug tracking/Projects Support
  • thinBasic/Resources
    • Download latest thinBasic Version
    • Download: TBGL Bonus Pack
    • Download: TBGL Bonus Pack Pro
    • thinBasic Online Help
    • thinBasic on GitHub
  • Advanced Search
  • Home
  • Home
  • Modules
  • TBGL

  • Follow us on Facebook
  • Download Latest thinBasic
  • thinBasic on GitHub
  1. If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
  • Sections

    • thinBasic Language
    • Modules
      • TBGL
    • General purpose algorithms
    • Uses of ThinBASIC
    • SDK Development
    • From the forum
    • Other programming languages
  • Categories

    FreeBasic (0)
    Info (4)
    Module (5)
    News (3)
    PowerBasic (1)
    SDK (1)
    Tech Advanced (2)
    Tech Basic (5)
    Tech Intermediate (4)
    User Projects (4)
  • TBGL RSS Feed

    State safe TBGL programming 

    by
    Petr Schreiber
    • View Profile
    • View Forum Posts
    • Private Message
    • View Blog Entries
    • Visit Homepage
    • View Articles
    Published on 25-10-2012 12:00     Number of Views: 9401 
    1. Categories:
    2. Tech Basic

    TBGL rendering system is internally based on the OpenGL technology, therefore it shares the state machine oriented design. This means that once you set some of the states, such as drawing color, it stays enabled until you change it to something else. While this can be advantageous in some situations, in others it can cause problem, especially when trying to write modular code.

    This article describes the possible side effects of state handling and proposes new code style which should help you write modular graphic code of better quality.
    ...
    Read More Read More 1 Comment

    Beyond TBGL: Offscreen rendering, why and how? 

    by
    Petr Schreiber
    • View Profile
    • View Forum Posts
    • Private Message
    • View Blog Entries
    • Visit Homepage
    • View Articles
    Published on 18-05-2011 03:00     Number of Views: 19744 
    1. Categories:
    2. Tech Intermediate

    ThinBASIC offers the continuously developed TBGL library since year 2005. It is module focusing on providing way to draw graphics hardware accelerated way, but only with features which are widely adopted. That means, only "safe" functionality is added, so programmer can sleep peacefuly, because his scripts will run on any PC with properly installed GPU drivers.

    But in real world, there are situations, when you simply need to use even the cutting edge features or features not commonly implemented by all hardware vendors. One of such a features is offscreen rendering, and this article will tell you for what it can be useful, what are the basic principles and it finally gives you sample implementation and script examples.
    ...
    Read More Read More 14 Comments

    MovieFX: Blending based bokeh 

    by
    Petr Schreiber
    • View Profile
    • View Forum Posts
    • Private Message
    • View Blog Entries
    • Visit Homepage
    • View Articles
    Published on 01-01-2011 15:30     Number of Views: 16114 
    1. Categories:
    2. Tech Intermediate,
    3. Module
    Article Preview

    There is an interesting trend which can be observed in the cut scenes present in many videogames released in the last years. Almost every 3D game now shows increased focus on cinematic feeling, which is achieved by extensive use of motion capture and specific work with camera, which includes not only its movement in the scene, but also simulating some of the optical properties as well.
    ...
    Read More Read More 4 Comments

    Entity data signature 

    by
    Petr Schreiber
    • View Profile
    • View Forum Posts
    • Private Message
    • View Blog Entries
    • Visit Homepage
    • View Articles
    Published on 01-11-2010 08:30  Number of Views: 13814 
    1. Categories:
    2. Tech Basic,
    3. Module

    TBGL provides the programmer with entity system, which allows definition of multiple kinds of types of entities. Sometimes we need to work with just group of entities and cast on them context specific action.

    As the scene in TBGL can be composed of completely heterogeneous elements, this can become quite complicated task. We will take advantage of the fact any entity in TBGL can hold its custom user data, defined by programmer. By marking the user data with custom signature, we can easily determine which entities have something in common.

    This article explains what data signature is, how to specify it and how to use it for comfortable handling of objects in the scene.

    ...
    Read More Read More 3 Comments

    User defined entities 

    by
    Petr Schreiber
    • View Profile
    • View Forum Posts
    • Private Message
    • View Blog Entries
    • Visit Homepage
    • View Articles
    Published on 01-10-2010 07:30  Number of Views: 10659 
    1. Categories:
    2. Tech Basic,
    3. User Projects,
    4. Module
    Article Preview

    ThinBasic module for accelerated graphics, TBGL, offers multiple ways to represent the scene. The most straightforward one is often referenced as entity system.

    Entity system allows organization of various kinds of entities in scenes. Programmers can define “solid” objects using geometric primitives, m15 models or display lists and specify their relationship. This is enough for most typical applications, but what to do when the programmer want to use different kinds of objects.

    The answer is – use the function slot entity.

    ...
    Read More Read More

    MovieFX: Combining photo with 3D object 

    by
    Petr Schreiber
    • View Profile
    • View Forum Posts
    • Private Message
    • View Blog Entries
    • Visit Homepage
    • View Articles
    Published on 01-09-2010 07:30     Number of Views: 13269 
    1. Categories:
    2. Tech Intermediate,
    3. Module
    Article Preview

    When looking at recent state of CG effects in movies and TV series, one of the most attractive topics is combining real world footage with some ...
    Read More Read More 1 Comment

  • Tag Cloud

    algorithm assign books boolean console copy crossreference directories distribution ebook error exit filename game gamedev interactive fiction linked lists loop math msgbox msgboxw naming number output paste physics printl program programming random retrogaming richedit selection software statistics text adventure theme theming thinair true udt utility
  • Recent Activity

    kcvinu

    SetWindowSubclass is not working.

    Thread Starter: kcvinu

    Hi all, I am trying to subclass a button, But SetWindowSubclass is not working. The window starts and suddenly thinBasic.exe is stop working. Here...

    Last Post By: kcvinu Yesterday, 11:14 Go to last post
    kcvinu

    How to convert a pointer to an UDT ?

    Thread Starter: kcvinu

    Hi all, I store my UDT variable to a pointer with Varptr function. I then retrieve it with GetWindowLong function. So far so good. I got the same...

    Last Post By: kcvinu 10-04-2021, 23:16 Go to last post
    kcvinu

    CreateWindowEx is resulting Zero.

    Thread Starter: kcvinu

    Hi all, I am trying to create a window with win32 functions. But CreateWindowEx is returning 0 . This is my code. Please check this and guide me. ...

    Last Post By: kcvinu 08-04-2021, 23:22 Go to last post
    kcvinu

    How to display unicode string in ThinBasic controls

    Thread Starter: kcvinu

    Hi all, I am practicing some ui scripts. I can easily display unicode strings with MsgBoxW function. But I am not able to display unicode text in a...

    Last Post By: kcvinu 03-04-2021, 02:06 Go to last post
    ReneMiner

    No Callbacks for timers?

    Thread Starter: ReneMiner

    I just wonder if the statement in help is still up to date. timers are not created alike Control Add Timer but by Dialog Set Timer

    Last Post By: ReneMiner 03-04-2021, 01:00 Go to last post
  • Contact Us
  • thinBasic: Basic Programming Language
  • Archive
  • Top
All times are GMT +2. The time now is 00:43.