Results 1 to 10 of 18

Thread: NVIDIA CG in thinBASIC

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

    NVIDIA CG in thinBASIC

    Hi,

    week ago, Abraxas send me message about VisualBASIC 6 tutorials, which show how to use NVIDIA CG in VB.
    VB uses wrapper library created by Paul Dahuach, but as it is DLL, thinBASIC can use it too.
    Yesterday I made another exam, so to celebrate a bit I did the conversion

    Here is attached sample "Ejemplo 2" ( see all original VB samples here ), which basically paints primitives red .

    You will need NVIDIA CG installed ( or at least have cg.DLL and cgGL.DLL in same directory as the script ), not sure if it is suitable for ATi/Intel/S3/Matrox... , I guess not :'(

    The CG is shader language developed by NVIDIA, something like GLSL, but little different.
    You can design shaders in kind of visual way using NVIDIA FX Composer too.

    Have fun, more complex samples will come once I will have more time again.


    Bye,
    Petr

    P.S. The wrapper cgVB.DLL probably will not be necessary once I will do cg*.h headers conversion

    Learning resources
    The CG Tutorial
    eBook from NVIDIA, explains CG from the basics
    Attached Images Attached Images
    Attached Files Attached Files
    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. NVIDIA FX Composer
    By ErosOlmi in forum Technology
    Replies: 1
    Last Post: 22-07-2008, 16:11

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
  •