I wonder if there is a way to develop a game in XNA and not to use pixel shader, I'm from Brazil, and many of the students does not have a good video card.
Hi,
that's true only if you live in USA or in another developed country,
in underdeveloped countries like Brazil or Colombia or really in any latinamerican country the most of the people don't have access to obtain a video card with this 'minimal requeriments' and if they can obtan it sure they don't have the money to pay it.
I'm from Colombia, i'm lucky and i have the money and the access for this kind of technologies but the most of mi friends don't have it.
I remembered my dissapointment wheh i did try to run one of my xna games in one of my friends pc's...
I believe that a big point would be that in future XNA releases the runtime and frameworks include support to low levels video card or at least support to run using Reference Rasterizer in a low profile video card.
JuanK_solocodigo wrote:
ok, but
if the card does not support pixel shader 1.1 the reference rasterizer will not run neither and i believe that this restriction is not neccesary when you run using it.
Restrict the use of the reference rasterizer if your hardware rasterizer doesn't support pixel shader 1.1... i believe that this have no sense;
i have the SDK installed in my pc in my job, the card dont have support for pixel shader 1.1 and i can¡¯t debug or run anything.
in the documentation around the web i found that before XNA beta 2 is not possible to run any program in reference rasterizer mode without have a video card that support it.
The only way that works... and not so well was ...
take a look to this link: http://www.nuclex.org/articles/using-the-reference-rasterizer-in-xna
In the final paragraph: Beta2 of the XNA framework made it rather easy to run your XNA projects on the reference rasterizer. In the final 1.0 release, XNA's GraphicsDeviceManager
will only start up when there's a shader-capable graphics card installed - even if you wish to use the reference rasterizer.
And thats true... at this time i have never been able to run any program in my office without use this hack class... and lastly i no longer use the hack because they don't work so well when you try to scale surfaces... oh and i found some little differences in the color procceses, usually when you use alpha in textures..
Laurent wrote:
You can work around this "limitation" by doing "things" such as:
public static IntPtr GetDeviceComPtr ( GraphicsDevice device )
{
// Use reflection to get the device Com Ptr from the GraphicsDevice
FieldInfo fi = device.GetType ( ).GetField ( "pComPtr" , BindingFlags.NonPublic | BindingFlags.Instance );
object value = ( fi.GetValue ( device ) );
return ( IntPtr ) Pointer.Unbox ( value );
}
and :
public static void OnResetDevice ( GraphicsDevice device )
{
deviceComPtr = IntPtr.Zero;
// Use reflection to get the device Com Ptr from the GraphicsDevice
deviceComPtr = GetDeviceComPtr ( device ) ;
// Get the d3d Com Ptr from the Device ( will need a release )
d3dComPtr = GetD3DComPtr ( deviceComPtr );
//
bool [ ] verifiedCanDraw ;
FieldInfo fi = device.GetType ( ).GetField ( "_verifiedCanDraw" , BindingFlags.NonPublic | BindingFlags.Instance );
verifiedCanDraw = ( bool [ ] ) ( ( fi.GetValue ( device ) ) );
for ( int i = 0 ; i < verifiedCanDraw.Length ; i++ )
{
verifiedCanDraw [ i ] = true;
}
}
Pretty ugly, I do admit...
Wow...
really ugly, i believe this code works.
I understand the solution, but let me ask you something: How did you find this
Hello Everybody,
I'm Barbarian of the West and I purchesed a game called Medieval II Total War. I inserted the game and it came up an error and saying that I need Pixel Shader 1.1. or better. Can anyone tell me about these Pixel Shader's can you download them is it a graphics card can someone please tell me what these pixel shaders are.........
Thanks Please post a comment if you anything about these pixel shaders.
BARBARIAN OF THE WEST
Please someone tell me what this pixel shader 1.1 or better is Please I really want to play Medieval II Total war Please if you know anything about pixel shaders even a store you buy them from please telll me!!!!
BARBARIAN OF THE WEST
P:S DESPRETE HERE WANT TO PLAY MEDIEVAL II TOTAL WAR
You need a graphics card that supports the specified Shader Model. See these pages:
http://en.wikipedia.org/wiki/Comparison_of_ATI_Graphics_Processing_Units
http://en.wikipedia.org/wiki/Comparison_of_NVIDIA_Graphics_Processing_Units
You'll want a card that supports at least DirectX 8, but get a card that supports Shader Model 2.0 if you can.
Thanks Alot Jim,
Can you go on this website because I'm thinking of buying this Graphics Crad does it support shader model http://www.eclipsecomputers.com/product.aspx okay thanks Jim or if anoyone be kind enough to go on that website and find out if it supports Shader Model I think Thanks again Boys.
BARBARIAN OF THE WEST