Jump to content
  • Advertisement

Kambiz

Member
  • Content Count

    1369
  • Joined

  • Last visited

Everything posted by Kambiz

  1. For fast square root and FloatToInt you can use this: http://www.nvidia.com/object/fast_math_routines.html
  2. Kambiz

    about OpenMP

    Even if you use 'a', the compile might still optimize the loop away and replace it by a simple assignment. Few compilers out there recognize such simple pattern very well.
  3. Kambiz

    Direct X or OpenGL?

    The code is just broken. The 3rd parameter in glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, hdrTextures[0], 0); is GL_TEXTURE_2D while he is attaching a GL_TEXTURE_2D_MULTISAMPLE. This fixed the "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT" error message. There must be at least another mistake somewhere causing the rest of the error messages.
  4. Kambiz

    Direct X or OpenGL?

    I replaced the 1 in the line WGL_ACCELERATION_ARB, 1, // must be HW accelerated with a valid value like WGL_FULL_ACCELERATION_ARB according to the documentations and it fixed the error (Chapter 13 block_redux). For some demos I get only a black or white window. I'm not going to fix all those demos... Look at the following thread for some newer tutorials: OpenGL 3.x tutorial Edit: I missed you post. I don't get any errors in chapter 9, only a black window but I'm pretty sure also that is not a problem with OpenGL itself.
  5. Kambiz

    Direct X or OpenGL?

    Quote:Original post by Kurasu1415 The bible comes with executables that do not work. They run, but throw OpenGL errors. I have tried them both under Linux and Windows, they work for me. What error message do you get? Regardless of the demos, OpenGL application should work on newer hardware. Continue learning the API. EDIT: I found a demo that does not work. I will have a closer look.
  6. Kambiz

    Direct X or OpenGL?

    Quote:Original post by Kurasu1415 Every example I find, even the ones in the NEWEST Superbible do not work on the newer cards, because the newest drivers support a newer version of OpenGL. It must have some other reason why the demos don't work. Both nVidia and AMD/ATI drivers still support all older versions of OpenGL. I have a GF260 and the demos work fine. Maybe you are missing some dlls from freeglut.
  7. Kambiz

    Forming a Game Development Company

    A very useful link: http://www.sloperama.com/advice.html
  8. Kambiz

    Linux use and development, finally...

    Qt Creator is the best IDE I know under Linux. It has even replaced Visual Studio for me under Windows. Other alternatives are Netbeans and Eclipse. But, many Linux developers prefer text editors like gVim or Emacs.
  9. Personally, I don't care about 1MB, even on my phone. but, are You sure you are not using a debug build because the shared library I have for Linux is only 78KB. Though, I don't know how much including the header's would contribute.
  10. Kambiz

    whats this called please

    I think You mean Circular dependency.
  11. Kambiz

    OpenGL tutorials

    Link
  12. Kambiz

    How is Ruby? JRuby?

    Quote:Original post by WilleRoberts Do you mean that you don't declare something as an "int" or something like that in Ruby the way you do in C++? How problematic does this become? No, read what a specification is. Basically there is no document that tells you what a piece of code is meant to do. EDIT: Just found out that a draft exist. (Last update 11/27/2009)
  13. Kambiz

    How is Ruby? JRuby?

    Something you should know about Ruby is that it has no specification, it is based on a reference implementation. At a more advanced level I found it to be very confusing and when I found out that there is no specification I basically gave up.
  14. I think GeeXLab support everything up to OpenGL 4.1. Tough, it is not just a simple binding. [Edited by - Kambiz on December 7, 2010 4:18:45 AM]
  15. D3DXHANDLE nTest=mFX->GetParameterByName(0,"nTest"); Shouldn't that be "fTest" instead of "nTest"?
  16. Kambiz

    Inverse of 4x4 matrix

    For such problems there is a very nice book called Numerical Recipes. The older version is available online. Quote:Original post by coderx75 Here's a BASIC implementation used for inverting an ODE matrix for rendering in OpenGL. *** Source Snippet Removed *** The indexes go from 0 to 11 in that algorithm, so it can't compute the inverse of a general 4x4 matrix. It probably assumes that the lat row has a know from, maybe 0,0,0,1 .
  17. Kambiz

    Editor GUI design: Property-Box

    Have a look at blenders new GUI (version 2.5+). It looks similar to yours but it is more detailed.
  18. Kambiz

    Video in game

    Quote:Original post by Lacrimas To convert from YCbCr to RGB i use ingeter transformations and some table precalculates. So I think that problem is not here. What kind of optimizaion flags do you mean? You need to do some profiling. I did the color conversation in shader not wasting any cpu cycles. You still have not answered the other questions. The flags depend on the compiler you are using. See the documentations.
  19. Kambiz

    Video in game

    I have used theora and didn't found it slow. Have you compiled the library with all optimizaion flags set? How do you convert from YCbCr to RGB? How do you display a frame? Have you done some profiling?
  20. Kambiz

    glGetUniform Problems

    Are you actually using those uniforms in the shader? If you don't use them they will get optimized away by the compiler and you cannot determine their location. Make sure the output of your shader depends on the uniforms and test again.
  21. Kambiz

    XML declarative engine

    You might find GeeXLab interesting.
  22. Kambiz

    glTexSubImage2D() performance

    The difference between 360fps and 3600fps is only 2ms render time. That is not much. Don't use fps to measure performance, use seconds per frame instead. 1) No, you should do all the rendering in OpenGL. Currently you are doing a lot of computation on the CPU and then sending huge amount of pixel data to the GPU. I don't know at what resolution you are working but the situation will become worth on higher resolutions. At some point even the CPU might become the bottleneck. 2) I have not checked the code in details but using the format the GPU uses internally can improve performance. PBOs are also a good choice. Fast Texture Transfers 3) Yes, render everything using OpenGL or use a library that does this, like Qt.
  23. Kambiz

    C++ & Java file control

    Under Linux you should use '/dev/shm' to get better performance. See also What is /dev/shm and its practical usage and Wikipedia: tmpfs
  24. We are using QtCreator for a cross platform project and we are using the same project file under Linux and Windows and it works very well. QtCreator is very powerful IDE and the underlying build system qmake is easy to use.
  25. Kambiz

    File Merging Tool?

    Why don't you search for files that have been created after the last sync and then just copy those?
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!