|
http://developer.download.nvidia.com/SDK/9.5/Samples/samples.html[^] Look for Vertex Texture Fetch Water
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."
|
|
|
|
|
Hi,
I'm learning how Silverlight/WPFapplication/Direct3D interact between themselves...
Sorry but I haven't a lot experience about this issues, so my question is:
- IS IT POSSIBLE, WITH SILVERLIGHT, TO RENDER WPF FILES IN A DIREC3D/WIN32 APPLICATION? HOW CAN DO IT?
Thanks a lots,
bye,
Carmelo.
|
|
|
|
|
Hello
I have a user control that has an image property which holds a metafile. This metafile is drawn to screen using DrawImage().
I wish to save the current image being displayed to disk as either a jpeg or a bitmap. I have written the code below which first creates a temporary bitmap and then draw the metafile to it.
I then attempt to save this bitmap to disk. However I always get the error "A generic error occured in GDI+."
Ive searched the messageboards and google but found nothing that fixs my problem - any ideas...?
Cheers
Bitmap saveImage = new Bitmap(m_canvasWidth, m_canvasHeight);
Graphics g = Graphics.FromImage(saveImage);
g.DrawImage(this.zoomAndScrollPictureBox.Image, new Point(0,0));
g.Dispose();
try
{
saveImage.Save(savePath,System.Drawing.Imaging.ImageFormat.Bmp);
}
catch (Exception saveEx)
{
MessageBox.Show(saveEx.Message);
}
|
|
|
|
|
OK, I've worked out what I had forgot to do. Prior to the code snippet shown I had used a saveFileDialog to select the file to save to. To test the file was not null I used a stream and the dialogs openfile method.
All good so far, however I never closed the stream (bad in itself) and so I was in affect trying to save to a file that was in use. Closing the stream solves the problem.
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
if ((saveStream = saveFileDialog1.OpenFile()) != null)
{
saveStream.Close();
savePath = saveFileDialog1.FileName;
}
}
saveFileDialog1.Dispose();
|
|
|
|
|
I'm working on an artificial intelligence program of my own and I am planning to use OpenCV to capture the input data from digital cameras/webcams. I want to use 2 of them and have them in a stable mount that will keep there relative orientation the same so I can obtain 3d information. My question is does anybody know of such a camera that I can buy (preferably one that doesn't cost a mint)? Also is there anything in OpenCv that will allow simple audio capture like OpenCv does video capture?
thanks,
Mike
|
|
|
|
|
I have a friend who's using two of these Logitech[^] cameras on his robot. He has stereo image capture working with OpenCV running on a Beagle Board[^] under Linux. They're not the cheapest webcam but a lot cheaper than trying to buy a commercial stereo camera rig.
OpenCV has no audio capability but it certainly doesn't preclude using other audio capture libraries.
You didn't mention what OS you'll be using. The OpenCV frame caputure routines in the HighGUI library have some problems on Vista but are fine under XP. The simple streaming cam routines based on DirectShow work on Vista, however. I'm investigating a fix I found and am looking into other capture routines.
Your silly assed, irrelevant opinion has been duly noted. Now take it elsewhere!
|
|
|
|
|
Thank you for your help.
Tim Craig wrote: I have a friend who's using two of these Logitech[^] cameras on his robot. He has stereo image capture working with OpenCV running on a Beagle Board[^] under Linux. They're not the cheapest webcam but a lot cheaper than trying to buy a commercial stereo camera rig.
I was thinking of doing the same thing but I couldn't find any webcams with bolts or holes on them that would allow me to securely mount it to a piece of wood or metal or something. How did your friend secure the camera to the robot so the cameras don't shake or move (I see it has a flap on it that could possibly be used but that flap is on a swivel it looks like)?
You're right most of the ready made things are really expensive but I guess I should also mention I found this thing http://www.slipperybrick.com/2008/10/minoru-robot-webcam-for-3d-video-chat/[^] after posting the previous message but it won't be released for another month it looks like and all the info on it is pretty vague.
Tim Craig wrote: You didn't mention what OS you'll be using. The OpenCV frame caputure routines in the HighGUI library have some problems on Vista but are fine under XP. The simple streaming cam routines based on DirectShow work on Vista, however. I'm investigating a fix I found and am looking into other capture routines.
Fortunately I'm using XP.
Thanks again for your help,
Mike
|
|
|
|
|
True to the Maker Faire motto (if you can't open it, you don't own it), he took the circuit boards out of the cameras and mounted them directly to a piece of plastic. I think he screwed them using existing mounting holes in the board but maybe he had to drill some. Here's a picture of his robot.[^] Sorry, I don't have a closer view handy at the moment. The cameras are the horizontal black rectangle at the top. One of the things he likes about the Logitech cams is that there's a lot of technical data available and they have power focus.
I'm working on a motorized camera platform for some of my experiments. I was thinking of just mounting the camera to a bracket with a dab of hot melt glue. Fairly secure but fairly easily removed.
Minoru looks intersting if the cameras are decent and you have a standard interface to them.
Your silly assed, irrelevant opinion has been duly noted. Now take it elsewhere!
|
|
|
|
|
I saw Nathan at the IEEE-RAS meeting tonight and he confirmed he used existing holes in the circuit boards to mount them to a machined piece of plastic using #0 screws.
Your silly assed, irrelevant opinion has been duly noted. Now take it elsewhere!
|
|
|
|
|
Thank you again. You and your friend have been a big help. I'll probably use the same or a similar method myself as soon as I get the other stuff done. I've got my feature detection algoritm working perfectly and I think I'm close to solving the edge detection problem I just have to work out a few bugs and then it will be on to trying to construct a 3d sceen.
ps That's a cool club you got there.
Thanks,
Mike
|
|
|
|
|
MikeMarq wrote: ps That's a cool club you got there.
Yes, it is. I've been going for two years now. There's a quite diverse crowd and some of them are very active in robots and even a couple who manage to make a living at it. One of the members is a 17 year old kid who currently has an internship at Willow Garage.[^]
BTW, you do know about the OpenCV group on Yahoo?
Your silly assed, irrelevant opinion has been duly noted. Now take it elsewhere!
|
|
|
|
|
Tim Craig wrote: Yes, it is. I've been going for two years now. There's a quite diverse crowd and some of them are very active in robots and even a couple who manage to make a living at it. One of the members is a 17 year old kid who currently has an internship at Willow Garage.[^]
He must be pretty smart.
Tim Craig wrote: BTW, you do know about the OpenCV group on Yahoo?
I think so. I just bought an OpenCV book a few days ago and started reading it and I recall them mentioning something about a yahoo group. I'll probably join it after I read a little more of the book.
|
|
|
|
|
I have a copy of that book coming. Last I checked, FedEx was driving it around the Midwest. Nathan found the chapter on camera calibration helpful.
Your silly assed, irrelevant opinion has been duly noted. Now take it elsewhere!
|
|
|
|
|
Hello!
As the topic says, I have another problem with my DirectShow filter...
It works fine in all players on xp and vista except WMP11 for Vista (under XP works)...
Have You any idea? Thanks
|
|
|
|
|
i want to create a small program for any object of "origami" using C++ and opengl....i dont have any idea...i m a learner.......can anyone send me a source code for any object of origami
|
|
|
|
|
Something wrong with the 322,000 examples a simple Google search turns up?
Your silly assed, irrelevant opinion has been duly noted. Now take it elsewhere!
|
|
|
|
|
Hours and hours of endless research on the internet finally revealed the following result:
TreeMaker 5 (source included)[^]
Just kidding, 3 seconds with Google and I found it. Maybe you should first learn, how to use Google?
|
|
|
|
|
Hi,
I've been trying to display a transparent rectangle using standard Win32/GDI coding now for at least an hour. I've searched in tons of places, but I just can't get it working. This is my current code:
RECT r = GetRect();
HBRUSH brush = CreateSolidBrush(RGB(0x00, 0xD7, 0xEC));
FillRect(hdc, &r, brush);
DeleteObject(brush);
That displays fine, but it displays a completely opaque rectangle and I'm clueless on how to go about making it transparent.
Any help is very much appreciated!
Thanks,
Martin
|
|
|
|
|
I wouldn't recommend using GDI for transparency - it wasn't designed to accommodate such features.
Instead, I'd take a look at GDI+, an extension of the GDI library and is included with versions of Windows XP upwards, but can also be distributed as an executable with your app if the target OS is lower than this. It's also a good library to familiarise yourself with for the future due to its diverse graphics manipulation functions included.
Something like this could create a semi-transparent black rectangle:
SolidBrush solidBrush(Color(150, 0, 0, 0));
graphics.FillRectangle(&solidBrush, 0, 0, 100, 50);
Take a look more at the SolidBrush() class, the FillRectangle() method.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
Thanks, I'll check it out.
|
|
|
|
|
ummm....you are explicitly creating an opaque brush and then filling
a rect with it. There's nothing transparent about any of that
If you are trying to draw a hollow rect...
HPEN pen = CreatePen(PS_SOLID, 1, RGB(0x00, 0xD7, 0xEC));
HGDIOBJ oldpen = SelectObject(hdc, pen);
HGDIOBJ oldbrush = SelectObject(hdc, GetStockObject(HOLLOW_BRUSH));
Rectangle(hdc, r.left, r.top, r.right, r.bottom);
SelectObject(hdc, oldpen);
SelectObject(hdc, oldbrush);
DeleteObject(pen);
Mark Salsbery
Microsoft MVP - Visual C++
modified on Saturday, November 1, 2008 10:12 PM
|
|
|
|
|
I've downloaded the Cimge library (for mac) but can' compile it. I've tried different versions
Compile for Linux/BSD/MacOSX, with X11 display and standard options.
Compile for Linux/BSD/MacOSX, with X11 display and debug informations.
Compile for Linux/BSD/MacOSX, with X11 display and optimizations.
Compile for Linus/BSD/MacOSX, with minimal dependancies.
Compile for Linux/BSD/MacOSX, with maximal dependancies.
but dosen't seems to work.
Can anyone help me please
Thanks a lot
|
|
|
|
|
Hi
How can i use TCL\TK for openGL?
Do anybody have any learning material?
|
|
|
|
|
anyone there who is an expert in Opencv? and Image Processing using C?
Phaniram vvs
|
|
|
|
|
I know something about OpenCV. Do you have a specific question?
[added 10/27/08]
Guess that was a rhetorical question.
Your silly assed, irrelevant opinion has been duly noted. Now take it elsewhere!
modified on Tuesday, October 28, 2008 1:33 AM
|
|
|
|