Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently reading a book named "3D Graphics with XNA Game Studio 4.0" by Sean James and have some questions to ask :

If i create a effect parameter named lets say SpecularPower and have in my effect a variable named SpecularPower , if i do something like


That wil change the SpecularPower variable in my effect ?

And a second question, not regarding the book : If i have a spaceship and i've created a "boost" functionality that speeds up my spaceship, what effects should i implement to create the impresion oh high speed ? I was thinking of making everything except my spaceship blurry but i think there would be something missing . Any ideas ?

Regards, Alex Badescu

share|improve this question
Probably best to separate out your two questions into two different questions. – Andrew Russell Feb 13 '11 at 11:35
Agreed; you should ask the second question separately as it is entirely different rather than a kind of subquestion. See here:… – Josh Petrie Feb 13 '11 at 16:46
up vote 2 down vote accepted

Parameters is an EffectParameterCollection, which is indexable by string and integer. Indexing it by string returns an EffectParameter for the named parameter, which can be used to assign values to that parameter, as illustrated in the link documentation.

In short, the answer to your first question is "yes."

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.