Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 Sep 2013
Offline Last Active Oct 09 2013 04:47 PM

Topics I've Started

Diffuse Shading not working in OpenTK

22 September 2013 - 05:46 PM

I'm new at OpenTK and am using it with VB.Net. So far everything has worked well and performance is good, except that I can't get diffuse lighting to shade my objects (crude vehicles moving on a highway). The only light source that works is ambient.  I have tried a variety of options for setting the light and materials in the Form_Load event, and the results in the attached screenshot are with the lines shown as commented out (I have tried all combinations without much difference).


Currently its a bit dark since the ambient values are turned down.


A timer drives movement of the camera and vehicles along the road.


I would also appreciate any critique of my code organization.


A screenshot and my code are attached.


Thank you!


Attached File  Highway.jpg   25.49KB   19 downloads

Attached File  VB Code for OpenTK.txt   10.7KB   123 downloads