Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

shaderx

@shaderx
About
Posts
16
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • float problems [modified]
    S shaderx

    was part my fault, a division by 0 that caused that , but its still wierd cose it works if i dont assing the value , but if i do , its messed up.

    C / C++ / MFC help

  • Get file size
    S shaderx

    How about:

    return file_size/1024;

    ? :D

    C / C++ / MFC ios

  • float problems [modified]
    S shaderx

    Nevermind, think i found the problem.

    modified on Sunday, May 25, 2008 4:10 AM

    C / C++ / MFC help

  • float problems [modified]
    S shaderx

    I currently ran into a problem. It goes like this: I do some math here

    __x=Cam.front.x*tmp*tan(Cam.Tx)+Cam.right.x*tmp*tan(Cam.Ty);
    __y=Cam.front.y*tmp*tan(Cam.Tx)+Cam.right.y*tmp*tan(Cam.Ty);

    all fine and well .. my 2 variables are what were supposed to be, but when i try to assign them to a structure with more floats , all floats inside ( donno if realy ALL , but looked at some) become -1.#IND000 Anyone knows what could couse this thing ( and a solution wouldnt hurt either :D) Edit: floats that gets messed up : variables used in expresion ( Cam.front , Cam.right ) and the variable I asign the __x , __y inside the structure ( was Cam.dir)

    modified on Saturday, May 24, 2008 5:00 PM

    C / C++ / MFC help

  • Class+WNDPROC
    S shaderx

    Could you be more specific because im a noob :D should i put static in front of my method declaration ? Thanks for putting up with me in advance :P

    C / C++ / MFC help

  • Class+WNDPROC
    S shaderx

    Hi i have a class that makes a custom window,and at the WNDCLASS structure at wc.lpfnWndProc=(WNDPROC)&CustomWindow::WndProc; i get the error: error C2440: 'type cast' : cannot convert from 'LRESULT (__stdcall CustomWindow::*) (HWND,UINT,WPARAM,LPARAM)' to 'WNDPROC' There is no context in which this conversion is possible worked before in non class app as wc.lpfnWndProc=WndProc; if someone could point out the problem or share a solution, it would be very apriciated.

    C / C++ / MFC help

  • dynamic linking with DirectX
    S shaderx

    i see ppl dont understand what i mean,and what i mean is: is there an easyer way to use diretx without linking at load time with it , except LoadLibray and GetCrocAddress for every proc ?

    C / C++ / MFC question graphics game-dev

  • dynamic linking with DirectX
    S shaderx

    Hi, I wanna make an app and in the about box to have a small animated 3D thingy with DirectX but dont want to static link* to d3d.lib or w/e .... except LoadLibrary and GetProcAddress for every dll and proc i need, is there another way *this is because ,if the target machine doesnt have directx ,should run but the about box should say "...no directx... bla bla" u understand what is what i want right? ;P

    C / C++ / MFC question graphics game-dev

  • hooking a function
    S shaderx

    Hi guys I want to hook the CreateFile function that programs call and record all the file names that an app opens and after call the real CreateFile pls any help here would be apreciated becose Im in the dark with hooking function othere dll's :)

    C / C++ / MFC help

  • message loop in directx
    S shaderx

    Hi, I am trying to write a fullscreen game... and I have a question about the message loop I am curently using the following form: while(msg.message!=WM_QUIT) if(PeekMessage(&msg,0,0,0,PM_REMOVE)){ TranslateMessage(&msg); DispatchMessage(&msg); } else Render(); whitch ain't so bad for the momment, but in future it's gonna have multiplayer and user input,and other stuff.I saw in Quake3's source the loop was way diffrent. And now the question: Can anyone(hwo had previously worked whit somethings like that ...hopefully)give me an ideea about how the message loop should be like. Thnaks

    C / C++ / MFC game-dev graphics question

  • overlay to DirectX
    S shaderx

    i don't think i was clear enough i whant to overlay to another apps window(that is full screen and its using directx , just like Fraps, if u know the program) or OpenGL

    C / C++ / MFC graphics game-dev help

  • overlay to DirectX
    S shaderx

    I whant to develope an aplication that overlays a bitmap with alpha to a full screen app but the thing is I don't know where to start pls help thanks ahead

    C / C++ / MFC graphics game-dev help

  • pointer question
    S shaderx

    p is used in a buffer lock in DirectX Vertexbuffer->Lock((0,sizeof(g_cubeVertices),(void**)&p,0); so its good :P

    C / C++ / MFC help question

  • pointer question
    S shaderx

    is there another way to shift it?

    C / C++ / MFC help question

  • pointer question
    S shaderx

    so i got a pointer void *p; and a structure struct d{ blah....blah.. }; d st; and i use it with memcpy(p,&st,sizeof(d)); so my trouble is: after using memcpy i need to advance the pointer with sizeof(d), so i can copy another one. tryed p+=sizeof(d) but got : error C2036: 'void *' : unknown size help pls .

    C / C++ / MFC help question

  • directx question
    S shaderx

    i am new to directx so i got some tutorials but i have a question : to rotate any geometry u have to use the matrices function defined by the dx utiliti lib. i don't what to use those utilitys, can it be done by source only ?

    C / C++ / MFC question graphics game-dev
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups