I googled it as you directed and I got good one but it is written in C++ and I am not familiar with C++. This is the link (www.codeproject.com/Articles/24970/XColorDialog-MFC-color-picker-control-that-disp). Can you help in converting it to VB.NET or C#? Or can you build the DLL in the same language?
I am aware of that but remember that 2 good heads are better than one. Well, you advice is very ok. You learn better when you do thing yourself but other persons' idea can pave you way. Your contributions on how to do it is also impotant.
Hi, I'm trying to render the contents of a window, with desktop composition disabled, on an off-screen buffer. I have no control over the window and the only thing I have is the window handle and the DC. I thought about allocating an off-screen DC and doing something like:
/* The window handle is stored in the
hWnd variable and the offscreen DC,
is in hDC */
PostMessage(hWnd, WM_PAINT, 0, 0);
But it doesn't seem to work. Please note that I don't want the application to render on the primary display DC. In other words I want to redirect it's graphical output, and blit the result in my window.
I'm trying to mix Device Contexts and OpenGL but not the usual way. I don't want to draw with GDI on top of an OpenGL scene. What I wanna do, is apply an HDC bitmap as a texture on an OpenGL polygon. I know that this is generally a bad idea, but if you know anything about how is that possible, you would be very helpful. I'm coding on C/C++ on Win32. A DirectX 8/9 solution would also be appreciated.
Finally found the solution myself. If anyone else is interested in that, the process is simple. You create a bitmap from the DC (there are many websites that describe this), and then you apply that BITMAP object as a texture, the way you'd apply any other bitmap texture.
Hello my name is emile my best pro lang is vb2010. I love vb and I now all the code by hart I can pro in C# just as good as vb I now that C# is the best of the 2 langs but I want to do it in vb I have made an 3d cube using directx 10 and visual stodio 2010 but can't add 2 cubes or more I need step by step help to re making the cube and adding more then one to buld a box to walk in (in to make an camera that moves like a first person game) help
If you really want help, you will reduce this to the relevant snippet of code where your problem is and then ask a clear coherent question and description of your problem. No one is going to go through this mess to try and figure out what it is that you want to do.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
In school I had not heard anything about vectors and matrices yet, so I figured the whole transformation and projection stuff out with regular trigonometry. What a triumph when I had my first tetrahedron choppily rotating on the screen
What i want to do is to make an animation of a female character that appears on SCREEN and does everything it was supposed to do during animation. The MAIN problem that i have no idea how to do this on the screen, without any borders of audio/video player. Closest EXAMPLE is VHGD aka VirtuaGirl player - girls walk on your screen without any border of the player (my version is NOT porn, it is rather gift). Animation will be done by myself, all i ask is how to make it look like a VHGD.
How can i perform this using C# or any 3rd party libraries/ect?
Hello Richard! The first thing is - thank you for the reply. I`ll look into that right now (well i`m working my 16th hour now ) If i get it right, i just need to use some sort of player to play usual AVI/H.264 file with animation... (of cource using technique you`ve provided) Another question... this animation is "Advisor" - a copy of a real user actually that performs some actions like find document, search the database, edit the tables in the database and even dancing a bit. Is there any way to manipulate the AVI file to trigger events according to gestures? For example, advisor raising it`s hand in the air and windows creates several buttons near advisor`s fingers.
You would need some sort of image recognition software or collision detection, to trigger an event when part of the body hits a certain point on the screen. Sorry, but that is well beyond my knowledge and experience level.
Thank you anyway, image recognition can be done using AForge library and neural networks... For some weird reason i`m occupied in program for image recognition (motion detection). Thanks a lot for a pointer to obvious thing!
I am here to inquire would anyone like to tell me which one software would be most remain preferable for editing the photos. Because I am hurry to use it due to the reason i am working on the project of Joomla Templates and CSS Template design.
Hi all (sorry if this is the wrong forum). In my work (I'm a financial planner) I use liquidity risk software^ (like this one) in order to evaluate different types of risks in different financial scenarios. These types of programs are genrally very useful, except that they usually spit out data in a difficult form to read. Sometimes they do display data visually, but the quality and readability of the visual aid is usually low.
I was wondering: is it possible to write some type of plugin or external software that would process this data (automatically or as close to that as possible) and present it visually in a more friendly way? I'm not a programmer myself, so I'd appreciate it if you could point me in the right direction. Would this only apply to open-source software? Does this sound plausible? possible? already outdated?
When using this code, there are some corruption in the display, surface "patches" are not rendered appropriately when displaying against "itself", for example a front facing polygon of a cone or cylinder which is displayed against a back" face of the same cone or cylinder.
To achieve real transparency at a fast rate is hard. To get exact picture , you need to sort triangles from back to front , based your camera vector. Also sometiems , if triangles overlap , you need to splitup it.
The best way to do this is by implementing BSP tree. Using that you can do both front-to back or back-to-front rendering. I would suggest you to look into that first.
In general for a scene , i do like this ( for fake transparency ) 1. Render all opaque objects 2. Sort triangles based on their material transparency. 3. Draw triangles which having lesser transparency level first followed by others.
I think this[^] has the answer you're looking for (particularly answer 4). It isn't as simple as it seems and the other solutions I've seen simply set a transparent replacement colour, which is going to result in popping pixels if any part of your rendered objects happen to contain that colour.