# Johannes1991

Member

71

441 Neutral

• Rank
Member

• Interests
Art
Audio
Design
DevOps
Programming
QA

## Social

• Github
johannesolsoon@msn.com
• Steam
hona_j
1. ## Rotating source vector to destination vector (2D)

I am trying to rotate a vector to a goal vector. My main problem now is that I can't wrap my head on is which way to rotate the vector, so finding the "shortest" way to rotate (clockwise or counter clockwise).
2. ## Win32 input crash

Ok, thanks for the tips. But I want to make the input code separated from the callback function. And I still have no clue why it causes my program to stall from time to time.

6. ## CPU lost some pins :(

Maybe some pictures could help us determine? or it's may just me

8. ## My Server/Client lagging crazy

Solved it! I was sending to many packages! per second

10. ## Turn Object around Point

I've been trying to rotate a box around a certain point (for the purpose of angular velocity). I Know how to rotate the mesh around a point by changing the origo in mesh space, but the problem is that the i don't know how to rotate the Position variable too. Because if i change the rotation point(and the mesh origor) then the box "jumps" so the new origo in mesh space. Here's a pic for further explanation: [attachment=5856:Pic.png] The Plus is the Box Mesh Origo and the red circle is the Rotation Point. Thanx in advance
11. ## Turn Object around Point

I've been trying to rotate a box around a certain point (for the purpose of angular velocity). I Know how to rotate the mesh around a point by changing the origo in mesh space, but the problem is that the i don't know how to rotate the Position variable too. Because if i change the rotation point(and the mesh origor) then the box "jumps" so the new origo in mesh space. Here's a pic for further explanation: [attachment=5856:Pic.png] The Plus is the Box Mesh Origo and the red circle is the Rotation Point. Thanx in advance
12. ## Winsock Questions

[quote name='ApochPiQ' timestamp='1316711835' post='4864765'] WSAAsyncSelect is evil. I believe the Forum FAQ has a lot of explanations of precisely why. I think you'll have a much easier time of things if you use a different technique for handling your sockets! [/quote] haha ok I'm making a small RTS game so what type of socket would you recommend?
13. ## Winsock Questions

I'm using WSAAsyncSelect with TCP. Then thing about [color=#1C2837][size=2] FD_READ [/size][/color]is that i only get it if recv() have been called. i don't get FD_READ when I KNOW data has been sent to the server.
14. ## Winsock Questions

I've been playing around with Winsock(non blocking) and there are some things that i don't just get 1: I only get a FD_READ message when i've called the function recv() and a package arrive later. Is it suppose to be like that? for example if i call recv() 500 times and 100 packages was recieved. Will it keep checking for those 400 other package till the end of the program? 2: When i send a package that is 16 bytes and the recv() size is 256 then the reading of the package isn't always precise and vice versa. Only if the sizes are equal. So should i have a constant size for all of the packages(even if they are less)?. for example the constant size is 256 but i still send stuff that is 128 bytes, but the first bytes identifies the package so it's used correctly 3: If i should have a constant size then what is the reasonable size?
15. ## Host - Clients connection

[quote name='hplus0603' timestamp='1315858363' post='4860848'] [quote name='Johannes1991' timestamp='1315848307' post='4860760'] [code] while(NumberOfClients < MaxNetworkPlayers) { ClientSockets[NumberOfClients] = accept(Socket, (sockaddr*) &ClientAddresses[NumberOfClients], &AddressSize); if(ClientSockets[NumberOfClients] != SOCKET_ERROR) { NumberOfClients++; } }[/code] [/quote] So, nobody can send or receive any packets until the maximum number of players has joined the game? That doesn't seem right to me. [/quote] I'll thead that bad boy then! ;P