Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: DarioCiao!

Search: Search took 0.00 seconds.

  1. pack more than 4 components into RGBA 32 texture in vertex shader

    How can I pack more than 4 components into a RGBA (128 bits total, floating point) texture?

    My GPU only support RGBA32 texture in vertex texture fetch, so I'm forced to use that pixel format

    I...
  2. Ok thanks!

    Ok thanks!
  3. thanks, but main question is unsolved. :/ Does...

    thanks, but main question is unsolved. :/ Does all Framebuffer texture formats are ok for VTF? are there formats I should avoid?
  4. Replies
    1
    Views
    726

    provided there are TONS of examples over...

    provided there are TONS of examples over internet:
    here's one by codeproject:
    Unmanaged C++ OpenGL code in C# form

    You can both create a window with C# and then only calls opengl functions from...
  5. OpenGL 3.x VertexTextureFetch, pixel formats

    I'm interested in knowing wich formats are supported by most videocards so that I can do VTF in asafe way (I read ATI cards had some problems but that was a post of 2005 related to X1x00 series):
    ...
  6. Poll: a rendering engine (school project) That's...

    a rendering engine (school project)



    That's not robust at all. If you allow Vertex Layout changethat would break all pre existing shaders and any code that operate on that mesh:

    API design...
  7. Poll: The task I'm trying to solve is to make a most...

    The task I'm trying to solve is to make a most possible easy to use API (well actually 3 lines of code compared to 10 lines of OGRE so I don't think there's room for much improvement), there's...
  8. Poll: mmm ok

    The vertex format is immutable in my engine(I create it at run time, but once done I don't change it): once a mesh buffer is created from it, the mesh buffer layout can't be changed (unless you...
  9. Poll: I finally ended up with this: #include...

    I finally ended up with this:



    #include <cstddef>
    #define MyEngineAddVertexComponent(s,c,type) /* details*/

    struct Diffuse{
    vec3 position;
    half3 normal;
  10. Poll: Should I provide interleaving to end users?

    Should I provide Interleaving to end users?
    My class actually is like that.


    class MeshBuffer: public virtual HardwareBuffer{

    public:

    /** Default is true, you can set interleaving to...
  11. Replies
    2
    Views
    768

    this is a generic question 1) you need to do...

    this is a generic question
    1) you need to do screen capture of an application running in a separate process? => you need screen capture API and that is independent of what type of rendering the...
  12. Replies
    14
    Views
    3,283

    right now I don't know why but I can't get my...

    right now I don't know why but I can't get my linux VM to apt-get glfw, by the way copy pastin the relevants GL parts in SFML I get no strange performance penalty. Have you tried to upload data with ...
  13. Replies
    0
    Views
    634

    GLTypes header

    As the title suggest I'm searching for an header wich includes only the necessary typedefs for GL Types and is portable (GLES2 for android and emscripten, Windows, Linux, Mac)

    I need that for a...
  14. Replies
    4
    Views
    1,028

    Uao thanks very much guys! that's a lot of stuff...

    Uao thanks very much guys! that's a lot of stuff I'll have my time to get deep into that :) unluckily I don't have parte of the features you mentioned but I have a lot to play with now:)
  15. Replies
    14
    Views
    3,283

    try this

    try:
    glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer);
    glBufferData(GL_ARRAY_BUFFER, sizeof(g_vertex_buffer_data),NULL, GL_STATIC_DRAW);

    and then:




    //upload data
  16. Replies
    4
    Views
    1,028

    2 questions: VAO and geometry shaders

    1) VAO:

    I'm getting really bad performance from VAOs, wich is the greatest version number of OpenGL in wich VAOs are not mandatory? I will use core context of that version (like 6-8% less...
  17. Replies
    14
    Views
    3,283

    reply

    ops you are right: a sentence made me thinking he was not using VBOs (even after I looked the code at first time)



    Then he must submit a stand-alone code that compiles and reproduce the...
  18. Replies
    14
    Views
    3,283

    reply

    My result is 40 frame per seconds rendering 8 million triangles every frame. This is not surprising because I have a very old graphics card. Since your are new I'll clarify things a bit.

    Indeed...
  19. Replies
    14
    Views
    3,283

    reply

    I get 40+ fps on my old (5 years) laptop by rendering 8 millions triangles (non indexed, so 24 milion vertices).

    A common issue my girl had with her NVIDIA laptop (assuming you have a laptop,...
  20. Replies
    1
    Views
    961

    reply

    this is basic linear algebra:
    if
    A = B*C

    then you must isolate C by pre-multypling by inverse of B
    B' * A = B'*B*C
    B'*A = C

    to find inverse of B you must be sure that determinant is not 0....
Results 1 to 20 of 20