Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 31 Mar 2013
Offline Last Active Today, 05:18 PM

Topics I've Started

Chat says my IP is invalid :(

15 October 2014 - 08:02 AM



I can no longer access the chat, when I try to I get this message:

IP.Chat account number used is invalid



Just as we where talking about politics too :(



Chat gone did broke (broke)

25 September 2014 - 02:57 PM

--typo in the title, (bug)*




After I was kicked I logged back in, then I was kicked again (maybe by the server this time). After that I was unable to log back into the chat, and everyone was kicked from the chat. Now nobody can log into the chat D:


sad.pngsad.png where will I lurk without the chat :'( WHERE??

Are Agencies as Bad as People Say?

22 September 2014 - 07:46 AM



As I try to get my first job in the industry, I have to wonder, are recruitment agencies as bad as people say? I have heard many times to bi-pass recruiters and apply straight to the company. The reason for this, people tell me, is that you are much more likely to get a job that way, as the company doesn't have to pay the finding fee (or what ever they call it).


However, I have come to find that applying through an agency will result in a higher chance of getting an interview (as I have had more interviews by going through a recruitment agency rather than applying directly). This is most likely because the agency have direct contact with the company, know who to speak to and the right ways of pushing an application through.


I will say, I could probably be more aggressive when I apply to a company directly. So maybe that is why I get more interviews by going through recruiters... 



What are your views?

Alignment Improvment / features

20 September 2014 - 11:45 AM



When writing my journal I found there was no alignment for block alignment (not sure the actual term, but it makes all lines the same size, so they don't go in and out depending on what words are used in that line)


There is left alignment

centre alignment 

even right alignment


But no blocked





I also found it incredibly frustrating to centre images. When I tried to use the centre alignment for an image, it would assume the everything before that image should be centred as well. I solved it by adding 2-3 line breaks before and after the image. Just kinda annoying is all :/

Lighting and Sprites

22 July 2014 - 08:10 AM



I currently have a 2d engine, and I wanted to add lighting to it. I am not well versed in graphical programming (hence posting it in beginners). After following a few tutorials online I have managed to implement lights into my engine (kinda) that being I can draw a 2D plane (which I manually input the vertices)  with the lighting effects.





However, when ever I draw a sprite (see code below). The lighting effect is not present, it is the original image. I think, although I am unsure, this may have to do something with LPD3DXSPRITE (what I am using as the actual sprite) I suspect this does not have any vertices hence no normal that are required for the light effect to be shown. Is this correct?


If it is correct how would I go about correcting this? Would I have to create vertices for each sprite image and add a texture to it? If this is the case I would appreciate some guidance on how to do this. If it is not correct, what is my problem, I have been scratching my head for a while now :/ 



Sprite drawing:

void Graphics::drawSpriteWithOffset(const SpriteData &spriteData, 
int x, int y, COLOR_ARGB colour)


	D3DXMATRIX matrix;
	D3DXMatrixTransformation2D(&matrix, NULL, 0.0f, &scaling, &spriteCenter, (float) (spriteData.angle), &translate);


Creating the Light:

void Graphics::init_light(void)
    D3DLIGHT9 light;    // create the light struct
    D3DMATERIAL9 material;    // create the material struct

    ZeroMemory(&light, sizeof(light));    // clear out the light struct for use
    light.Type = D3DLIGHT_DIRECTIONAL;    // make the light type 'directional light'
    light.Diffuse = D3DXCOLOR(0.5f, 0.5f, 0.5f, 1.0f);    // set the light's color
    light.Direction = D3DXVECTOR3(-1.0f, 0.0f, 1.0f);

    device3d->SetLight(0, &light);    // send the light struct properties to light #0
    device3d->LightEnable(0, TRUE);    // turn on light #0

    ZeroMemory(&material, sizeof(D3DMATERIAL9));    // clear out the struct for use
    material.Diffuse = D3DXCOLOR(1.0f, 0.0f, 0.0f, 1.0f);    // set diffuse color to white
    material.Ambient = D3DXCOLOR(1.0f, 1.0f, 1.0f, 1.0f);    // set ambient color to white

    device3d->SetMaterial(&material);    // set the globably-used material to &material

Any help is appreciated, smile.png