Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Mr_PoP

Member Since 20 May 2011
Offline Last Active Jan 06 2015 01:53 PM

Posts I've Made

In Topic: am trying to load a model but it's not displaying

05 November 2012 - 02:40 PM

  • What does camera() do? Are you sure you are setting up ModelView and Projection matrices properly.
  • Can you check in debugger or using debug printout how many quads it adds to your list?
  • You are setting vertex coordinates twice instead of vertex+normal, but this should not be your problem.

1-
[source lang="cpp"]void camera (void) { glRotatef(xrot,1.0,0.0,0.0); //rotate our camera on teh x-axis (left and right) glRotatef(yrot,0.0,1.0,0.0); //rotate our camera on the y-axis (up and down) glTranslated(-xpos,-ypos,-zpos); //translate the screen to the position of our camera}[/source]
so I can walk through the whole scene! and yes am setting up ModelView and Projection matrices properly.

2- I can but idk how to do it Posted Image

3-fixed it

In Topic: boost asio async_read is not invoking the handler

02 June 2011 - 06:33 PM

If you run "netstat -napl -t tcp" when the server is running, does the server show up as listening?
Why are you specifying a specific IP address to the endpoint for listening? Generally, you want to listen on 0.0.0.0 which means "all interfaces."
Also, I seem to recall that your socket needs to be open()-ed before you can pass it into accept(), but I'm not 100% sure.


the client is blocking anyconnection through "127.0.0.1" or so therefor am using an IP, and i dont think there is something wrong with the socket since it's working and the Receive() method is receiving but it's not calling handl_Receive() so i can use this data got me?

In Topic: boost::asio errors

20 May 2011 - 04:16 PM

Just the calls.

Basic overview.

The rest.


thnx i appreciate it.

the calls link u send me is for UPD is it the same for the TCP?
and it's an asynchronous while i needs it asynchronous coz it's a server for a gameserver :)

In Topic: boost::asio errors

20 May 2011 - 03:57 PM

You have angered the ancient gods. The evil has been awoken...


ahahah LOL

You can't, the call is asynchronous.

The result will be received in your callback OnReceived. The len there will be how much has been read.

See the tutorial on how to pass the recv parameters properly, I think your call is missing the length parameter, it only has error.


aha I C, okey can you link me to the Tut. thnx for your answer :)

PARTNERS