|
Hi all, I have a straight forward problem for those who know anything about Direct3D and matrices. I have managed to setup the geometry pipeline and get my object (a cube) rotating around the world spaces origin (i.e. you can see it spinning around the camera view - it disappears out the left side of the screen and re-enters at the right, and keeps going). However, I would like it to spin on its own axis in front of the camera (not around the damn thing). I have setup the rotation (x,y and/or z), translation and scale matrix functions, but am unsure as to which ones I use? At the moment I am modifying the world_matrix because I want the actual object to spin and not the camera. My world matrix is the Identity matrix and in the UpdateFrame() function adds the rotationx evaluation before set the transform to that matrix and rendering it. Does this need to get set every frame update? or should I only set it once but do something else to the matrix to get it going? Urgent responses would be extremely appreciated (obviously).
Cheers all,
Alan.
"When I left you I was but the learner, now I am the master" - Darth Vader
|
|
|
|
|
Hi there,
I'm writing program which i have to transparent bitmaps on that.
The program must be work on Win2000 and Win98 Arabic version.
For trasparting bitmaps i used TransparentBlt function.
As i read in MSDN, TransparentBlt could work on Win98 and Win2000.
I tested my program on Win2000, it works fine.
But when i test my program on Win98, my program don't show transparent bitmaps !!!
What's wrong ?
Any Idea ?!
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I have never had any luck using TransparentBlt() on win98. There are a couple good methods for drawing transparent bitmaps in the Bitmap & Palette section here on The Code Project, but my favorite method is the True Mask method.
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks for your helps
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
how to work with them;rather what are all those exts,orgs...i am totally confused...havent found a (good) article about that....can u answer or please lead me to one......
ps:who said there arent women programmers...i have started out
michelle tanner
|
|
|
|
|
There is a whole chapter dedicated to "Coordinate Spaces and Transformations" from the GDI SDK documentation in MSDN.
|
|
|
|
|
how exactly to use CArchive?An example would help.
also,how to use fstream in MFC?
thanx.
|
|
|
|
|
When someone asks for a code example on the MS newsgroups, I usually point them to CodeProject. But you're already here! This website is rife with example code.
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
See my tutorials on serialization.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi,
I've just joined a project for a temporary period and they're using Developer Studio 4.2. Can anyone tell me what updates are available for this version as there seems to be a couple of bugs. For example, in the resource editor, if you try copying and pasting areas of a bitmap (for a treelist for example) between bitmap images, the pasted image is corrupted (mirrored and some other corruption).
Thanks
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
To my knowledge, MS did not issue service packs for DevStudio back then. The only updates that are available are later versions of DevStudio. IMO, VS 6.0 is the best thing they've produced yet. Unfortunately, you can't even get that from MS anymore, since they're trying to shove "dot net" down our throats.
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
I've used VC 6.0 extensively but I actually like 4.2 now I'm using it. It's very lightweight compared to 6.0, the help is much faster - just uses a primitive window to display the help and examples rather than 6.0's MSDN type interface. Builds are really quick as well!
There are some updates available for 4.2 but M$ being what they are, of the several available, one of the (apparently core) updates is unavailable from their site. I was just hoping someone might know of a bugfix for the resource editor amongst other things. Also, the updates as listed by M$ aren't exactly cleary described.
For anyone interested, the updates are here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q156934
One of the ones I think I need is MSDEV42B.EXE which isn't available unfortunately.
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
I searched Google for the exe name and found a link from a page to the microsoft ftp site. I was able to download the file, so it should work for you also:
MSDEV42B.EXE
Roger Stewart
"I Owe, I Owe, it's off to work I go..."
|
|
|
|
|
Thanks for that, I just went and got it. Wonder why all the others were working before and that one wasn't?
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
what I am basically trying to do is: when I move the mouse over my transparent dialog with
controls, the window should become opaque and when I move the mouse out of the window, the
dialog should become transparent again.
So far I have succeeded in handling only the event WM_MOUSEMOVE and I couldn't do the same
with WM_MOUSELEAVE.
I want to do somethink like the transparent window of Miranda IRC but I can't find yet any
articles about mouse movement tracking (over dialogs with controls on them).
How can I do that?
Best regards,
H.
|
|
|
|
|
|
|
Hi,
I need to double buffer a Window's window. SImply, to let any window within my process draw in a back buffer and then to swap the back buffer with the front buffer. Any hints?
|
|
|
|
|
There is an article here on CP by Keith Rule that should help
http://www.codeproject.com/gdi/flickerfree.asp
|
|
|
|
|
Hi.
I've just started to look into GDI+. Everything works fine except the infamous function GdiplusShutdown() . The linker gives this message:
TegeTest.obj : error LNK2001: unresolved external symbol _GdiplusShutdown@8
Debug/TegneTest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I known this problem has been discussed some time ago, but has anyone found a remedy lately? I'm using Windows 98 and have downloaded the full SDK.
In practice, is there a problem? It is always called at app. exit, in which case Windows cleans up everything anyway. Or...?
Regards, Haakon S.
|
|
|
|
|
You're using the wrong definition of ULONG_PTR. It should be:
typedef unsigned long ULONG_PTR;
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
On the spot, that was the fix!!
Thanks! Takk! Merci!
|
|
|
|
|
I used SystemParameterInfo(SPI_SETWHEELSCROLLINES,......) to chanage the scroll line and it works well.
But in Microsoft Word, it does not work.
Why???
Is this a limitation? Or anyone have any ideas???
|
|
|
|
|
i wrote an application which check the new file arrival in an FTP ..and i used the concept to check the Files Currently and store the Date of the rescent file.and check there is any new files in the next time..
my problem is:
CTime oTime;
GetLastWriteTime(oTime);
but the oTime.GetSecond() returns ZEROOOO always..!! what s the reason..??
ANY IDEAS????
Renjith-CPian.
|
|
|
|
|
check the GetLastWriteTime return value
MSDN:
"Nonzero if successful; 0 if unsuccessful. GetLastWriteTime returns 0 only if FindNextFile has never been called on this CFileFind object."
I'd bet you miss the FindNextFill call
|
|
|
|