|
|
Hi,
Actually I need to control the Audio of a sound card(Decklink).Is there anyway to control the audio of the decklink card using directshow? For your information I have a sound renderer for the decklink card through which I can able to render the sound and also I had tried to use the IBaseAudio interface through which I can able to control only the system volume not the card volume. Can anyone help me to solve this?
Thanks in advance,
With regards
Raja Bose
Raja Bose
|
|
|
|
|
I found a way to write my game in c#, but it using 3d graphics. XP and voodoo3 don't agree with each other. So i need to know how to change this so i can use software or change it to full screen when it opens:
namespace WindowsGame1
{
class Engine : Microsoft.Xna.Framework.Game
{
Microsoft.Xna.Framework.GraphicsDeviceManager Graphics;
Microsoft.Xna.Framework.Content.ContentManager Content;
Microsoft.Xna.Framework.Graphics.Texture2D mytext;
Microsoft.Xna.Framework.Graphics.SpriteBatch SpriteBatch;
Microsoft.Xna.Framework.Vector2 Spritepos;
public Engine()
{
this.Graphics = new Microsoft.Xna.Framework.GraphicsDeviceManager(this);
this.Content = new Microsoft.Xna.Framework.Content.ContentManager(this.Services);
}
protected override void Initialize()
{
this.Spritepos = new Microsoft.Xna.Framework.Vector2(100f, 50f);
base.Initialize();
}
protected override void LoadGraphicsContent(bool loadAllContent)
{
if (loadAllContent)
{
this.mytext = this.Content.Load<microsoft.xna.framework.graphics.texture2d>(@"new\text\Mike1");
this.SpriteBatch = new Microsoft.Xna.Framework.Graphics.SpriteBatch(this.Graphics.GraphicsDevice);
}
}
protected override void UnloadGraphicsContent(bool unloadAllContent)
{
if (unloadAllContent)
{
this.Content.Unload();
}
}
protected override void Update(Microsoft.Xna.Framework.GameTime gameTime)
{
base.Update(gameTime);
}
protected override void Draw(Microsoft.Xna.Framework.GameTime gameTime)
{
this.Graphics.GraphicsDevice.Clear(Microsoft.Xna.Framework.Graphics.Color.Black);
this.SpriteBatch.Begin(Microsoft.Xna.Framework.Graphics.SpriteBlendMode.AlphaBlend);
this.SpriteBatch.Draw(this.mytext, this.Spritepos, Microsoft.Xna.Framework.Graphics.Color.White);
this.SpriteBatch.End();
base.Draw(gameTime);
}
}
}
Michael
(Up and coming Game programmer)
EST
|
|
|
|
|
Since I am unfamiliar with the Voodoo3, I googled it and came up with this:
Wikipedia Voodoo3[^]
None of this information is presented in your inquiry. Seeing as how you are writing your game in managed DirectX, and you don't show any of the code that demonstrates how you enumerated through the supported video card attributes, I don't really have any idea what technical difficulties you face.
This from MSDN: Because some graphics cards do not support all of the features exposed through Direct3D, a mechanism is provided in Direct3D to probe the graphics hardware. If a particular graphics capability is not supported by the hardware, the check will fail, allowing the programmer to look for a different hardware-accelerated algorithm.
There is a utility that comes with the DirectX SDK (Get Device Capabilities) that iterates through all the video attributes and displays the results graphically, as to whether your card supports standard DirectX operations.
-- modified at 15:59 Saturday 20th October, 2007
|
|
|
|
|
Hi all, I was trying to make a translucent layered window and animate it, but I cannot change bitmap, it loads once and stays as is. There was an article about it but "word-to-word" translation from C# didn't work, can anyone give me an example how to do this? (Delphi or C++)
|
|
|
|
|
Have you read this article?
Layered Windows[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
yes, but this wasn't enough, I need to render a bitmap and draw to my layered window. After I posted that I worked a little and could animate it but another problem appeared, image blends incorrectly, alpha value depends not only on my bitmap's alpha channel but also on intensity of background. I just don't know what to do, as I see parameters are correct but result is steel bad.
|
|
|
|
|
Delfistyaosani wrote: image blends incorrectly, alpha value depends not only on my bitmap's alpha channel but also on intensity of background.
Huh?
Which method are you using: UpdateLayeredWindow() or SetLayeredWindowAttributes()?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
UpdateLayeredWindow(), because I want Per-Pixel alpha blending and need to change bitmap and alpha mask every frame with about 10 to 60 FPS, depending on animation.
I thought, cannot I capture the background, render on it and draw an opaque window between frames? (image jumps on my form while dragging)v
|
|
|
|
|
Hi
I think U have to switch to Photoshop :
In Photoshop there are many properties for layered Layouts.
By Keeping On layer hidden u can work on another layer,
and they provides Better Quality without Rendering the Image Resolution.
Just try it is as easy as u have Experience.
Believe Yourself :->
|
|
|
|
|
OK - so tell me. Does this have anything to do with the OP wanting to draw an animated layered image other than having the word layer in the title.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
Hmmm.. If you're using 32-bit DIBsection(s) for your bitmap(s), you shouldn't have
to worry about the background at all.
If you use a BLENDFUNCTION like
BLENDFUNCTION bf;
bf.BlendOp = AC_SRC_OVER;
bf.BlendFlags = 0;
bf.SourceConstantAlpha = 0xFF;
bf.AlphaFormat = AC_SRC_ALPHA;
and specify the ULW_ALPHA flag when calling UpdateLayeredWindow()
then the per-pixel alpha values in the DIBSection will control all the blending.
Is that what you're looking for or do you need to do special blending with the
background?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi, I use BLENDFUNCTION as you described however smth. stange happens with alpha values. a day ago I found an alternate method but sometimes background jumps while dragging window but blending and Aero effect is perfect. I think this topic can be closed....
|
|
|
|
|
Hi dear
I want to ask you if you know where the first address for image data in monochrome bitmap is. I know the header allocate 54 bytes but I am not sure about this in Monochrome images.
Please if you can tell me where is the location of the first data, I will be so thankful.
Note: the intented image is Monochrome (one bit per pixel)
Thanks
|
|
|
|
|
This is a really vague question.
I have no idea what type of bitmap you're referring to.
Even if I assume it's a Window DIB I couldn't tell you, since the location can
vary if the "bitmap" is/isn't in packed form.
Info like format, source (file/resource) etc. would help.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'm trying to write a program with c#. (a game to be exactly) But it wants to us e a 3d card to write it. how would i write one that you can use software graphics??? can anyone help me?
Michael
(Up and coming Game programmer)
EST
|
|
|
|
|
For anyone doing 3D graphics work in C++, it's worth taking a look.
http://www.openscenegraph.org/projects/osg[^]
OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Hi my friends,
I would try to create a 4-bit bitmap for my researches but I can't.
Please tell me how to create a 4-bit bitmap in "photoshop", "mspaint" or else where you know.
thanks for your help.
|
|
|
|
|
in paint. File - Save as. Save as type: 16 color bitmap. (4bit = 16 colors)
--
If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.
|
|
|
|
|
Mohammad Khodaea wrote: I would try to create a 4-bit bitmap for my researches but I can't.
Depends on your definition of 4 bit. Do you mean 4bit per color? You can do this simply by halving the bits. If you have 8bit color 8bit R, G, and B (8+8+8 is 24bit color, 8bit component) and the distribution is fairly wide in each color, you can simply shift the bits down with a program and you have 4 bit values. I am not sure of any filters for photoshop, but a program can do this quite easily.
4 bit component color is not the same as 16 color format as mentioned above (which is true 4 bit total color, not by component). 4 bit component data is 16 shades of each color R, G and B, so 16*16*16 or 4096 color. 4bit color is often used in OpenGL where 8bit images are truncated automatically on texturing with the option of RGB4 OpenGL Internal Formats[^]
So if you mean 4 bits overall, go with the above. If you mean 4 bit per component, shift and you shall receive.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Dear All,
I need to develop a Image Processing Application which can do OCR- recognition of typewritten text and ICR – recognition of handwritten text. It has to be done using C# in Visual studio 2005 environment. Although I am into .Net for sometime I am a newbie as far as Image Processing is concerned.
Specifically I require help in the following areas:
1. Pre Processing of Images in order to improve Recognition accuracy. There are many processes like deskew, despeckle ,flipping etc. But which are the processes that need to be applied. Does it depend on the quality of the image. Is it required to apply graphics Filters, if so which are those.
2. Dividing the Image into Zones i.e OCR and ICR.
3. Retrieving the pixels from each element and feeding it into a neural network Library for accurate Recognition.
4. Displaying the Recognised text in another Window for Spell checking and correction.
There are a lot of good articles in this forum but they give information in bits and pieces and it is very difficult(if not impossible) to put it all together for developing this application.
Can someone give me a total picture step wise as mentioned above. If someone,who has developed a similar Application and who has a good knowledge of C# comes forward to help me in developing this Application I shall be ever grateful to the person. In addition I am willing to pay Consultation charges.You may refer me some good books which covers this subject in detail and which provides code.
Sunny74.
|
|
|
|
|
Hi coders!
I would like you to give me some insight. I have almost NO experience with graphics programming (speaking of DirectX and OpenGL) and would like to implement something like a biiiig bulletin board which should only be a big scrollable/zoomable image.
How/where should I start with this?
I'd like to use C#/VB.NET for the task.
Best regards,
Stevie
|
|
|
|
|
Stevie wrote: I'd like to use C#/VB.NET for the task.
well, I can't help you with that side of it, though you could easily integrate this as an off screen render using render to texture methods and then scale the viewer to look at the texture subportions with pan&scan or scaling.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
I'm writing a game using C++/CLI (.NET 2.0), taking full advantage of .NET framework for the ease of writing dialog boxes, menus, etc, but keeping my core logic and OpenGL code in "native" C++. Since my main window is a .NET window, I am using a Timer control to trigger the rendering cycle. Since I want to draw as fast as possible, the timer interval is set to 1 ms.
The test scene I'm rendering contains a measely 10,000 triangles. My framerate is a poor 64fps -- running the executable directly (running in the IDE drops my frames to 5fps). I don't know a lot about graphics cards, but I do know their performance is sometimes measured in millions of triangle per sec. If you do the math, 10k triangles * 64fps = 640,000 triangles per second. NOT GOOD.
I do most of my development on a notebook that has a screen refresh rate of 60Hz. I thought that might be the problem, so I switched over to my tower, which is running an Nvidia GeForce 5900XT and a refresh rate of 75Hz. Guess what? I still get the 64fps rendering rate.
Is this the best I can expect from a .NET-encompassed application? Would switching back to an older technology like MFC or even plain old Win32 programming increase my framerate? I do have a good C++ background with pointers and all that stuff, so I'm not afraid to roll up my sleeves if that's what it takes.
Thanks in advance for your help.
|
|
|
|