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

C / C++ / MFC

 
QuestionHow to initialize property page's dialog? SOLVED Pin
Vaclav_21-Aug-13 4:15
Vaclav_21-Aug-13 4:15 
AnswerRe: How to initialize property page's dialog? Pin
Freak3022-Aug-13 3:35
Freak3022-Aug-13 3:35 
GeneralRe: How to initialize property page's dialog? Pin
Vaclav_22-Aug-13 5:26
Vaclav_22-Aug-13 5:26 
GeneralRe: How to initialize property page's dialog? Pin
Vaclav_22-Aug-13 6:52
Vaclav_22-Aug-13 6:52 
GeneralRe: How to initialize property page's dialog? Pin
Vaclav_24-Aug-13 5:08
Vaclav_24-Aug-13 5:08 
QuestionHow to make the camera rotate with the player? Pin
LittleJackFlash21-Aug-13 3:19
LittleJackFlash21-Aug-13 3:19 
AnswerRe: How to make the camera rotate with the player? Pin
pasztorpisti21-Aug-13 4:05
pasztorpisti21-Aug-13 4:05 
GeneralRe: How to make the camera rotate with the player? Pin
LittleJackFlash21-Aug-13 22:00
LittleJackFlash21-Aug-13 22:00 
Hello sorry I wasn't very clear, basically at the moment I have a camera that following the player in the 4 direction i.e moving forward, backwards and strafing right and left, I was aiming to be able to rotate the camera around the player in order to me able to see the rest of the world around him.

yet when I tried adjusting the glrotate i got the camera to kinda rotate but the longer to hold either left or right the further away from the player the camera becomes.

VB
//Bind Camera to Player
    gluLookAtf(player.position.getX() + player.xrot ,player.position.getY() + 15, player.position.getZ() + 20,
        player.position.getX() ,player.position.getY(),player.position.getZ() ,
        0.0, 1.0, 0.0);


C#
glPushMatrix();
    glRotatef(xrot, 0.0, 0.1, 0.0);
    glTranslatef(pos.getX(), pos.getY(), pos.getZ());

GeneralRe: How to make the camera rotate with the player? Pin
Jonathan Davies21-Aug-13 22:38
Jonathan Davies21-Aug-13 22:38 
GeneralRe: How to make the camera rotate with the player? Pin
LittleJackFlash21-Aug-13 23:25
LittleJackFlash21-Aug-13 23:25 
GeneralRe: How to make the camera rotate with the player? Pin
Jonathan Davies21-Aug-13 23:46
Jonathan Davies21-Aug-13 23:46 
GeneralHow to write Benford’s Law in C++ Need Help Pin
Member 1022170020-Aug-13 16:55
Member 1022170020-Aug-13 16:55 
QuestionRe: How to write Benford’s Law in C++ Need Help Pin
Richard MacCutchan20-Aug-13 20:10
mveRichard MacCutchan20-Aug-13 20:10 
GeneralRe: How to write Benford’s Law in C++ Need Help Pin
BadKarma20-Aug-13 21:30
BadKarma20-Aug-13 21:30 
SuggestionRe: How to write Benford’s Law in C++ Need Help Pin
David Crow21-Aug-13 6:26
David Crow21-Aug-13 6:26 
QuestionCTabCtrl header colour anomaly in CPaneDialog Pin
D G McKay20-Aug-13 2:07
D G McKay20-Aug-13 2:07 
AnswerRe: CTabCtrl header colour anomaly in CPaneDialog Pin
D G McKay2-Sep-13 0:14
D G McKay2-Sep-13 0:14 
QuestionWindow Position Pin
john563218-Aug-13 19:44
john563218-Aug-13 19:44 
AnswerRe: Window Position Pin
Richard MacCutchan18-Aug-13 20:56
mveRichard MacCutchan18-Aug-13 20:56 
GeneralRe: Window Position Pin
john563219-Aug-13 4:11
john563219-Aug-13 4:11 
GeneralRe: Window Position Pin
Richard MacCutchan19-Aug-13 5:06
mveRichard MacCutchan19-Aug-13 5:06 
GeneralRe: Window Position Pin
pasztorpisti19-Aug-13 6:09
pasztorpisti19-Aug-13 6:09 
GeneralRe: Window Position Pin
Richard MacCutchan19-Aug-13 20:33
mveRichard MacCutchan19-Aug-13 20:33 
GeneralRe: Window Position Pin
pasztorpisti20-Aug-13 2:03
pasztorpisti20-Aug-13 2:03 
QuestionRe: Window Position Pin
pasztorpisti18-Aug-13 23:47
pasztorpisti18-Aug-13 23:47 

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.