Results 1 to 10 of 27

Thread: M15 - reimplementation via GBuffers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    M15 - reimplementation via GBuffers

    Hi guys,

    I was thinking about the M15 from memory a lot last days, and I got a crazy idea (my default kind of ideas).
    What about re-implementing the M15 as ThinBASIC TWF (TYPE with FUNCTIONs), using TBGL GBuffers as backend?

    Advantage:
    - much faster rendering than current M15 backend
    - dynamic allocation, no longer needed to specify number of models and their dimensions ahead
    - thinBasic code layer, adjustable by anyone

    Where is the code?
    https://github.com/petrSchreiber/m15Model

    How can I use it?
    Please note the current implementation is in pre-release phase, targetted at testing.
    You can grab the files from releases page.

    How difficult it is to use?
    Not much After you download the includes, it can be as simple as:
    #include "m15Model.tbasicu"
    
    ...
    
    dim model as m15Model
    
    model.FromFile("C:\myModel.m15")
    ' -- or
    String memoryBuffer = file_load("C:\myModel.m15")
    model.FromMemory(memoryBuffer)
    
    ...
    
    model.render
    
    Feedback welcome!
    Looking forward to your feedback. And if it is the way to go for you, please attach your M15 models, so I can use them as test data!


    Petr
    Last edited by Petr Schreiber; 27-03-2016 at 09:52.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. How to combine GBuffers & Entities?
    By ReneMiner in forum TBGL General
    Replies: 9
    Last Post: 16-01-2018, 08:56
  2. glDrawArrays example + GBuffers example
    By primo in forum TBGL General
    Replies: 1
    Last Post: 21-11-2015, 23:47
  3. The silence inside the fractal - GBuffers (how many may be used ?)
    By RobbeK in forum TBGL Scripts and Projects
    Replies: 35
    Last Post: 24-01-2014, 12:18
  4. Preview: GBuffers for TBGL
    By Petr Schreiber in forum TBGL module by Petr Schreiber
    Replies: 11
    Last Post: 04-03-2010, 11:33

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •