|
Hi,
I want to display a static image as the background of the OpenGL window. It should be behind any object displayed in the scene. How to achieve this? Thanks in advance.
Ben
|
|
|
|
|
One way it to put your image on a big quad as a texture and position it perpendicular to the viewpoint. Depending on how you want it to appear as the camera moves, you'll have to recalculate it's position and orientation for each move. If you search for "billboarding" and OpenGL, you should find examples although it's often used for other background items.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Hi,i wanna get a Condition force feedback ,such as Friction ,Spring etc.,but i don'tknow why i can not feel it.I set the structure DICONTION and DIEFFECT as following :
DWORD dwAxes[1] = { DIJOFS_X } ;
LONG lDirection[1] = { 1 } ;
DICONDITION diCondtion;
DIEFFECT diEffect ;
diCondtion.dwNegativeSaturation=10000;
diCondtion.dwPositiveSaturation=10000;
diCondtion.lNegativeCoefficient=-10000;
diCondtion.lPositiveCoefficient=10000;
diCondtion.lOffset=0;
diCondtion.lDeadBand=2000;
diEffect.dwSize = sizeof(DIEFFECT) ;
diEffect.dwFlags = DIEFF_CARTESIAN | DIEFF_OBJECTOFFSETS ;
diEffect.dwDuration = DI_SECONDS/10 ;
diEffect.dwSamplePeriod = 0 ;
diEffect.dwGain = DI_FFNOMINALMAX ;
diEffect.dwTriggerButton = DIEB_NOTRIGGER ;
diEffect.dwTriggerRepeatInterval = 0 ;
diEffect.cAxes = 1 ;
diEffect.rgdwAxes = dwAxes ;
diEffect.rglDirection = lDirection ;
diEffect.lpEnvelope = NULL ;
diEffect.cbTypeSpecificParams = sizeof(diCondtion) ;
diEffect.lpvTypeSpecificParams = &diCondtion ;
hr = g_lpDIDeviceJoystick->CreateEffect(GUID_Spring,&diEffect,
&g_lpdi,NULL) ;
is any wrong with what i do ? If replace DICONDITION with DICONSTANTFORCE ,DIRAMPFORCE or DIPERIODIC ,accordingly i can get Constantforce ,RampForce ,PeriodicForce.but when it comes to DICONDITION
i can not get any force. who can tell me why ? any adivice is approciated ! oh ,i almost forget one thing !the joystick i used is MicroSoft sidewinder force feedback 2.
|
|
|
|
|
I have some fisheye (360 degree view) images and want to "dewarp" them back into rectilinear projections - I was hoping that someone may have some source code to share (C# preferred). I know that there are several programs out there that can do this, but I was hoping to understand the "how" through source code.
Thanks!
|
|
|
|
|
I've seen papers on the web that explain how it's done using various "cone" shaped mirrors but I don't recall any using a fisheye lens. There may or may not have been code attached to those articles, I just don't remember but if it was, it almost certainly wouldn't be in C#. The book "Learning OpenCV" by Gary Bradski has a chapter that explains how to use OpenCV and measure the intrinsic lens parameters and "correct" images based on them. This is just a case of correcting a very "bad" lens.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
to the one who will read my request
I am a student in the third year in the university and i have to present a project about scientific calculation which mean that i have to present a graphical project about movvment of some objects which i choose ,but the proplem is i don't have any idea about opengl or directx to start with .
so i need help by suggesting a project title and if there is some ready project which i can use it to start i wil be very thankfull
and thank you again
|
|
|
|
|
People here aren't going to do your homework for you. If you have a very specific question once you get started, you may get an answer. But you have to show a bit of effort before anyone here will help you.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
any way thank you
you gived me a briliante idea
we must always learn from children
for the second time thank you
|
|
|
|
|
Apparently you and learning, never the twain shall meet.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Hi Friends,
I made a desktop and audio(mike) capture GRF in graphedit.
On some systems audio recording stops after 30 sec but video recording has no issue.
I did all things in source code(c++ application) tracked IMediaEvent, but as audio recording stopeed in between no error event is fired.
Note: problem occur only on some laptop pc till now it has not occured in any desktop PC
Laptop "qasf.dll" version is 10.0.03802
I tried with differnt versions of same dll but all in vain on the laptop.
System configuartion is below:
RAM - 1790MB
CPU - Intel(R) Core (TM)2 duo CPU 1.83Ghz(2 CPU)
GRF file is stored at below link
http://www.fileflyer.com/view/uiqJXB1[^]
Thanks,
Subhash
|
|
|
|
|
how can load and transform (with annotations or equivalent ) an tiff file and save it again (with visual basic 2005 or C#)
|
|
|
|
|
xabalb wrote: how can load and transform (with annotations or equivalent ) an tiff file and save it again (with visual basic 2005 or C#)
This question is both too vague and too broad. Please explain what you have tried and where you are having problems, and maybe someone will be able to assist you.
|
|
|
|
|
what is the latest work done in image processing feild?
|
|
|
|
|
Well, I'm not doing much with Fields at the moment, although this last weekend I photoshopped some images of my sister's garden.
Hope this helps.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I got my traffic cone tracking program to work.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Hi, does anyone know where is the direct hyperlink can I download Adobe Photoshp CS4 trail version? I try with Adobe website but the the download could not be start. I don't know why, I try to check their website resource but seem no solution. I already have my download manager (GetRight) and if someone have this software in any website please let me know. I need to download it for my study.
Thank in advance!!!
modified on Sunday, August 30, 2009 11:44 PM
|
|
|
|
|
Anyone knows if a directx window can be transparent and a click-thru ?
like this example
|
|
|
|
|
Greetings,
I'm trying to determine the best way to get a polygon from a set of points. The points are not in any particularly useful order (they are the endpoints of individual lines that fill the polygon in question). How can I easily take such a set of points and figure out the vertices of a polygon from them? The polygons may have gaps inside of them. Any ideas?
Thanks,
Will
|
|
|
|
|
so you need the hull or the convex hull of some objects? That is pretty straightforward, just google for those terms.
BTW: it is an algorithmic problem, not really a graphic one.
|
|
|
|
|
Hello all,
first of all im sorry if its the wrong place for this question.
I am trying to decaptcha the following captcha:
[IMG]http://i26.tinypic.com/wrazt.png[/IMG]
what i am trying to do is removing the letters from the rest of the image. I am using Matlab atm but will do it in C# i think. its where i stucked, since all texture on background and letters are same, i can't find a proper way of doing it.
Im looking for your suggestions, thanks in advance
ps: its not a hacking project or so, never will be used for spamming or other purposes.
|
|
|
|
|
|
Hi,
I was looking at Andrew Rissing's project AVID and was impressed. His code creates meshes from spheres and cylinders. (Ball and Stick class). I,ve done a small amount of 3d (under borland) but nothing under .net. Can anyone point me to an example of how to load a mesh from a TIN? I'm not using an *.x file. For example I would like to create a TinSurface class where I have a list of vectors (x,y,z) and a list of triangles (v1, v2, v3). Ideally I would like a drape a bitmap (green grass, brown dirt etc) but this can wait. ( I guess I could draw some funny looking trees with Andrew's classes while I'm at it !)
I'm doing volume calcs between 2 surfaces and would like to graphically show how the surfaces intersect (for cut/fill etc).
Thanks
Stuart
|
|
|
|
|
i try to create a big mesh object from vertex and index buffers but; when i use index and vertex buffer manualy like draw indexed primitive itis works good. but when lock and copy both buffers on mesh. mesh->drawsubset not work opmtimaly.
abstract points:
* i use 32 bit indices for create mesh.
* copy vertex and index buffer to locked mesh buffers.
* all codes work good.
* but that rendered plane mesh is not like a plane!!!
points :
* use FVF : NORMAL, POINT, TEX1;
* use 32 bit indices for create mesh.
* use DFMT16 for z-buffer;
* use 40401 vertices.
* use 80000 faces.
* that plane coords 201 to 201 and all normals (0,1,0)
can i told; please help;
|
|
|
|
|
Apparently, English isn't your native language. I think most everyone here will have a difficult time understanding the problems in your code. You should just post your source code, that's what we all understand. In DirectX, especially if you are new to it, errors can be subtle, and hard to spot. Based on your description, we aren't going to have a clue as to what is not working properly.
Are you using source code from a DirectX SDK sample? What version? DirectX 9? DirectX 10? Are you loading the mesh from a file, or creating it from just a list of vertices?
And, this last line,
"* that plane coords 201 to 201 and all normals (0,1,0)"
...really makes no sense at all (but, I'd guess you are having lighting problems, or you wouldn't be using the normals).
It is possible that your graphics card doesn't have the capabilities to render correctly with the Render State you have specified, but, I doubt it. It's probably just the complexity of the mesh object.
|
|
|
|
|
I got a connected line segments. These line segments are connected with a set of vertices. Now, i need to redistribute the vertices over this line in such a way that, all the vertices are equally spaced.
I mean, suppose if the user wants the vertices to be redistributed with the spacing of say 10 units.. Here i need to have new set of vertices, having distance between each pair of points(x,y) should be 10.
One way i tried this is to start with the first point of the connected lines, and read each point(x,y) along the line segment and find whether the distance of these two points is 10. If it is 10, then take the new point as your reference point and repeat the process... This method works fine. But for lines of different angles, the distance is not same.. so i dont get equally spaced points.
Is there any other way out for this..??
Thanks in advance
|
|
|
|