Author Topic: C# + OpenTK - Planning a Tutorial  (Read 2448 times)

0 Members and 1 Guest are viewing this topic.

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4117
  • Karma: 181
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
C# + OpenTK - Planning a Tutorial
« 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Hotshot

  • Pentium
  • *****
  • Posts: 1814
  • Karma: 73
    • View Profile
Re: C# + OpenTK - Planning a Tutorial
« Reply #1 on: July 02, 2012 »
Good  Step by Step Tutorials  there :)

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1057
  • Karma: 152
    • View Profile
    • Raizor's Dev Blog
Re: C# + OpenTK - Planning a Tutorial
« Reply #2 on: July 03, 2012 »
Cool idea CK. Might want to add 'Fog' to Part 5. It's quite easy can look quite nice.
raizor

Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4117
  • Karma: 181
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: C# + OpenTK - Planning a Tutorial
« Reply #3 on: July 03, 2012 »
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
You are our 9001st visitor.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17296
  • Karma: 489
  • evil/good
    • View Profile
    • My Homepage
Re: C# + OpenTK - Planning a Tutorial
« Reply #4 on: July 03, 2012 »
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+
Shockwave ^ Codigos
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4117
  • Karma: 181
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: C# + OpenTK - Planning a Tutorial
« Reply #5 on: July 03, 2012 »
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  ;)
You are our 9001st visitor.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5243
  • Karma: 393
    • View Profile
Re: C# + OpenTK - Planning a Tutorial
« Reply #6 on: July 04, 2012 »
I happen to prefer this stuff with minimal css :)  Good job.
Jim
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4117
  • Karma: 181
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: C# + OpenTK - Planning a Tutorial
« Reply #7 on: July 04, 2012 »
Thanks Jim.

Part 2 will be up tomorrow night, hopefully.
« Last Edit: July 04, 2012 by combatking0 »
You are our 9001st visitor.
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4117
  • Karma: 181
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: C# + OpenTK - Planning a Tutorial
« Reply #8 on: July 10, 2012 »
Part 2 took a little longer than I thought it would - part 3 will be up this week.
You are our 9001st visitor.
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4117
  • Karma: 181
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: C# + OpenTK - Planning a Tutorial
« Reply #9 on: July 19, 2012 »
Part 3 is coming along slowly - we'll get through it soon.
You are our 9001st visitor.
Challenge Trophies Won: