|
Any one who knows about BBM format and its specifications, or how to convert any image to BBM format using C#, please help me.
Searched in all blogs, no clue about BBM format.
Thanks in advance.
|
|
|
|
|
I couldn't find much about it. It appears to be an image format used for animation. You might want to check out LBM (which is essentially IFF) first as I bet BBM is very closely related.
Cheers,
Drew.
|
|
|
|
|
Please give me the details of the LBM or IFF, like conversion of BMP to LBM or IFF formats.
Thanks in advance
|
|
|
|
|
You can get started here[^].
Cheers,
Drew.
|
|
|
|
|
Thank you.
But i need one more help.
I got few details about the BBM. But the problem is, before converting to BBM i have to convert it to DIB format.
Is there any DLL which can be used to convert any format to DIB format.
Thanks in Advance
|
|
|
|
|
gtag wrote: Is there any DLL which can be used to convert any format to DIB format.
Not that I know of. That's the part you'll have to write - reading a BBM file into a DIB.
Cheers,
Drew.
|
|
|
|
|
sorry for not giving correct info.
I want to write BMP into DIB format. Later on after conversion to DIB.
I got one DDL called IMGCTL.dll but while refering one function called PixelDIB , getting error:
A call to PInvoke function 'Test!IMGCTL.Class1::PixelDIB' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
This is the link from where i downloaded dll:
http://www.ruche-home.net
|
|
|
|
|
Hi,
I was wondering if anybody had any good links, books or papers that they can recommend on rendering fire in real time. I am totally new at this sort of thing and so I'm looking everywhere for anything useful on the topic. Even the different approaches to take. I was thinking using billboards, but the illusion would be ruined in a 3D environment. Then of course there is the option of a particle system, however im worried by the performance of (plus I have never written a particle system before, although im willing to learn).
Again, any information is helpful and much appreciated.
Thanks.
|
|
|
|
|
A great start is here (nVidia Developer Zone)[^]. There are a tonne of resources that will give you lots of great ideas. For fire and particle systems, check of their FX Composer[^]
Ultimately, many, many cool effects can be done with pixel and fragment shaders.
Hope that helps get you started.
Cheers,
Drew.
|
|
|
|
|
Thanks for the link
|
|
|
|
|
|
Has anyone have any resources (articles, algorithms, code etc) about how to flatten a hand-drawn line. I'll really appreciate it.
|
|
|
|
|
The Hough Transform is good for that. It can identify the position and slope of a line, even with errors in the data.
It considers each dark pixel as evidence the line passes through that point. As it process each dark pixel in the hand-drawn line, it accumulates evidence for all possible lines. The line with the most evidence is selected as the result.
(The Hough Transform can also recognize a lot more than just lines.)
A different (and simpler) approach is to use linear regression to get an equation of the line that best fits the points.
|
|
|
|
|
Another quick-n-dirty approach: Take the first and last point of the hand-drawn line, and find the equation of the line connecting them. Probably the simplest approach, which may be good enough for your purposes.
|
|
|
|
|
Thanks for the answer, I heard about the hough transform but never thought it could be the solution. Btw do you know any sample applications (or articles etc) that uses the hough transfrom for similar purposes, so I can examine it...
|
|
|
|
|
|
Hello gurus
trying to work on a bitmap I trapped into possible GDI+ limitations. In the help I find only a few formats that GDI+ supports (standards like BMP, JPG etc.) but not the format I need: DPX.
Is there any way to expand the possibilities and capture a DPX bitmap? I know there are some programs that can handle the format under windows, so I can't imagine there wouldn't be an elegant way...
Thanks in advance
Michael
|
|
|
|
|
If you only need a fixed number of DPX bitmaps, you can display them in whatever DPX viewer you have, select the image (left click), press Alt-PrtScn to copy the image to the clipboard, paste the image into MS Paint, then save the image as a bitmap file.
|
|
|
|
|
Unfortunately it's more often and I'll have to make an application which collects the relevant files and repairs them automatically.
If it's really not possible in VB Express direct, I guess I'm going to call GraphicsMagick (which btw does a great job in graphics transformations with almost every imaginable format) to repair image after image. Still I'd have loved to do it directly within the app...
Thank you anyway!
|
|
|
|
|
Hi,
I'm trying to retrieve the duration of an AVI file using Microsoft.DirectX.AudioVideoPlayback.Video class. This used to work on my previous XP machine, but on my new Vista machine its throwing a DirectXException
"Error in the application";
ErrorCode: -2147467262
ErrorString: "E_NOINTERFACE"
This exception is being thrown if I call the Video.FromFile method. Please help..
Thanks in advance,
Daniel
|
|
|
|
|
Do you know which technology that class uses under the covers? If it's VFW, that's not supported on Vista. Broke a bunch of OpenCV apps, too.
If you don't have the data, you're just another a**hole with an opinion.
|
|
|
|
|
You may need to install the latest DirectX runtime[^].
I'm not sure the managed DirectX stuff comes with Vista.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Without installing anything, references to the Managed DirectX libraries are available in VS2008 on Vista. I then installed the latest DIrectX SDK, but nothing changed.
No, I dont think its underlying technology is VFW. As far as I know, that evolved into DirectShow.
Is there any other way, which as easy as using the DirectX managed libraries to get the duration of an AVI file? Any harder solutions are also welcome ...
Thanks for your replies.
Daniel
|
|
|
|
|
AFAIK, managed DirectX isn't supported anymore but it is still
included as "extras" with the redistributable end-user run time.
If you can post the code that fails (it's just one missing interface, right?)
I will test it on the latest DirectX extras on Vista.
dwg1986 wrote: I dont think its underlying technology is VFW
No, it's not. DirectShow works with WDM drivers and can work with
legacy VFW devices.
dwg1986 wrote: Is there any other way
You can always parse the AVI info yourself... AVI RIFF File Reference[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for your reply. The code fails at runtime in the underlined line of code below:
using System;
using System;
using System.Windows.Forms;
using Microsoft.DirectX;
using Microsoft.DirectX.AudioVideoPlayback;
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Test()
{
double dDuration = 0;
try
{
Video video = Video.FromFile("C:\\Test.avi");
dDuration = (video.Duration / 60);
}
catch (DirectXException dxEx)
{
MessageBox.Show(dxEx.Message);
}
}
}
The underlined line of code is where the DirectXException described in my original question is thrown.
Thanks again,
Daniel
|
|
|
|