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 6473175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:26:04+00:00 2026-05-25T06:26:04+00:00

I have a fractal object that is created with random values to its variables.

  • 0

I have a fractal object that is created with random values to its variables. I’m using C++ and OpenGL. But now, as I intend to use the glutTimerFunc to animate other objects on the scene, I need to call for glutPostRedisplay() to redraw the scene. However, this would affect the fractal object that was totally based on random values because the glutPostRedisplay() would re-seed for new random values and then the whole object changes outlook.

How can I make OpenGL to re-draw only certain objects and not everything? I have thought of creating a separate function to first generate an array of random values and then pass the array to the function that draws the fractal object. But the array could be very confusing because there several different random values used. Could there be a better way to this?

  • 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-25T06:26:04+00:00Added an answer on May 25, 2026 at 6:26 am

    OpenGL does not know what an “object” is. It knows only what you give it. If you are generating vertices with fractals, then you need to either retain sufficient information to regenerate the fractals later, or you need to keep the post-generation data lying around somewhere.

    I assume you have some random number generation algorithm for making your fractals, yes? Well, they usually work by seed numbers. So you could simply get the seed before generating the fractal, then set that seed on subsequent renders until it is time to change the fractal.

    Alternatively, you could render the fractal to an off-screen buffer, that you then blit to the screen. This will require use of Framebuffer Objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have created simple Ajax enabled contact forms before that have around 12 fields -
Have a LinqtoSql query that I now want to precompile. var unorderedc = from
Have an app that can use tts to read text messages. It can also
Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have written program for drawing pythagoras tree fractal. Can anybody see any way
Have a simple console app where user is asked for several values to input.
Have noticed issue while testing iphone app that if one quickly opens/dismisses a modal
I'm interested in creating a game that uses fractal maps for more realistic geography.
I'm making a program that makes a fractal, and the user is suppose to

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.