Answer Questions
Angela Zhou Using index buffers
I want to draw cube. And I want specify only 8 vertices, and then specify their order in special array. As I know index buffers allow to do so. But I can't find example. Please, write example of using index buffers. I understand. I used 32-bit indicies (int), but my video card doesn't support them. With 16-bit indicies my program works correctly. Thanks! I wrote following program: using System; using System.Windows.Form ...Show All
gena fayez saad Texture and light problem
Hello, I have a problem with a texture and light. I want to build a terrain based on two bitmaps: 1. Ground.bmp for the texture 2. Alt.bmp for the height (black = low alt, white = high alt). If I turn off lightning, the terrain renders well : _device.RenderState.Lighting = false ; If I turn on lightning with white as ambiant color, it works well : _device.RenderState.Lighting = true ; _device.RenderState.Ambient = Color ...Show All
jo123 Anything similar to D3DXCOLOR?
D3DXCOLOR is a very handy class but I find it missing in managed DX. Yes, I used ColorValue, but I always type "*" or "+" for the operation and then have to change them to very long method calls. Why the managed DX should go without them The same operations are used more frequently in shaders. Operators can express better than a function call if properly used; that's why C# provides it. "+" is absolutely better ...Show All
ingrosso DirectMusic for Managed DirectX
Hi, I have a question. Is there any plans to implement DirectMusic for Managed DirectX If so, I would like to know when. I'm a fan of DirectMusic and interactive music is important for games. Final Fantasy VIII (from Square Soft but formly SquareEnix, however, I like calling Square Soft since I don't know about Enix that much) makes use of DirectMusic for DirectX 6.1. Grayson Peddie wrote: Hi, I have a question. Is there any ...Show All
jb_tiburon Render to a Video output #_#
I know it could be difficult, but I am requested to Render a 3D scene with alpha to a video output, that request data transfer from the RenderTarget Surface to the DirectDraw Suface with Overlay. the problem is. Direct3D Surfaces and DirectDraw Surfaces are not mixable. I know that. so I have try to lock both of the surface and do a memcpy. every one knows this is a large cost to the CPU time. so if I can direct Direct3D to render to a ...Show All
WKleinschmit Framework approach to building a C# -MDX Level Editor-type app?
Greetings! There have been a few posts/replies that touch on this subject, but I wanted to provide a thread that captured as much of this knowledge and ideas as possible. I want to build a multi-window winForms app with lots of controls (menus, treeviews, splitters, tabs, etc...) and be able to render 3D to different sections of the screen (tabbed windows, etc..). Possibly have a model viewer in one window and a scene view in a differ ...Show All
Radha Krishna Prasad How to change one class to another or how to include derived in base
Hello guys, I've been making a 3D space game in DX9 and I've run to the following problem. I have base class TELESO for every object in the space and derive needed classes from it(asteroids, ships,etc)... Well, maybe you will find this solution bad, but ...its the only thing I could do...: I want to spread chunks from object when it is destroyed. However I cannot divide object into smaller parts ingame, though I can make them in 3D prog ...Show All
lindaonlytry Script Engine: Building a syntax tree
Hi Im building a script engine and need some help for building a syntax tree to be able to convert the script (C style) into opcodes. My script is allready parsed into tokens, using identifiers, constants, operators, ... Any help on this Greetz Nightmare You might want to look at ANTLR . It's a parser generator tool that generates in C# (and Java and C). Also look at some of th ...Show All
Bill CC Starting simple, I think
I am new to DirectX but not new to programming. I am looking to create a simple app that will have a rectangle floating in the screen (Device, I think it is called) with a avi or mpeg showing on it. I want to learn how to do this and have gone all over the internet looking for tutorials that could give me a basic understanding of the DirectX engine. I have found many but none that seem to give me the understanding that I need. Please recom ...Show All
stephan mantler IDirectSoundBuffer8::Lock parameters
If you set the dwFlags parameter of the Lock method to "0", how is this different from setting it to either DSBLOCK_FROMWRITECURSOR or DSBLOCK_ENTIREBUFFER Everytime I want to write to the buffer I use the DSBLOCK_ENTIREBUFFER flag value but that didn't seem to work and someone told me to try 0 for that paramter Any thoughts I need to lock a certain amount of bytes in the buffer and then write that amount to the buffer ...Show All
Kaz33 Rendering anti-aliased smooth text
Hello, I searched for a way to render an anti-aliased smooth ( and with a ClearType) text, But I didn't find . I want also to add a shadow to the font Thanks, Mustafa ELBanna MustafaELBanna wrote: Hello, I searched for a way to render an anti-aliased smooth ( and with a ClearType) text, But I didn't find . You probably don't want to u ...Show All
blajano DirectX Vs. OpenGL
Im just getting into computer games programming and have become quite familiar with C++ in the last month. However having done some research these 2 names keep cropping up DirectX and OpenGL Can anyone tell me what these two do and which is the best to start learning. Are they both linked with C++ or have i been wasting my time learning c++. Thanks Craig I have just come across a Wrapper for OpenGL written for ...Show All
Tayo LoaderLock was Detected?
I'm alittle stumped here... I'm trying to play an MP3 file with directx in vb 2005 express, it worked fine in vs 2003, but seems to not want to work in this version of VB :/ Heres what it says... DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since do ...Show All
JayJay Suggest moving TransformCoordinate() to Matrix struct...
Matrix is too big a struture to always pass by value like Vector3 v1 = Vector3.TransformNormal(n, matrix); I think it's better to write: Vector3 v1 = matrix.TransformNormal(n); Also this is better to read: "matrix transform normal n". Just my 2 cents... ...Show All
behnam1 error explanation
can someone please explain to me what these errors mean and if you can tell me how to fix them CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409 LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt im using Visual C++ express and i have the platform SDK, and directX SDK installed. thank you They probably mean that you have a man ...Show All
