Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

540 Good

About Key_46

  • Rank
  1. Key_46

    c++ directX app crashes

    Interesting... Are you compiling the framework yourself? If so which libraries the solution is linking?
  2. Since the request was working on my browser I tried to match the header exactly. I enabled the debug verbose for the opener to see what it was sending:   opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1))
  3. In my case the webserver was not accepting the default User Agent from urllib2. Try changing it:   opener.addheaders = [('User-agent', 'Mozilla/5.0')]
  4. The machine learning, computer vision, data mining are field is full of linear algebra, and so Facebook, Google and Twitter are also full of linear algebra.
  5. Key_46

    IDE for C++ Programming

      Technically not true, since Visual Studio does support makefile projects it can be used with with any tool/compiler. As an example I used it with Mingw to build homebrews for Nintendo DS.
  6. You are dealing with the problem of what objects worth drawing, One solution is keeping a buffer large enough only to draw the bullets near the camera and dynamically insert / remove the elements. You can specify the number of instances inside the buffer.
  7. Add some Subpixel Morphological Antialiasing to the mix and voilá.
  8. DirectX, OpenGL and other libraries are at the core of the engines. You can't explicitly see them because the engine creates an infrastructure that serves as an abstraction of all that for you. For instance, effects like smoke will aggregate some D3DX Buffer for the sprite positions, a D3DX Effect for the rendering, all of that will be used by a Direct3D Device during the rendering...
  9. Key_46

    Lua integration into a game

    Currently I'm using a single state shared across multiple Lua scripts. On the C++ side, the 'mod' definition will register all the .lua files necessary for the game objects, these files contains a factory to create an object (table) inside the lua state, so I don't need a class Enemy or Ally on the C++ side, I just need an Entity providing a minimum interface and which invokes the Enemy or Ally factories from Lua. The Lua objects communicate using message passing, the interaction is coordinated on the C++ side, using uid's. And since the queues are also in Lua I have freedom to send from int's to complex data structures, if necessary.
  10. You are right, running perfectly on reference. http://i.imgur.com/wLxfl.jpg
  11. Hello everyone, something weird is happening, 2 days ago I downloaded the Parallax Mapping sample from NVidia's DirectX10 SDK, the sample was pre-build so i just ran it. The effects are working fine except for silhouette effect: http://i.imgur.com/Xr7xB.jpg Recompiling the sample locally not helped. I posted this problem on NVidia forums and I was replied that the Sample works perfectly on other systems. I remember downloading this SDK somewhere in the past and everything worked fine. Other individual samples are also working fine with and without recompiling. Already update video driver but didn't help. What could be the cause of this problem? Microsoft's HLSL compiler? Driver-Hardware compatibility?
  12. Thanks again, i will leave the full GPU and the CPU sorting solutions then. I will compare the performance with the instancing when i finish these two.
  13. Thanks for the response MJP, the problem is that i am also redirecting the stream output so i can do all particle computations on the GPU side without sending data through the bus. But i don't know how better this is in comparison with normal CPU calculations. I am implementing the sorting on the CPU and i'm still getting pretty neat results I am also questioning the use of Geometry Shader, it makes the coding simplier but I've read (in 2007) that Geometry Shader produces a noticeable overhead, and since i'm creating a simple quad, isn't better to use instancing instead?
  14. I am implementing the ParticlesGS sample in my engine and i came up with a problem... the rendering order is screwed, the only good situation is when i have additive blending, but in my case i have some smoke particles that doen't look nice. So is there a workaround with z-buffering and blend states or i need to hardcode a sorting on the CPU? Because if i had to implement a CPU solution then the whole idea of using GS is worthless, right?
  15. Key_46

    Recursion help!

    quiz(4) will generate 2 quiz(2) and each will generate 2 quiz(1) so you have: 1 '*' from quiz(4) 2 '*' from quiz(2) 4 '*' from quiz(1) that's 7... the program operation: program enters quiz with i = 4 4 > 1 program enters quiz with i = 2 2 > 1 program enters quiz with i = 1 Print '*' program returns to quiz with i = 2 program enters quiz with i = 1 Print '*' program returns to quiz with i = 2 Print '*' program returns to quiz with i = 4 program enters quiz with i = 2 2 > 1 program enters quiz with i = 1 Print '*' program returns to quiz with i = 2 program enters quiz with i = 1 Print '*' program returns again to quiz with i = 2 Print '*' program returns again to quiz with i = 4 Print '*' End
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!