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. 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...
  2. 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...
  3. 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...
  4. 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;
  5. 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...
  6. Replies
    2
    Views
    588

    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...
  7. Replies
    14
    Views
    2,507

    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 ...
  8. Replies
    0
    Views
    439

    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...
  9. Replies
    4
    Views
    716

    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:)
  10. Replies
    14
    Views
    2,507

    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
  11. Replies
    4
    Views
    716

    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...
  12. Replies
    14
    Views
    2,507

    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...
  13. Replies
    14
    Views
    2,507

    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...
  14. Replies
    14
    Views
    2,507

    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,...
  15. Replies
    1
    Views
    751

    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 15 of 15