-
- Creating a simple 2D surface for bitmap display and vector points lines etc... Good example to start?
by corecomputers
- 1 Replies
- Last post
by windozer_
- Hi there. I'm new to the forum but no to to forums so hopefully I know the ropes. I have been looking at converting our current GDI+ graphics window (a basic picture box with points and lines along with zoom in and out capability) to Direct X. I saw some great examples with Direct Draw but that is deprecated and one of the reasons we are moving to DirectX is to support vista since GDI+ is much slo
-
- JIT register allocation and bounds checking
by AndyL
- 14 Replies
- Last post
by AndyL
- A few questions for Shawn or one of his buddies:
1/ Does the register allocator used in the XBox JITter use all of the available scalar floating point registers If not, how many can it deal with
2/ Does the XBox VM ever skip array bounds checking, and if so under what conditions
3/ Presumably there are no bounds checks when using unsafe code and pointers
4/ Are the method inlining l
-
- Dynamically casting an object of unknown type
by azound
- 13 Replies
- Last post
by azound
- Hello everyone! I think I've got a tough problem for you. I've got a List<object> full of various types of objects, and I want to grab an element from the list and cast it back as the type of object it actually is. Ideally, what I would do is something along the lines of: List<object> objects = new List<object>(); MyClass instance = new MyClass(); objects.add(instance); object so
-
- Future of DirectX
by Esenthel
- 10 Replies
- Last post
by Jim Perry
- I'm starting to get worried about DirectX, because mostly it becomes deprecated, first there was DirectPlay, and now it is the same thing for DirectInput and DirectSound, I've recently read that they are becoming deprecated in favor of XACT and XInput. Could you tell me why is this happening What will become of DirectX in the future Will be there only Direct3D, or will it disappear either
I'd l
-
- 2 ContentTypeReaders with the same return type.
by malignate88
- 2 Replies
- Last post
by CodePfo
- I implemented a scenegraph and have several ContentProcessors, ContentReadersWriters and ContentTypeReaders. Because all the objects have the same base class, i want to have all ContentTypeReaders to use the same type, but i get an error. Is this not possible
-
- Udder Assault XNA Warmup Submission
by Bill Reiss
- 14 Replies
- Last post
by Handkor
- When you get done with you game and sumbit it, crow about it here.
A little over 24 hours left until the deadline and I'm so amazed I'm done, so much better than college
Thanks to ZMan for his help, good luck all. I'll post the source code for my submission once the deadline hits.
Bill
-
- Question Regarding DirectX 10
by thewhigparty
- 4 Replies
- Last post
by Commandoclone87
- (Just for the record, I tried to look around a bit for an answer to my question, and I am very sorry if it has been answered before.) I have just bought a new computer with Windows Vista Home Premium, and I have noticed the lack of DirectX 10, which is supposed to ship with Vista (or so I'm told). Is it the fact that my video card (ATI Radeon X1300 Pro 256 MB) is not good enough to support Direct
-
- text mixed with 3d
by evilc
- 12 Replies
- Last post
by areia
- thought id ask another question while im at it. i want to display text on the hud of my 3d engine. i did some searching and came across some of the text components out there and chose the nuclex.fonts componenet (very good imo). this works fine on its own or with other 2d objects (eg. sprites) but if i render any 3d objects, all the 3d objects have z buffer issues. i noticed this problem when i fi
-
- OnStarting()
by Rednicks
- 2 Replies
- Last post
by Rednicks
- In the tutorial i am going through it says for me to use protected overide viod Onstarting() but that isnt there any more. I had a look through the forums and some one else asked the same thing and got the reply that it was changed to Initalize() i went to try this and it also isnt on the list any more. What is it now or have they got rid of it
-
- Creating objects 'by name' read from level data
by LamptonWorm
- 4 Replies
- Last post
by Shawn Hargreaves - MSFT
- Hi, Firstly sorry for the confused subject line ;) Ok, I'll try and explain - suppose I have a class called Enemy1 and a text file that lists level data and in there I have the text "Enemy1" listed also. Can I somehow create a new instance of an Enemy1 object by only knowing 'Enemy1' as the string that I have read from the level text file This would mean I would avoid alot of code such as 'if bla
-
- My sprite is being re-sized
by Whiplash8
- 3 Replies
- Last post
by Whiplash8
- I do not know whats happening to it, but my sprites are being re-sized.
Its sizing all sprites to 32x32. Heres my code:
createSprites( "shipN" , 27, 300);
calls this:
private void createSprites( string s, int width, int height)
{
spriteTexture = TextureLoader .FromFile(device, spritePath + s + ".jpg" );
textureSize = new Rectangle (0, 0, width, height
-
- Render to Texture Inside Shader?
by GlitchEnzo
- 5 Replies
- Last post
by Shawn Hargreaves - MSFT
- I'm sorry if this is a stupid or obvious question, but I am completely new to shaders. Is it possible to render to a texture inside of a shader For example I want to render to a texture in the first pass and then use that texture in the second pass. I am currently using XNA's render to a texture successfully. However I was wondering if it was possible to implement it inside of a shader, because I
-
- DirectX or some or method?
by E-Man6
- 5 Replies
- Last post
by JDPeckham
- Hello Everyone. I am not designing a game but simply an industrial interface; however, you guys know 3d graphics probably the best so I wanted to bounce this off of you. I need to take user supplied data and display it in a 3d means. I am experienced in building the GUI, storing the data in a data array, etc. but I am at a bit of a loss when it comes to displaying it in this way. The data will be
-
- Texture2D SetData to make a circle?
by Spyrrho
- 4 Replies
- Last post
by Spyrrho
- Anyone have any ideas on how I would modify the following function to color this solid texture as a circle
public static Texture2D CreateCircle( GraphicsDevice device, int radius)
{
Texture2D texture = new Texture2D (device, ( int )radius * 2, ( int )radius * 2, 1, ResourceUsage .None, SurfaceFormat .Color);
Color [] texData = new Color [( int )radius * 2 * ( int )r
-
- Unable to share a windows game - Followed the instructions on the manual
by IamBMF
- 14 Replies
- Last post
by IamBMF
- Okay, so I finished my first game using XNA Game Studio Express, it has been only a few days since I installed it, and it has been quite easy, having experience at making games. Now, I want to show this game to my friends, so I send it to a couple of them (both of them have XNA Game Studio Express installed), and it works great.
Now I want to show it to some other friends, these who do not kno
-
- It is a basic question about Volume.
by leson
- 4 Replies
- Last post
by Brian MS
- Hi There,
I have been trying to generate 24-bit pure-tones and have to change their volume.
Before generating sounds, the source with WAVEFORMATEXTENSIBLE was prepared on the memory.
To change the volume, I make an new source to modify the amplitude.
Recently, I know the function SetVolume.
It can change the volume without any change of the amplitude of the source.
Anyone who can
-
- cannot map expression to pixel shader instruction set?
by supagu
- 2 Replies
- Last post
by Alexey Barkovoy
- im writting a shader and it comes up with the following error:
effect/simple.fx(102): error X4532: cannot map expression to pixel shader instruction set
effect/simple.fx(130): There was an error compiling expression
any ideas what this means it really doesnt like the noise function :-/ float sine_function( float Pos) { return 0 . 5 *sin(Pos* 2 * 3 . 141592653589793238 ) + 0 .5f; } f
-
- Musician: Looking for a project/s to work on.
by hoolak
- 6 Replies
- Last post
by Jim Perry
- Hello,
Wasn't sure if this forum was the correct place to post, but I thought it wouldn't hurt to try.
Anyway, I am an avid gamer who also loves to make music. I am looking to 'pimp' myself to potential XNA game projects in need of a musician.
I've had a little bit of experience:
Music for Battlefield 1942 mod - Battlegroup42 (menu and level loading music).
Music
-
- A struct / types what ever you call em in C#!
by Soapo
- 4 Replies
- Last post
by Jim Perry
- I am creating a space shooter game. So far you have a ship that moves, and a Scrolling bg. Exciting Isn¡¯t it.
I used to program in blitz basic and they had a thing called a type that could create multiple objects with multiple similar variables. Like if I were to create 20 alien ships with there own x positions and speed, witch I gave each a random value. Each LV I would add 5 more aliens to th
-
- When is LoadGraphicsContent(true) called?
by Flecko1
- 10 Replies
- Last post
by Bill Reiss
- Hi, I'm wondering if LoadGraphicsContent(true) is ever called by XNA (rather than client code) except for when the game is first started. The reason I care is that if I have to reload, for example, a Texture that a few different objects are still using, I have to make sure that they use the new Texture reference rather than their old one, which is now dead. Basically: am I guaranteed that LoadGrap
-
- Dream Build Play today?
by Dudley
- 14 Replies
- Last post
by waruwaru
- Well it's just gone 9am UK time and as it's the last day of January I assume that the Dream Build Play website will go live today
-
- Bullet Hell Tactics - Shoot'em'up game created with XNA (video and screensots)
by Kobingo
- 13 Replies
- Last post
by Gunston
- Hey!
For the last couple of months (5 to be exact) I have been working on a shoot'em'up (shmup) game with XNA and have now come to point where I can show what it will look like and how it will play.
I have screenshots and a gameplay video that can be found at http://shmup.blogspot.com . (Remember that this is work in progress, and a lot of stuff is missing). Here you can also read about
-
- Getting Change in Mouse Position
by Johnny Ashcan
- 2 Replies
- Last post
by atlStylez
- I have an
existing user input class that is based on Managed DirectX (MDX). In
that class, I have two very important methods: GetMouseDX() and
GetMouseDY(). Simply put, they just return the change in mouse position
since the last frame was rendered (in other words a return of -4 from
GetMouseDX() means the mouse moved left four units). I would
like to drop this and go with a pure XNA solutio
-
- GameComponentCollection instances
by Daniel Tang
- 2 Replies
- Last post
by Daniel Tang
- I was reading Eli's post on basic game engine structure , and he talks about declaring objects that represent different game screens. Each screen is supposed to be responsible for their own GameComponentCollection, but GameComponentCollection is a sealed class with an internal constructor. I realize that it wouldn't be terribly hard to duplicate the class (and by realize, I mean think), but I was
-
- Vertex Animation help
by cronholio
- 11 Replies
- Last post
by cronholio
- Hi,
I'd like to do some simple vertex animation on a model using a vertex shader, but I'm having an extremely difficult and frustrating time figuring this out. I've been looking at the content pipeline documentation, I've found the tutorial about the BBox processor and done that a couple times, I've written a C# converter for a custom mesh format I have to X and still I can't work out how to ac