Answer Questions
DavidDante Tree shadow
Hi, I need to draw tree shadow on any object (my terrain has hilliness, and there are also other objects). My trees are made by rectangles with textures (cross-trees). I saw that the best technique is projective texture. Can somebody tell me where can I find a code sample I must say the the sample that is included with the SDK is not of much use because it runns too slowly making it dificult to study. It is me ...Show All
C#wanabe Thoughts about PC Gaming and its current problems
Hello to all, I’ve been thinking about windows game development and why with the flexibility and power that a PC offers is inferior to the consoles (sure, pc gaming is not dead, but is the business is dying when you compare it with the console business) and I came to the following problemas that affects pc gaming. 1. Performance. Let’s face it, in order to play the lastest games in a nice way (nice graphics, good f ...Show All
J.M. Dussault Using Sprite to draw 2D graphics
Hi all, I use Sprite class to draw Bitmaps on the screen. In the sprite class, I only know how to do some simple effects on the texture, such as setting the transparency. The problem is that I want those textures to be affected by Lighting. E.g. If the color in the texture is blue, the outcome result is Green. Also I want to do other effects like a spot light on the texture. I have read a book (C++) and seems that I have to use ...Show All
groot 3DS Max 8 & .X
Hi. I have downloaded newest DX SDK (December update) but the included .X Exproter plug-in is only for max 7. All models are saved in max 8 format, so i got problems opening them with max 7 ( witch has prefered .x exporter plugin ), so i'm in dead-end. What you would suggest me to do I dont want to remodel all from the begining in max 7... I have found the exporter! Here it is: http://www.andytather.co.uk/Panda/directxmax_downloads.as ...Show All
Jon Yong Format48bppRgb Textures
I am running into problem when trying to render bitmap to texture. an image edited in Adobe using RGB 8bit/channel ( Format32bppArgb ) is displayed fine, ahowing appropriate alpha transparency as well. But the one edited using RGB 16bit/channel ( Format48bppRgb ) is not displayed properly. Color information is not interpreted properly. I am using following code: System.IO.FileStream fs = new System.IO.FileStream(fileName,System.IO.FileMode ...Show All
arv MDXInfo Tutorials
Hi, I posted this same list on a couple other forums without any replies. Eventually I ended up submitting my own first example and of course it gets marked as resolved. Plegh! Like a number of other beginner's to game programming, I am having a difficult time deconstructing the Microsoft examples. They always throw in the whole kitchen sink! I would like to see some very rudimentary code samples which each do one simple thing. The Di ...Show All
J. Aldrin Pixel and vertex shaders
hi, im wanting to learn how to use common framework inorder to show off my own vertex and pixel shaders. does anyone know where there might be a tuttorial for creating an evironment using programable shaders thanks in advance Okay... well there are two approaches you could take: 1. If you know what your shaders do (and hence what sort of input/output they require) then you can try and pick an SDK example ...Show All
Rickard Magnusson HLSL, Shaders and Effects advice please...
I'm concerened that this won't get answered and I've spent a lot of time trying to figure this one out. I'm using MDX2.0 and an effect file that comes from nvidia. It is in the format *.fx and has includes and shader functions. the question: if I load as an effect then will the shader functions run I noticed in the effects I have that do work I had to manually set all the parameters that where outside of the techn ...Show All
Jason1001 How draw the line of picking?
hi: I want draw the line of picking. I can draw the line, but when move camera, the line would move too. How can do this What transformation must apply Sorry for my english. Thank at all.- the line from the mouse to the object that you have selected. I obtain a point source and the direction, all in world objects. The problem ocurrs when move the camera. ...Show All
MartinPare C# MultiMon Display problem
I have started to make a basic game engine even though I am new to C# and DX, through a simple run log in the program I see both devices are being created. On my system single device it works fine, I have to force it to create both devices, on another system it has 2 devices. The problem: Single device system I see both screens being render one after the other in window mode, 2 device system the user see's both screens turn black, text being ren ...Show All
Aaron.Hatcher Thread safety and graphics device
I am experiencing errors in the form of a locked application when I have a device (with two backbuffers) in one thread which i use for rendering while another thread attempts to lock and read the other backbuffer. I get no error. The application just freezes on the call to getBackBuffer. I attempt to lock buffer 1 while rendering into buffer 0. How is the graphics device working in relation to threads Can you work on a buffer while renderi ...Show All
BrentRogers Stencil function
I have had a hard time finding any usableinfo on the stencil functions, masks etc. Aparently it is regarded as good documentation to describe ReferenceStencil only as "Integer that specifies the stencil test value to set or retrieve" which is no help. I have a simple scene with two transformed colored quads. A red in front of, and partly covering, a yelow one. I turn off zbuffer write and color buffer write and then render the red o ...Show All
WebGoudarzi QBasic AI
This is sort of a question that a person that is new to game development would ask (as I am): I am using QuickBasic 4.5 and I need help creating artificial intelligence or robotic response for my enemies. This is a "text" based game, which, in this case, means that the walls are zeros (0), the main character is an asterisk (*), ect. I need a good artificial intelligence tutorial, prefereably one for QuickBasic 4.5. (If this post ...Show All
Jayakumar A error 1304 and error 2350
Hi durirng the install process it gives the error messages listed in the subject but i get them the following way: during the coping of the files it comies up with and "Error 1304.error writing to file microsoft.xna.ui.xnastudiopackage.dll verify you have access to that directory" it tels me to cancel or rrtry and i clikc retry as i am the computer admin and it then pops up with the "internal error 235" and i am forced to cli ...Show All
PapaLazarou Graphics card compatibility issues?
I'm using the following code to get a non-square texture from a bitmap: D3D . TextureLoader . FromStream ( graphics , loMS , bmp . Width , bmp . Height , 0 , D3D . Usage . None , D3D . Format . A8R8G8B8 , D3D . Pool . Managed , D3D . Filter . Linear , D3D . Filter . Linear , 0 ); (Where "bmp" is a Bitmap in memory, and "loMS" is a MemoryStream connected to bmp). This works fine on my PC, but if I run it on a lapto ...Show All
