Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Diffuse Shading not working in OpenTK

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 Hakai1943   Members   

105
Like
0Likes
Like

Posted 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!

 

Highway.jpg

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

 

 






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.