Jump to content

  • Log In with Google      Sign In   
  • Create Account

Quick question on effects


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
1 reply to this topic

#1   GDNet+   

6813
Like
0Likes
Like

Posted 02 February 2011 - 01:26 PM

On page 62, this line: "effect.EnableDefaultLighting();" is this considered a "Technique" in XNA?
External Articulation of Concepts Materializes Innate Knowledge of One's Craft and Science
 
Beginner in Game Development? Read here. And read here.
 
Super Mario Bros clone tutorial written in XNA 4.0 [MonoGame, ANX, and MonoXNA] by Scott Haley
 
If you have found any of the posts helpful, please show your appreciation by clicking the up arrow on those posts Posted Image
 
Spoiler

#2   Members   

100
Like
0Likes
Like

Posted 03 February 2011 - 11:33 PM

I don't think it is a technique, in the sense that we have to loop through the basic effect techniques and apply each one.

According to this link Standard Lighting Rig

When calling effect.EnableDefaultLighting(); a number of default positioned lights are added to the effect so that the model it is applied to gets lit in a nice way, with a back light, fill light, and a key light.

I came across this link BasicEffect Lighting also which shows how you can play around with the values of the default lights in the BasicEffect and change positions and colors etc.




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.