Answer Questions
pjwhams Using DirectX in Internet Explorer IE
Does anyone have any thoughts on how to use Managed DirectX inside of Internet Explorer I tried using the object tag and got some rather expected warnings from IE's security model. This post actually lists the same thing I tried to do: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=62729&SiteID=1 What I'm looking to do is display a 3d area on a web form; something similar to what 3d Groove does ( http://www.3dgroove.com/ ), but rather then using that technology I want to leverage my DirectX skills. Any thoughts BTW, any pointers to a link on how to develop an ActiveX component for IE would also be appreciated. I'm guessing that a signed ActiveX control that access the DirectX library would be more managable in IE's sec ...Show All
simon burgess how to render text to a surface that can be mapped onto a quad in world space?
can someone give me some source code or an sample with C++ language thank you! In the SDK one sample is call Text3D One of the sample shows how to render 3D text You simply need to place this over your main people head and maybe add a rotation to it In reality those 3D text are Meshes You have a DX function to create 3D Text Meshes and then you need to use the resulting meshes like you would for any other mesh, by calling subset, defining material etc. Thank you very much! Another question: How to render text in world space just like the text above people's head in the game of world of warcraft same or there is another efficiency way thank's a lot! ...Show All
Leonid Niraev Cursor.Hide() not working?
In my C# Managed DirectX application, I'm trying to hide the cursor. I have tried Cursor.Hide() from within the form constructor, and I have tried oveeriding WndProc and trapping WM_SETCURSOR. Neither approaches seem to work. What other methods could I use The code below shows 2 methods of starting the application; both fail to hide the cursor. class World : Form { /* code */ } #if DEBUG // Run in while loop mode (better for debugging). using (world = new World()) { while (!world.Exit) { world.Action(); } } #else // Run in invalidate/paint mode (more efficient). world = new World(); world.ShowDialog(); #endif r3n, If you are inheriting your World class from System.Wi ...Show All
ramana reddy Bug in BoundingFrustum.Contains()?
If i write the following code: BoundingFrustum f = new BoundingFrustum(new Matrix(1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2)); Vector3 vector = new Vector3(1,1,1); BoundingBox box = new BoundingBox(vector, vector); ContainmenType t; t = f.Contains(vector); Console.WriteLine(t); t = f.Contains(box); Console.WriteLine(t); I'd expect both to give the same answer. Either both are contained or both are disjoint. However the Frustum contains the point but the box is disjoint. What's going on A compiler cannot silently drop code that works on 0 volume BoundingBoxes. How the hell would the compiler know if i *need* that box or not Sometimes a compiler using to be a clever beast. You can follow ...Show All
mareczek84 Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
Tanmaya Volume textures!
There is Texture3d, but the content pipeline doesn't support volume textures. That's great! Now the main thing I wanted to do with XNA can't be done because volume textures aren't supported. More and more it feels as if this product should've had one more round in a beta cycle. That or they have to get XNA 1.1 out the door soon! Wonderful API, but it needs some polish. Actually my DDS file is created by a c++ plugin I coded for 3dsmax that does some processing and then writes a dds-file. Anyways. Apparantly the following worked and should be alright since I don't target the xbox 360 (don't own one): Texture3D vol = Texture3D .FromFile( graphics.GraphicsDevice, @"data\volumetexture.dds" ); ...Show All
Learning VB Will the XNA Software Be Available On Mac's Some Time
Will the XNA Software Be Available On Mac's Some Time XNA currently supports Windows and, later this year, Xbox 360. We have no announcements regarding other platforms. (And just as a side comment...Apple would need to license DirectX from Microsoft and include it in OS X before XNA could be ported there. So I suggest you start asking Apple when they will license DirectX ) XNA Game Studio Express will only be available on Windows. aL David, What about Cider Well considering Apple finally decided Windows was the way to go, and you can now Run WinXP on a Mac, I don't see why you would not be able to run XNA dev kits on a Mac. I would no ...Show All
Alexandre Tremblay ClickOnce support?
Is it possible to create XNA apps and distribute them via ClickOnce This would be ideal for online distibution of PC games, especially small ones like hobbyist games. Click Once Support would be great! I like being able to build the stand alone MSI's. This is one reason why I would like the express plugin available for the retail versions of Visual Studio. I've not had much reason to experiment with ClickOnce yet, however I have read a few articles on it. I don't see why not. On Windows, the XNA assemblies are just that, assemblies. We're investigating ClickOnce. It would be good to get feedback from the community on how important ClickOnce is vs. other insta ...Show All
Jun_1111 Vista allows What versions of DirectX?
(split from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1221168 to make a new question) It is interesting that you say that because I am testing a VB6 app that was working fine on XP and below but now fails on Vista when it tries to create a DirectX8 object, specifically Set oDX = new DirectX8 throws Error 429, ActiveX failed to create component. Running in XP SP2 compatibility mode does not work either. I would be really grateful if anyone has any ideas on this. I also tried running the latest DX9 redistributable because I heard that was providing backward compatibility, but to no avail. Thanks. I was able to resolve it by copying DX8VB.DLL from an XP sys ...Show All
Nuno_Salvado Prebuilt Content... How?
I'm working on a standalone content processor, but I realized I had no idea how to load prebuilt XNBs into a project. I'm not talking about dynamicly loading content at runtime here. I just want to include a preprocessed XNB in the project. Try as I might, nothing I seem to do works. I tired adding an XNB to the project, telling it to take no action, just copy. I tried copying it to the content folder manually... etc, etc. How does one do this You shouldn't be adding the XNB but the file that was used to build it. What XNB are you trying to add and where did it come from I figured it out. Maybe I should read errors a little more closely. Basicly you just copy the files into your content fol ...Show All
tvenhaus Single letter prefix before a variable
I was wondering if anyone can point me towards some information on having a single letter prefix before AND after a variable name. Is that a standard practice I have come across this in a number of different programs, yet still a bit unclear why they are used. Any info would be appreciated. Some examples of what I have seen: aFireball.Value.Source mWizard = new Sprite.... rotation_angle += .03M; Yep, that's me! Glad my tutorials are helping out. I'm currently working on a collision tutorial but with the holiday craziness I wouldn't expect it to go up until after I've recovered. There aren't a lot of 2D collision tutorials out there right now. Ziggware has some up but they deal primar ...Show All
Chrismanster Broken Link in Documentation: Load Resources
The " How to: Load Resources ." link in the XNA help menu is broken. Does anyone have any instructions on how to do this This may be a missing topic that was not meant to be included in the beta, please feel free to file a bug on it through Microsoft Connect. Thanks! ...Show All
Cornel Arnet HLSL & Alpha Blending help plz!
Hey all - I'm pretty new to XNA so I need some help with my Blending and HLSL stuff... Here's the setup: I'm trying to make a 2D game where the graphics are 2D but they're textures that have been placed onto polygons. So basically I'm using the 3D part of XNA to make the 2D game (because I want to have faster speed, rotation, scaling, better manipulation of the pixel colors, etc; making it this way because I also want a deeper than 2D playfield even though I'm using 2D graphics - and its actually working out well apart from the blending problems.) and I want to know how I can get the blending mode to be 'just right'. Basically the effect I'm going for is for Polygon textures to be opaque where there is color - and transparent where there i ...Show All
Nirvana Pine Shader file loads in MDX but fails to load in XNA
The shader file I'm trying to load in is shown below. It works perfectly in MDX, however when I try to load it in XNA with the following lines: CompiledEffect compiledEffect = Effect.CompileEffectFromFile("@/../../../../test.fx", null, null, CompilerOptions.None, TargetPlatform.Windows); effect = new Effect(graphics.GraphicsDevice, compiledEffect.GetEffectCode(), CompilerOptions.None, null); I get a NullReferenceException as soon as I try to use the the effect object.... What am i doing wrong //-------------------------------------------------------------------------------------- // File: ManagedInstancing.fx // // The effect file for the ManagedInstancing sample. // // Copyright (c) Microsoft Corporation. All right ...Show All
jca_john Problem with rendering lines in DirectX 8.1
Hi, Im using Visual Basic 6 with DirectX 8.1 to develop our software. In our program the user can choose to display graphics in 3D or 2D mode. 3D Mode works great without any problems. We have around 400 custumers and of them there been about 5 bug reports about 2D Mode. The problem for those few is that, when the model is loaded in to 2D mode, some of the line is not rendered. If the user using the zoom control or pan control it might come back. This is just happening for some few of the models. Other and maybe more advanced models are loaded and rendered correct. Its very hard for me to figure out what causes this problem, especially so few have reported this bug. I have a feeling that its might be something wrong with the displ ...Show All
