|
This possibly isn't the best place for help on DirectX, www.gamedev.net [^]and www.flipcode.com[^] tend to have a larger audience of DirectX programmers who know the best answers to these types of questions.
Possibly all you need is a light source (point or spot) positioned in the correct position in your scene - it's hard to tell from your post.
If by 'pixel manipulator' you mean pixel shader I'm assuming that yes, it can be done - but it depends alot on your video card. I haven't done it myself, but I have seen some impressive results from cel-shading (essentially the opposite of what you're describing - it discards information to produce cartoonish output) but searching the nvidia or ati websites should dig up a few good resources on pixel-shading.
The other alternative is to render to texture, and then to apply some type of transformation directly to that texture. This approach works well for PC's without video cards with grunt, but beware it's resource hungry and reasonably slow.
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hello codeproject users and consultants
guys i m stucked in a great problem i can't figure out how to program the newly created and previously created views in an MDI multiple views single document project. if any of u guys can help me i need it to b done quickly cause this is a part of my final project. if u guys can give me the add of a site which cud help me or a site where there is MFC answer Book is placed for "free" cause i can't afford to pay them it will b a great help.
|
|
|
|
|
How can I add text to a CView.
Thx in advance
|
|
|
|
|
CView::OnDraw(CDC* pDC)
{
pDC->TextOut(10, 10, "Added text to a CView");
}
How do I print my voice mail?
|
|
|
|
|
class CMyClass<br />
{<br />
const CString m_sArr[4] = {"a","b","c","d"};
};
Where can I initial it?
|
|
|
|
|
Hi,
It's no possible, but you can use static members
class CMyClass
{
static CString m_sArr[4];
};
CString CMyClass::m_sArr[4] = {"a","b","c","d"};
Ivan Cachicatari
www.latindevelopers.com
|
|
|
|
|
// in .h
class CMyClass
{
static const CString m_sArr[5];
};
// in .cpp
const CString CMyClass::m_sArry[5] = {"abcd"};
|
|
|
|
|
Visual C++ 6 editor help us to complete our Code by showing some useful data in Tooltip such as "Auto Type Info" or "Code Comments".
This option by default enabled in Tools->Option->Editor->"Statement Completion Option".
Some "Code Comments" has more than one comments.
e.g: "[1 of 3] void CMyClass::_MyOverloadedFunc(...);" will displayed in Tooltip.
We can switch between them by clicking on it by mouse.
So, How can I switch between "Code Comments" by keyboard!?
|
|
|
|
|
|
Awww you rock man!
One day, real programmers will stop pushing around leetle mice!
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
Hi now a days i am developing a news ticker , just like one we could see on news channels at bottom a strip in which Text and logos scrolls from right to left.
i have succeeded in scrolling the text , but i am feeling difficulty in scrolling logos or image alongwith text.
so can anybody give some hint how to do it , or article abut such news ticker.
even i dont mind to buy some news ticker component or stuff but i am not able to find one.
Unmanaged in a .NET world
|
|
|
|
|
|
Hi,
Is there any API for getting memory usage of loaded windows kernel (.sys) driver.
I can get list of loaded drivers using EnumDeviceDrivers() API.
I am using Windows XP.
Regards,
Praks
|
|
|
|
|
HI..
Can u tell me How to get Cookies from sever, I'm sending request via Internet Explorer then it set Cookies, but when I send Request via my program then It Don't send Cookie.
Do u know How to get cookies from server using mfc or win32 api.
i hope u help me.
Thanks
---Sumit Kapoor---
|
|
|
|
|
Hello.
Can anybody give me the source of the flat button?
Only Win32Api, please.
Thanks.
|
|
|
|
|
Hello,
sorry for posting this here.
The question is:
how to replace malloc with the Lea's allocator malloc ?
http://gee.cs.oswego.edu/dl/html/malloc.html
I tried everything but it doesn't work.
I even posted this question to the author of its malloc replacement, Lea Dough.
But my question is more windows related so he cannot answer me.
At the same time I know that somebody here has been able to do it.
Here is the list of what I did and of what some related question.
But really what matter is that somebody is telling me how to do it.
I am building a program build on top of other dynamic libraries. Everything using STLport.
I created another static library, or dynamic
I made as very first line of code in the first
#if defined(USE_LEA) && defined(_WIN32)
#pragma comment(lib, "libLea.lib")
#endif
If I #include malloc.h then I have compilers problem ( probably because the library is using precompiled headers ) like:
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stdlib.h(291): error C2375: 'malloc' : redefinition; different linkage
If I do not #include malloc.h then it compiles but at the end it is not using the malloc of Lea.
I would like not to use detour.
I don't think is a good idea to replace malloc.c malloc.h in the Visual Studio .NET\Vc7\include directory
Can somebody help me ?
Thanks a lot.
Cheers,
Marcello
|
|
|
|
|
I want to draw a line on the console,and my codes as follow:
HDC hDC=GetDC(GetConsoleWindow());
if(NULL == hDC)
return ;
MoveToEx(hDC,10,10,NULL);
LineTo(hDC,200,200);
it does not work well,there is nothing on the screen,what should I do?
|
|
|
|
|
You should use special console functions (see
Platform SDK-> DLLs, Processes, and Threads-> Console Reference in MSDN). The functions like GetDC, MoveToEx, LineTo can't be applied to this situation.
|
|
|
|
|
im glad you asked this question,
here is a link to the function reference mentioned before
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/console_functions.asp
|
|
|
|
|
Hello Friends,
I am here again with another question. I want to the different users present in my system. and which Header file or class does I have to see for the system programming(any).
Bye bye
Take care,
Neelesh K J Jain.
|
|
|
|
|
MFC6 has the CHtmlView class and like most classes in MFC using visual studio you can quickly add an handler for the events fired by the IWebBrowser2 actually according to MSDN (AFAIK)
it's the WebBrowser...cuz IWebBrowser2 doesn't seem to have events
BEGIN_EVENTSINK_MAP(CHtmlView, CFormView)
ON_EVENT(CHtmlView, AFX_IDW_PANE_FIRST, 104 , OnDownloadComplete, VTS_BSTR)
END_EVENTSINK_MAP()
Then in your derived CHtmlView class you override a virtual function OnDownloadComplete and voila you now have the ability to tell when a document has been fully loaded.
How does MFC accomplish this task of event sinking, etc all with a couple of macros? I looked at the macros and I couldn't make anything of them
Basically I want to use this same technique, but on a different interface...so I can avoid all the mumbo jumbo that goes along with capturing events sent from IHTMLDocument2, etc...
Thanx in advance
Cheers
How do I print my voice mail?
|
|
|
|
|
I'm wondering why I am not able to mouse over a variable in VS.NET while in debug mode and get the value of the variable. Instead I get the variable declaration information.
Also, when I make a change in debug mode, VS.NET doesn't recompile and run the application with the new code in place. Instead I have to stop the debugger and start it over again.
Is there something in VS.NET where I set preferences to make this work or is there something I should have installed? I guess I'm just wondering what I'm missing.
Thanks!
|
|
|
|
|
Other people can answer you better than me.
But I noticed that you "get the value of the variable. Instead I get the variable declaration information.
" when the variable is nto valid at that moment, like a NULL pointer.
For the second, look for the edit and continue compiler option and look also for the conditions when this is disabled.
|
|
|
|
|
I've been on the project that using CSocket to send file from client to server. When i test the program, only part of data send through CSocket(about one third of the original data). I use CSocket as a SOCK_STREAM. Can anyone figure out the problem on my code?
thnx
phongle
|
|
|
|
|
Hi,
Why dont u try using out an acknowledgement mechanism. That is whenever the client is sending data to the server, the server should send acknowledgement for the data. In case the client does not receive the acknowledgement for a certain period of time, then the client resends the same data.
Let me know if this helps you.
Regards,
Mahadevan.
|
|
|
|