Results 1 to 10 of 18

Thread: NVIDIA CG in thinBASIC

Threaded View

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,795
    Blog Entries
    3
    Rep Power
    693

    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 Thumbnails Attached Thumbnails Click image for larger version. 

Name:	CG_Example2.png 
Views:	123 
Size:	10.9 KB 
ID:	4602  
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Similar Threads

  1. NVIDIA FX Composer
    By ErosOlmi in forum Technology
    Replies: 1
    Last Post: 22-07-2008, 16:11

Posting Permissions

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