The 3D Raddict
  • Home
  • About Me
  • My Projects
    • The Virtual Workbench >
      • Task 1: Manipulating Objects
      • Task 2: Its All Balls
      • Task 3: Weighing the Old Way
      • Task 4: Introducing Robbie the Robotic Arm
      • Task 5: Eureka!
    • The Virtual Science Lab >
      • Automation and Process Control Workshop >
        • Automating RadBot - our benchtop robot
    • Robotics : The Mindstorms Project >
      • The R6 Robotic Arm Project
    • Meccano® World >
      • Building No.10 Set's Lifting Shovel
      • "Aunt Sally" Fun Machine
      • MeccanoRAMA
      • Meccano Mechanisms
    • The Virtual Factory
    • My Hometown Walkthrough
    • My First Real Game
    • Surfing Simulation
  • My Little Shop
    • 3D Rad Tools >
      • The Handy Gesture Maker
    • 3D Rad Assets
    • 3D Rad Special Tutorials >
      • RadBot.... Creation, Programming and Challenges
  • My Freebies
    • Mouse Manipulation of Rigidbodies
    • Imposter Grid Editor
    • Andro Ragdoll Demo
    • Rope Demo
    • Cloth Flag Demo
    • Buoyancy Demo
    • Demo2 from The Handy Gesture Maker
    • Bone ID Tool
    • Full Dynamic Shadow for Andro
    • "The CG Tutorial" examples ported to 3DRad HLSL
  • My Odds and Sodds
    • Video - Interacting Rigidbodies
    • Video - Spring Balance Operation
    • Video - Me Walking on 3DRAD Terrain!
    • Video - Basic Breaking Wave used in "Surfing Simulation"
    • Video - Initial Test of Surfing Simulation
    • Video - Realtime Water using the Shallow Water Equations
  • My Blog (Latest news: 27/11/2014)

"The CG Tutorial" examples ported to 3DRad HLSL

I have been following an excellent series of tutorials on shader programming. It is actually a free e-book called "The CG Tutorial: The Definitive Guide to Real-Time Graphics" and is obtainable at http://developer.nvidia.com/object/cg_tutorial_home.html Although it is based on Cg, which is a high-level shader language developed by Nvidia in close collaboration with Microsoft,it is very similar to Microsoft's HLSL.
I've clearly marked all the extra additions in the scripts, and by comparing the two versions you should be able to pick up very quickly the small differences. The examples have the same names as those in "The CG Tutorial". The first three are pretty basic and introductory. The fourth one (CG_TutorialExampleC5E4v.3dr) is pretty good........with modifications by myself to demonstrate three interactive colored spotlights.
tutorialexamples.zip
File Size: 1580 kb
File Type: zip
Download File

Here's the example from Chapter 6 which demonstrates a pulsating vertex animation.
cg_tutorialexamplec6e1v.3dr
File Size: 153 kb
File Type: 3dr
Download File

A couple of examples from Chapter 7 demonstrating reflection and refraction, respectively.Although 3DRad built-in shaders cover this very thoroughly, it is still nice to be able to go back to first principles to uncover the theory behind them (Chapter 7, IMHO, does this very well)

While going through this process, I discovered that the 3DRad default environment map (000_em.dds), is not representative of the default terrain and sky. It actually depicts a brown sandy desert terrain and different sky. For the sake of the examples, I was forced to make an environment map which was representative of the default terrain and sky which we all use. I've attached it with the examples, so replace the default 000_em.dds with this one.
cg_tutorialexamplec7e1v.3dr
File Size: 177 kb
File Type: 3dr
Download File

cg_tutorialexamplec7e3v.3dr
File Size: 178 kb
File Type: 3dr
Download File

000_em.zip
File Size: 166 kb
File Type: zip
Download File

Back to My Freebies
Powered by Create your own unique website with customizable templates.