Im having biblical dificulties geting my light system to work correctly, so I''m looking for a Cg tutorial with source code for Visual Studio, that implements a very basic light system, just a dot product between the light and the normals, something extremely simple.
If anyone here has some source code he wont mind providing, i would be most thankful, i''m just trying to pin-point exactly what im doing wrong...
Thanks ahead for any replies.
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"our stupidity allways comes back to bite us in the ass... in a white-shark sort of way..." - Prozak
Loooking Download Cg Tut w/ Light
quote:Original post by Prozak
Im having biblical dificulties geting my light system to work correctly, so I''m looking for a Cg tutorial with source code for Visual Studio, that implements a very basic light system, just a dot product between the light and the normals, something extremely simple.
If anyone here has some source code he wont mind providing, i would be most thankful, i''m just trying to pin-point exactly what im doing wrong...
Thanks ahead for any replies.
<a href="http://www.positronicdreams.com/" target="_blank"><img src="http://www.positronicdreams.com/gdnet/Prozak.gif" alt="Salsa cooked it, your eyes eat it!" border="0" align="left"></a><hr size="1"><font size="1">[<a href="mailto:lotsjunk@hotmail.com">Hugo Ferreira</a>][<a href="http://www.PositronicDreams.Com/" target="_blank">Positronic Dreams</a>][<a href="http://www.positronicdreams.com/index.php?Sec_ID=42" target="_blank">Colibri 3D Engine</a>][<a href="http://www.entropymod.com" target="_blank">Entropy HL2 MOD</a>][<a href="http://www.positronicdreams.com/phpBB2/viewtopic.php?t=52" target="_blank">My DevDiary</a>]<br>[<a href="http://www.gamedev.net/profile/profile.asp?id=27068" target="_blank">Yann L.</a>][<a href="http://www.gamedev.net/reference/programming/features/enginuity1/" target="_blank">Enginuity</a>] [<a href="http://www.penny-arcade.com/view.php3" target="_blank">Penny Arcade</a>] [<a href="http://msdn.microsoft.com/" target="_blank">MSDN</a>][<a href="http://msdn.microsoft.com/vstudio/productinfo/roadmap.aspx" target="_blank">VS RoadMap</a>][<a href="http://esprit.campus.luth.se/%7Ehumus/" target="_blank">Humus</a>][<a href="http://symbolcraft.com/graphics/bsp/index.html" target="_blank">BSPs</a>][<a href="http://www.ultimategameprogramming.com/index2.php" target="_blank">UGP</a>][<a href="http://nehe.gamedev.net/" target="_blank">NeHe</a>]<br>"our stupidity allways comes back to bite us in the ass... in a white-shark sort of way..." - Prozak</font>
I''m sure there are light tutorials (examples) in CG SDK.
There arent any simple examples using a simple difuse light, and where there are some light calculations the scene is static (does not move, rotate, etc)
I wanted a scene where changes occurred...
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"our stupidity allways comes back to bite us in the ass... in a white-shark sort of way..." - Prozak
I wanted a scene where changes occurred...
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"our stupidity allways comes back to bite us in the ass... in a white-shark sort of way..." - Prozak
Thanks Randy187, but that example uses an old version of the Cg lib...
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"our stupidity allways comes back to bite us in the ass... in a white-shark sort of way..." - Prozak
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"our stupidity allways comes back to bite us in the ass... in a white-shark sort of way..." - Prozak
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement