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: Cyberdemon

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    3,026

    I'm over the moon. I was missing a call to...

    I'm over the moon. I was missing a call to GL.Viewport() to set the full screen bounds exactly as you said. And it was rendering all red because I wasn't clearing the texture...
  2. Replies
    11
    Views
    3,026

    If I remove the GL.LoadIdentity() prior to the...

    If I remove the GL.LoadIdentity() prior to the GL.MatrixMode(MatrixMode.Modelview) then nothing is rendered. I guess this means I probably have some bigger issue?

    This is how my rendering looks...
  3. Replies
    11
    Views
    3,026

    Ok, finally got the quad rendering on screen. ...

    Ok, finally got the quad rendering on screen.

    Once the VBO has been drawn to the FBO I'm calling GL.LoadIdentity() before and after applying a Modelview Matrix.


    // Draw VBO to FBO....
  4. Replies
    11
    Views
    3,026

    Good idea. GL.PushMatrix(); { ...

    Good idea.


    GL.PushMatrix();
    {
    GL.BindTexture(TextureTarget.Texture2D, 0);
    GL.Begin(BeginMode.Quads);
    {
    GL.Color3(0f, .6f, 0f);
    GL.Vertex2(-1.0f,...
  5. Replies
    11
    Views
    3,026

    Just tried your code but still no joy. Thanks...

    Just tried your code but still no joy.

    Thanks for the suggestion I really appreciate it.
  6. Replies
    11
    Views
    3,026

    Alternatively my code is below if someone is able...

    Alternatively my code is below if someone is able to see the problem.

    My working VBO render (renders my world as expected):


    protected override void OnRenderFrame_VBO(FrameEventArgs e)
    {
    ...
  7. Replies
    11
    Views
    3,026

    FBO render to texture using VBO

    I'm using OpenTK and am trying to render to an FBO texture as per the tutorial here:

    http://www.opentk.com/node/397
    http://www.opentk.com/files/Program_0.cs

    This example uses immediate mode to...
Results 1 to 7 of 7