3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: "The CG Tutorial" examples (ported to 3DRad HLSL)  (Read 3472 times)

« on: December 12, 2009, 02:52:49 AM »
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.phpl
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.
So far I've taken the first four tutorials and ported them to 3DRad, using the same syntax as provided by Fernando in his ShaderDemo.3dr. 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.

I have not included all the checks and balances (provided in genetransfer's excellent demos) as I did not want to clutter things too much. As such, they are based on the assumption that you are using shader models vs_2_0 and ps_2_0

As I continue working through the book, I will post the examples that I finish doing.
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #1 on: December 12, 2009, 03:20:23 AM »
well you picked that up quick! great job on the demos too, the series sounds really helpful.
using 3Drad 7.22

system specs:
Windows 7 Home Premium 64-bit
Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 CPUs), ~3.2Ghz
8 gig ram
Geforce GTX 650 1024 MB GDDR5
DirectX 11
« Reply #2 on: December 12, 2009, 03:51:47 AM »
Nice work Allan :)
« Reply #3 on: December 12, 2009, 10:38:05 PM »
Great work Allan!
Roll out!
http://www.youtube.com/watch?v=VD8MvMaPNO4

Do you have kids between the ages of 3 and 9?

http://www.amazon.com/dp/B007K1EFC6
« Reply #4 on: December 13, 2009, 01:22:16 AM »
Thks guys.......hopefully, in a few months, we'll have a bunch of 3DRad shader writers! ;D
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #5 on: December 13, 2009, 01:28:24 AM »
I'm crossing my fingers!  ;)
Thanks for the help AllanF ~  :-*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
« Reply #6 on: December 13, 2009, 01:35:53 AM »
Boy oh boy!.......a kiss from Eagle.........that's made my day!
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #7 on: December 13, 2009, 03:00:50 PM »
Thks guys.......hopefully, in a few months, we'll have a bunch of 3DRad shader writers! ;D

That would make 3drad unstoppable then  :P
« Reply #8 on: December 14, 2009, 09:52:01 AM »
Here's the example from Chapter 6 which demonstrates a pulsating vertex animation.
Taking this a step further should enable us to have vertical wave motion on our water
surfaces.
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #9 on: December 14, 2009, 10:55:16 AM »
Great quality stuff Allan!
Looks like you and Gene will be the shader gurus :)
« Reply #10 on: December 24, 2009, 12:22:02 PM »
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.
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #11 on: December 24, 2009, 08:28:24 PM »
nice job! :)
using 3Drad 7.22

system specs:
Windows 7 Home Premium 64-bit
Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 CPUs), ~3.2Ghz
8 gig ram
Geforce GTX 650 1024 MB GDDR5
DirectX 11
« Reply #12 on: December 25, 2009, 02:18:01 PM »
Thanks Allan, these are very nice to have.
« Reply #13 on: December 28, 2009, 01:53:16 PM »
Great AllanF, gives a good insight.
Pages: [1]