Results 1 to 6 of 6

Thread: several questions, maybe you could answer some

  1. #1
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    several questions, maybe you could answer some

    question1.)
    does anybody know a classlibrary for displaying videos, for example using directshow?

    question2.)
    how do i boost performance in this.
    I made a big world with many polygons,
    and i keep redrawing it in the Display
    function. I use glTranslatef and glRotatef
    to move the camera. Isnt there a way to move about without redrawing all the time.

    question3.)
    Is there a way to use directdraw and Opengl in one Application? Not at the same time, but
    initialize one use it, then the other.
    How would i have to make the window, or
    must i maybe make two windows?

    question4.)
    i use glTranslatef and glRotatef to move the camera. How do i make a shot fly directly
    away from the camera. I tryed using
    vectors and then normalizing, but for some
    reason it doesnt work.
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2001
    Location
    London UK
    Posts
    195

    Re: several questions, maybe you could answer some

    Let me try:

    1. You have among other Apples quicktime but what is wrong with DirectShow?
    2. No, if you are moving must the screen of course be updated.
    3. No, both DirectDraw and OpenGL is using the same hardware so this can be difficult. See the FAQ: http://www.frii.com/~martz/oglfaq/ms...s.htm#mswi0060
    4. Move it in the same direction you move the camera but at a higher speed.

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    763

    Re: several questions, maybe you could answer some

    ho. these answers are more on a slightly different interpretation of the question:

    2) I agree, but perhaps the original poster is alluding to scene graphs (so you don't have to redraw the WHOLE scene, everytime. Perhaps.) Difficult question to answer. Look up scene graph stuff.

    4) er, I'm guessing the orig poster is trying to work out the *trajectory* from all the camera movememtns with rotation/translate yada yada. The soln: grab the modelview matrix after you've set up your camera look at transform, and multiply it by the unit vector along the negative z-axis. This will give you the normal to the image plane.

    cheers
    John

  4. #4
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Re: several questions, maybe you could answer some

    1.)Directshow is fine i just cant figure out how to use it, you know a class library or tutorial?
    The alternative id think is good is something like bink or smacker which is free.
    You know anything.

    2.)Im totally stuck on this because many games use opengl and they m,anage to get alot of polygons running, there must be a way to redisplay on;ly animated items.
    Maybe theres a way to move only camera(not glTranslatef glRotatef)?

    3.)Ill check into the website maybe it helps.

    4.)getting the modelview matrix is a good idea thanks.

    -Thanks you guys
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  5. #5
    Junior Member Newbie
    Join Date
    Feb 2001
    Posts
    2

    Re: several questions, maybe you could answer some

    2) You might wanna try this . You'll have to redraw, though.

  6. #6
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Finland
    Posts
    10

    Re: several questions, maybe you could answer some

    You probably knew this already, but games cheat; they use textures and bitmap sequences (see "mipmaps" and "sprites") to draw most of the stuff, and actually calculate only simple shapes like squares and very few triangles. That's how they get that speed... or am I being an idiot here?

Similar Threads

  1. Definitive answer, anyone?
    By danyargici in forum COLLADA
    Replies: 0
    Last Post: 11-09-2014, 12:20 PM
  2. Please help me to answer My Urgent Question
    By NeedAdvice in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 01-03-2008, 02:27 PM
  3. Found the ***ANSWER***
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 01-10-2003, 01:59 PM
  4. Two simple questions, answer please.
    By Andru in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-26-2002, 08:22 AM
  5. ****ing opengl... read this... and answer...
    By in forum OpenGL: User Software
    Replies: 18
    Last Post: 01-01-2002, 06:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean