Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4611256
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:14:36+00:00 2026-05-22T01:14:36+00:00

I have a custom clipping plane that changes orientation in an app I’m writing.

  • 0

I have a custom clipping plane that changes orientation in an app I’m writing. I’d like to be able to get the equation to that clipping plane at certain times. The function glGetClipPlanef() seems to be what I want, but for some reason it keeps throwing an EXC_BAD_ACCESS error whenever I call it. Any ideas on how to debug this error or on correct usage of this function? I have the plane equation that is used to create the clipping plane for each frame, but several transformations are applied to the scene before the clipping is actually applied, which causes the equation of the clip plane to change drastically.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:14:37+00:00Added an answer on May 22, 2026 at 1:14 am

    I figured it out. For anyone that was wondering,

    float *clipVals;
    glGetClipPlanef(GL_CLIP_PLANE0, clipVals);
    

    will cause an EXC_BAD_ACCESS error because clipVals has not had memory allocated for four floats. I had to either allocate some memory for clipVals or declare it like so:

    float clipVals[4];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have custom classes that I currently instantiate within App.xaml as resources. I want
I have custom button, with an image that I'd like to shift down within
I have custom SPlist with some fields that I'd like to bind to a
I have custom validators and filters that I have created that I would like
I have custom event that has several different subscribers who will all use the
I have custom gallery. Gallery represents items that are frame layout. There are one
I have custom component that I can place in my layout file (XML) for
I have a custom UIImageView which inserts a sublayer like this: - (id)initWithFrame:(CGRect)frame {
I have custom model file format that I am reading from to create a
I have custom groupViews that need to change state when they are expanded and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.