Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About WriteFileEx and WaitForSingleObjectEx Pin
Cyrus Dang13-May-05 14:04
Cyrus Dang13-May-05 14:04 
GeneralRe: About WriteFileEx and WaitForSingleObjectEx Pin
Blake Miller16-May-05 8:51
Blake Miller16-May-05 8:51 
GeneralChanging the appearance of a common control system wide Pin
Kuniva13-May-05 12:08
Kuniva13-May-05 12:08 
GeneralRe: Changing the appearance of a common control system wide Pin
alex.barylski13-May-05 17:16
alex.barylski13-May-05 17:16 
QuestionCan not run constructor WinApp Pin
ytvsoftware13-May-05 11:53
ytvsoftware13-May-05 11:53 
AnswerRe: Can not run constructor WinApp Pin
Bob Stanneveld15-May-05 3:07
Bob Stanneveld15-May-05 3:07 
GeneralDirectX9 - 3d object translating with sine wave pattern ... Pin
jc0dex13-May-05 10:40
jc0dex13-May-05 10:40 
GeneralRe: DirectX9 - 3d object translating with sine wave pattern ... Pin
Alexander M.,13-May-05 13:43
Alexander M.,13-May-05 13:43 
Move the world matrix of that object according to the sine wave.
The position of the matrix is a vector with 3 components, so create a function that returns a "sine wave" vector by giving the relative or absolute time (depends on your timing model) as function parameter and add the result vector's components to the position values of the world matrix.

How such a function should look like is quite easy.
I think you want to use the y-axis as magnitude of the wave.
So:

y = sin("angular velocity" * t);

Then you have to define a movement vector for spreading directon of the wave (let's call it v).
x = v.x * t;
z = v.z * t;

I hope that helps...
Regards,
Alex

Don't try it, just do it! Wink | ;-)
GeneralRe: DirectX9 - 3d object translating with sine wave pattern ... Pin
jc0dex13-May-05 17:23
jc0dex13-May-05 17:23 
GeneralRe: DirectX9 - 3d object translating with sine wave pattern ... Pin
jc0dex13-May-05 17:41
jc0dex13-May-05 17:41 
GeneralTranslucent Painting Issues Pin
Strath-Clyde13-May-05 10:07
Strath-Clyde13-May-05 10:07 
GeneralRe: Translucent Painting Issues Pin
Strath-Clyde13-May-05 10:14
Strath-Clyde13-May-05 10:14 
GeneralQuestion: Status bar didn't display updated message problem. Pin
Anonymous13-May-05 10:05
Anonymous13-May-05 10:05 
GeneralRe: Question: Status bar didn't display updated message problem. Pin
toxcct13-May-05 21:26
toxcct13-May-05 21:26 
GeneralCopying Hidden Window Aspect Using GDI Pin
Axonn Echysttas13-May-05 9:41
Axonn Echysttas13-May-05 9:41 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
PJ Arends13-May-05 10:14
professionalPJ Arends13-May-05 10:14 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
jc0dex13-May-05 10:47
jc0dex13-May-05 10:47 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
Axonn Echysttas13-May-05 12:05
Axonn Echysttas13-May-05 12:05 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
jc0dex13-May-05 12:20
jc0dex13-May-05 12:20 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
jc0dex13-May-05 13:01
jc0dex13-May-05 13:01 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
Axonn Echysttas13-May-05 22:39
Axonn Echysttas13-May-05 22:39 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
jc0dex14-May-05 7:42
jc0dex14-May-05 7:42 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
Axonn Echysttas14-May-05 22:13
Axonn Echysttas14-May-05 22:13 
Generalnew to visual c++ Pin
haes13-May-05 9:25
haes13-May-05 9:25 
GeneralRe: new to visual c++ Pin
ThatsAlok13-May-05 18:40
ThatsAlok13-May-05 18:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.