-
- Is there any way to tell if a sampler has a texture attached in shaders?
by qrli
- 12 Replies
- Last post
by Frank_Booth
- Is there any way to tell if a sampler has a texture attached in shaders The default behavior is getting black when no texture attached but I want it to be some other color.
-
- Anyone know a good tutorial that teaches you XNA and how to make games?
by Speeding Target
- 3 Replies
- Last post
by George Clingerman
- Any good one Please, lol I really really really really really really REALLY REALLY REALLY REALLY REALLY want to learn how to make games. Thanks
-
- Refreshing the graphics
by Althake
- 14 Replies
- Last post
by Thomas Aylesworth
-
- Build for Xbox 360 and Windows in one project
by Leaf.
- 14 Replies
- Last post
by AndyL
- I have created a Visual Studio project template that can be built for either Xbox 360 or Windows, by selecting the correct platform in the VS IDE. There's nothing particularly clever about this, it just uses some of the conditional abilities of MSBuild projects to merge the properties of an Xbox 360 XNA project with a Windows XNA project. There's a slight problem though - the VS Express C# IDE has
-
- RenderTarget2D rendered with garbage all over it
by Ska Software
- 12 Replies
- Last post
by Shawn Hargreaves - MSFT
- Hi I've got a 2D project where the world is rendered to a 1024x1024 RenderTarget2D texture, then that texture is drawn to the backbuffer. It works fine on my laptop. On my desktop, however, the RenderTarget2D texture is drawn with an overlay of garbage consisting partly of a frame of a DVD I was watching on the other display. I'm clearing the RenderTarget2D texture properly, and everything is draw
-
- silly question
by sailorsurprise
- 2 Replies
- Last post
by sailorsurprise
- I just want to make I understand everything about XNA and directX
so here is my noob question.... all the numbers have f after them X=2.3f
what does the f stand for
-
- SpaceWar with a PC controller?
by redshock
- 13 Replies
- Last post
by Angelpulse
- Hello, I was experimenting the SpaceWar application, but it seems to expect a xbox360 controller instead of a broad PC controller since... well, I'm running it on a PC. Do you know anything about that I should be able to use it. I have a team that wants to use XNA for the PC platform - we could hardly care about the xbox360 at the moment. Forcing our players to have a xbox360 controller when they
-
- Generating MipMaps
by REspawn
- 2 Replies
- Last post
by REspawn
- Hi,
When I create a texture using the code below the mip maps always come out as a solid color, how can i generate proper mip maps from the texture
TextureImage = new Texture (device, ii.Width, ii.Height, 5 , Usage .None, format, Pool .Managed);
SurfaceLoader .FromSurface(TextureImage.GetSurfaceLevel(0), textureTexture.GetSurfaceLevel(0), Filter .None, 0);
TextureImage.Ge
-
- Interfaces
by XNA-Mordt
- 8 Replies
- Last post
by jpantuso
- Could anyone point me in the right direction regarding programming c# with interfaces. I've googled up the subject and whilst there are some good tutorials on how to do it, non of them really explain in simple terms why we should or shouldn't. I just can't seem to get my head around how they work properly.
-
- Second series (13 parts) of 3D XNA tutorials finished +flightsim
by riemerg
- 6 Replies
- Last post
by Lostlogic
- Hi all --
I have finished porting my second series of tutorials to XNA final code! You can find it here:
http://www.riemers.net/eng/Tutorials/XNA/Csharp/series2.php
Some of the XNA concepts covered in this second series include: textured triangles, importing a Model and using a custom effect to render it, first-person camera positioning, basic 3D position updating mechanism, basic bounding
-
- multiple DSP in XACT
by TheSonny
- 3 Replies
- Last post
by Scott Morgan
- i have problem with DSP effects in XACT: how create more DSP then one and change them in run time i have one man that plays cue inside cave, and second playing the same cue out side, first cue should use "Cave DSP", and second should be played normaly. im looking for something like EAX and sources in openal.
-
- XNA Starting
by daytonadav
- 4 Replies
- Last post
by Darkside
- Well, I got XNA yesterday and i have been trying to figure out how to use it all day. I have used the help but i am still completely lost. Can anyone help me start out
-
- Poor XNA performance or my poor code... or normal?
by Ceres629
- 14 Replies
- Last post
by soulmate75
- I've have created a simple scene that renders 8000 identical cubes. I know thats a lot of cubes, but I only get 4 FPS on a 2.0ghz dual core with a 7300 mobile graphics card at 640x480 with simply vertex shading and one directional light. This pc can run doom3 at 60FPS at that resolution and a program i wrote in MDX that draws about 1000 detailed spheres with specular lighting runs at over 100FPS H
-
- loading large image using DirectX
by epsilon_ro
- 4 Replies
- Last post
by epsilon_ro
- Hi all. First of all, I'm new to DirectX. I'm trying to load an image into a PictureBox component (C#) using DirectX. The problem is that I'm working with large pictures (for ex. 4021x3123) and can't use the Windows GDI, because the picture takes a lot of memory and it flickers when I move the scrollbars. That's why I was thinking of using DirectX. I've linked the DirectX Device with the PictureBo
-
- Short tech demo
by waruwaru
- 5 Replies
- Last post
by kcchesnut
- Here is a tech demo of something I've been working on. Demonstrating a simple Xbox 360 XNA project pulling data from an unexpected source. Hope you enjoy it.
http://waru360.codesan.com/2007/02/quick-tech-demo.html
-
- Making an entire viewport transparent
by nick5454
- 9 Replies
- Last post
by nick5454
- I have a game where your in a maze
And I want to display the map in a second viewport that display on top of the game screen.
That works fine. But, I need to make this map overlay like 35% transparent.
Does anyone know how to make an entire viewport transparent
Thanks,
Nick
-
- Material vs Shader
by Fluxtah
- 14 Replies
- Last post
by Arek Bal
- Welcome to another one of my newb questions! Can somebody explain the difference between a material and a shader
My own ideas would probably be:
- A Material defines the texture and lighting properties of a surface, and maybe even the sound properties of a surface. Visual qualities of a material can be described with shader(s) ! Anyway, if someone could give me some ideas here as
-
- Nvidia Vista Drivers
by rfairlie
- 1 Replies
- Last post
by Alexey Barkovoy
- Hello,
I'm seeing a problem with the latest NVidia drivers on Vista (version 97.46 realeased on 5th Jan 2007), and I was wondering if anyone else is experiencing similar problems. The display card is an NVidia GeForce 6800 LE, but I don't think its specific to that display card. The problem I'm seeing is that DrawIndexedPrimitive() doesn't seem to draw anything if the BaseVertexIndex argument i
-
- Game AI
by Nithin.S
- 4 Replies
- Last post
by Inaki Ayucar
- Hi,
i am currently working on a simple first person shooter game and this is the first time i am at it. I am actually working on the AI part where the enemies must find the correct player and attack, I have seen some shortest path algorithms like A* and it's variants
I want to know in which manner or format the MAP must be stored and conveyed to the CPU players so it is efficient.I want to k
-
- read pixel of speficic face of cubemap in hlsl
by Ken3000
- 1 Replies
- Last post
by BLANC Guillaume
- Hi,
I would like to use gpu to convert the cubemap pixels and need to use the cubemap faces one by one as texture to do my shader. Does anyone know if i can read pixels from specific face of cubemap in shader Since I can't change the texture head in pc to set cubemap surface as texture. and in texCube(s,uvw) the uvw is the reflective vector.
Is there easy way to do it except lock the cubemap
-
- Line Colours
by submicron
- 3 Replies
- Last post
by The ZMan
- Hi All,
In our application we would like to draw thousands of objects each consisting of two LineStrips and one LineList primitive. Each object should be drawn using one colour and so we are using PositionOnly vertices rather than PositionColored. How can we set the colour of an object without using PositionColored vertices Also what is the easiest way of drawing some objects as dashed or dotte
-
- please help
by demokill
- 3 Replies
- Last post
by Joel Martinez
- I'de put a pictuer up of the insidint but i can't. When i try to debug it will say,
"Couldn't connect (ALOT of stuff) please rebuild project, or place in the right location."
i put the right location and i started all over but it's like not working for me soneone please help me!!
-
- 2D Lines
by char1ie
- 5 Replies
- Last post
by Billr17
- I'm still a little new to this, and I was wondering if there was an easier way to draw 2D lines. I'm making a 2D shooter, and all the sample codes and tutorials I've found so far seem very complicated for just drawing a simple 2D line on the screen (for things like user-interface purposes). So the gist of it, as I understand it so far is : Create a List<Vector2> Create a VertexBuffer C
-
- [c#] Mesh.ComputeTangentFrame throws InvalidDataException
by Terek
- 5 Replies
- Last post
by Pieter Germishuys
- Hi there! the subject is my great problem... i doublechecked everything, but cant seem to find any solution... i consulted samples and tutorials, no luck. what is wrong here what am i missing the code : velements = new VertexElement[] { new VertexElement(0, 0, DeclarationType.Float3, DeclarationMethod.Default, DeclarationUsage.Position, 0), new VertexElement(0, 12, D
-
- Can't find how to launch XNA Game Framework after having installed it-please help
by Valentin574140
- 10 Replies
- Last post
by Valentin
- Hi all. I have downloaded and installed Microsoft Visual C# 2005 and Microsoft XNA Game Studio Express , as I was told on Getting Started Page Microsoft Visual C# 2005 and Microsoft XNA Game Studio Express , as I was told on Getting Started Page http://creators.xna.com/Education/GettingStarted.aspx .
Now I want to launch it but I cannot find how to launch the XNA Game Framework.