Dark Bit Factory & Gravity
PROGRAMMING => C / C++ /C# => Topic started by: combatking0 on July 02, 2012
-
I'm planning a beginners' guide to C# and OpenTK. Here's what I have planned so far:
Requirements:
Install Sharp Develop
Install OpenTK
Part 1: Basic Set-up
Create new project
Link to OpenTK dll
Link to OpenTK Control dll
Part 2: Prepare for Graphics
Add GLControl to MainForm
Check for loading
Set up viewpoint (FOV)
Part 3: First Steps
Set up timer (frame rate)
Define corners and faces
Draw to GLControl (Wireframe)
Part 4: Spin it Right Round
**Research GL rotation**
Draw to GLControl (Polygons)
Back Face Culling
Part 5: Move Towards the Light
Add keyboard controls
Add Texture Mapping
Add Light Sourcing
I'll try to put together one part each day for the next week or so.
I've been using the quaternion functions I worked on for Actionscript for rotation, but I've heard that there are native quaternion functions in OpenGL / OpenTK, so Part 4 could be delayed while I learn about them.
Any suggestions as to what to add, and I'll try to put them in.
-
Good Step by Step Tutorials there :)
-
Cool idea CK. Might want to add 'Fog' to Part 5. It's quite easy can look quite nice.
-
Good one - here's the revised schedule:
Requirements:
Install Sharp Develop
Install OpenTK
Part 1: Basic Set-up
Create new project
Link to OpenTK dll
Link to OpenTK Control dll
Part 2: Prepare for Graphics
Add GLControl to MainForm & Check for loading
Set up viewpoint (FOV)
Set up timer (frame rate)
Part 3: First Steps
Define corners and faces
Draw to GLControl (Wireframe)
**Research GL rotation**
Part 4: Spin it Right Round
Draw to GLControl (Polygons)
Back Face Culling
Add keyboard controls
Part 5: Light & Dark
Add Texture Mapping
Add Light Sourcing
Add Fog Effects
-
This is a good idea, it's nice of you to put your new-found knowledge to use in helping others.
I look forward to reading your tutorials :) K+
-
Part 1 is now up - http://barcodebattler.co.uk/tutorials/
Please let me know if I've been too informal. Sorry Pete (at work), but your smugness has made you famous ;)
-
I happen to prefer this stuff with minimal css :) Good job.
Jim
-
Thanks Jim.
Part 2 will be up tomorrow night, hopefully.
-
Part 2 took a little longer than I thought it would - part 3 will be up this week.
-
Part 3 is coming along slowly - we'll get through it soon.