CGSG/Workshop: Unterschied zwischen den Versionen
Kyrah (Diskussion | Beiträge) K Fixed b0rken links |
Kyrah (Diskussion | Beiträge) K →Teil 2: moved code samples to Metalab SVN |
||
Zeile 38: | Zeile 38: | ||
''Beispiel-Code'' | ''Beispiel-Code'' | ||
# Beleuchtung | # Beleuchtung | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/lighting/firstlight.cpp firstlight.cpp] einfache Lichtquelle | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/lighting/materialcolour.cpp materialcolour.cpp] Materialfarben | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/lighting/components.cpp components.cpp] Materialkomponenten (ambient/diffuse/specular) | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/lighting/lightcolour.cpp lightcolour.cpp] Lichtfarben | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/lighting/movinglight.cpp movinglight.cpp] bewegte Lichtquelle | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/lighting/house.cpp house.cpp] das "Haus" vom 1. Workshop mit Beleuchtung | ||
# Needful Things | # Needful Things | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/animation/keyrepeat.cpp keyrepeat.cpp] verbesserte Tastatureingabe | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/animation/tba.cpp tba.cpp] zeitbasierte Animation | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/animation/timer.cpp timer.cpp] Animation mit Timer | ||
## | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/animation/timer-waitevent.cpp timer-waitevent.cpp] Animation mit Timer und SDL_WaitEvent() | ||
# Texturen | # Texturen | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v1/texturing1.cpp texturing1.cpp] [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v1/Image.h Image.h] [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v1/Image.cpp Image.cpp] [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v1/Makefile Makefile] [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v1/crate.tga crate.tga] komplettes Beispiel zur Texturierung | ||
## [ | ## [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v2/texturing2.cpp texturing2.cpp] [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v2/Texture.h Texture.h] [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v2/Texture.cpp Texture.cpp] [https://whatever.metalab.at/user/kyrah/opengl/workshops/ws2/textures/v2/Makefile Makefile] ditto, mit Klasse ''Texture'' | ||
<!-- coming up in the next part | <!-- coming up in the next part | ||
Zeile 62: | Zeile 62: | ||
## [http://kyrah.net/scratch/opengl/src/obj/Hyundai_Coupe.zip Hyundai_Coupe.zip] Testdaten - ausführen als ''readobj Hyundai_Coupe/Hyundai_Coupe.obj'' | ## [http://kyrah.net/scratch/opengl/src/obj/Hyundai_Coupe.zip Hyundai_Coupe.zip] Testdaten - ausführen als ''readobj Hyundai_Coupe/Hyundai_Coupe.obj'' | ||
// --> | // --> | ||
== Misc. == | == Misc. == |