• Content count

  • Joined

  • Last visited

Community Reputation

126 Neutral

About spooky_paul

  • Rank
  1. [dx9] setting a shader constant?

    thanks for your reply i've initially used the table but now i've switched to IDirect3DDevice9::SetVertexShaderConstantF result = app.getDevice()->SetVertexShaderConstantF(0, &matWorldViewProj._11, 4); but now I dont get the geometry on my screen anymore. it worked with the constant table
  2. hi, how would i set a matrix that i defined in my vertex shader like: float4x4 WorldViewProj : register(c0); and it's stored in my c++ code as: D3DXMATRIXA16 matWorldViewProj; thanks
  3. Hi, I've been trying to load binary shaders compiled with fxc.exe using the ps_2_0 and respectively vs_2_0 profiles. I am loading the files into char *buffers for each of the shaders and then passing the buffers to CreatePixelShader() and CreateVertexShader() like so: result = app.getDevice()->CreateVertexShader((DWORD*)&bufferVSH, &vertexShader); result = app.getDevice()->CreatePixelShader((DWORD*)&bufferPSH, &pixelShader); but both methods return failed. What could I be doing wrong? Thanks
  4. hi, until now I've used to compile my shaders at rune time with D3DXCompileShaderFromFile() and then pass them to CreatePixelShader() or CreateVertexShader(). I wish to switch to offline compilation. I am building them with fxc.exe. how can i load the binary shaders so I can pass them to CreateVertexShader() and CreatePixelShader()? thanks :)
  5. OpenGL OpenGL3.0.. I mean 2.2

    This kinda reminds me of Star Wars... As Anakin was supposed to bring balance to the force OGL3.0 was supposed to bring balance to the rendering APIs being an DX10 equivalent. They both failed. Vader did bring balance in the end but he kinda died soon after. I fear that even if the specs promised for 3.0 will materialize someday if will be to late for the API, gamedev wise.
  6. Hy, I am trying to initialize a ISPEShape in the Simple Physics Engine v3.0 by feeding vertices directly, not by using a ID3DXMesh like its being used in the examples. I know what i have to do in theory, but in practice, that a whole different thing. :D Can you help me with this? Thank you
  7. PhysX and DirectX

    Quote:Original post by Mike2343 Wow, just flat out admitted to stealing code... you got me all wrong. copy-pasting this simple example licensed "as-is" gives me an app with a simple framework to research and develop later on it. having a practical example that you know it works is a good guide. i do not intend to steal any code, i wont be copy-pasting chucks of ogre, irrlicht, crystal space and any other rendering/game engines. @latentdisposition yes this is true the deadline is self-imposed, but this is how we get things done even this being a hobby project. i have just turned attention to the programing side of game development. having a 3d-artist background i find it sometimes hard to navigate though the api, and an example of the working code make me understand how the different parts work together and get me going i do not understand why inspiring from other peoples work is damned (at this low-level). i am still using the windows api snippet to initialize a window i learned in my first directx tutorial. (even though some parts of it changed in time) when i have asked how to center a window, somebody answered with this "GetSystemMetrics(SM_CXSCREEN)/2-xScreenSize/2". that i just copy-pasted in my app initially, but then spent time on msdn because i wanted to find out more regarding the function`s capacities. is that considered stealing to? [Edited by - spooky_paul on July 14, 2007 3:23:48 AM]
  8. PhysX and DirectX

    i have some directx experience and regarding physx all i need is rigid body physics and the character controler. i hope i`ll do alright
  9. PhysX and DirectX

    thanks latentdisposition! this is exactly what i need
  10. PhysX and DirectX

    i do agree with you. but when there is a deadline looming copy/pasting is great way to speed up the development.
  11. PhysX and DirectX

    @Palidine I know the principles of working with them together. What I need is an example. A simple app that uses the two.
  12. PhysX and DirectX

    Quote:Original post by NQ If you don't mind using DirectX through a 3rd party graphics engine, then I can vouch for a setup that works: Ogre3D + PhysX. There's a wrapper which makes things really really simple. I used it myself and it works most splendidly. Actually this is how i started. ogre3d + nxogre. But now i feet that the time came to move on. This is why i want this DX + PhysX example
  13. PhysX and DirectX

    Thanks for the link, but most of api has changed since the example was written and it wont compile with the latest sdk. Is there any newer one out there?
  14. PhysX and DirectX

    Hi are there some simple examples on how to integrate PhysX into a DirectX app? Thanks
  15. DirectX SDK June 2007

    the sdk link: Quote:We’re sorry, but we were unable to service your request. You may wish to choose from the links below for information about Microsoft products and services. the others work thanks!