JamEngulfer

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: All frames are being rendered black #59000
    JamEngulfer
    Participant

    I removed that line and still nothing changed. The server can be detected by the ‘Simple Client’ demo, so I know that part is working. I’m wondering if I’m sending the context incorrectly or something. I’m passing it to each class with:

    - (id)initWithContext:(CGLContextObj)context {
        cgl_ctx = CGLRetainContext(context);
        return self;
    }

    Can I just set it as a normal variable?

    I’m wondering if any of my actual rendering code is wrong, but it seems to match up with all of the recommended code for doing this sort of thing.

    Turns out, I was passing the context in the wrong order and I passed a null context to my renderer. *facedesk* *facedesk* *facedesk*.

    It’s now showing, but it’s upside down and only in red, but it’s a start.

    • This reply was modified 5 years, 9 months ago by JamEngulfer. Reason: Me being dumb
    in reply to: All frames are being rendered black #58998
    JamEngulfer
    Participant

    Does that mean that I have to use one of the forked frameworks, or can I do something else to make my rendering code compatible with Syphon?

    I see in the ‘Simple Server’ application that you get the context from the NSOpenGLView object in the UI. Is there a way to emulate that context?

    Sorry if I’m asking dumb questions, I’ve just never dealt with OpenGL or anything like it before.

Viewing 2 posts - 1 through 2 (of 2 total)