Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Source Code for Complex Models?

  1. #1
    Intern Newbie
    Join Date
    Feb 2002
    Location
    Hong Kong
    Posts
    44

    Source Code for Complex Models?

    Hi

    I am creating a demo app and would like, if possible, to just paste some code that draws a fairly complex model (something a bit better than cylinders, spheres etc).

    Anyone have a suitable link?

    cheers

    [This message has been edited by rangers99 (edited 03-11-2002).]

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Location
    Fort Collins, Colorado
    Posts
    447

    Re: Source Code for Complex Models?

    There are several tutorials on loading models, which I think is what you are asking for. Check out: http://nehe.gamedev.net http://www.gametutorials.com

  3. #3
    Intern Newbie
    Join Date
    Feb 2002
    Location
    Hong Kong
    Posts
    44

    Re: Source Code for Complex Models?

    I was kind of hoping to avoid spending time using model loading code. Its a one-off and i really just need some C source that uses display lists to draw a fairly complex model (not a teapot please!!!!!!!!!).

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Oct 2000
    Posts
    531

    Re: Source Code for Complex Models?

    Model loading code is one of the many steps that are neccesary to create a good game.

    Anyway.. there's always Deep Exploration ..

    ys.


    [This message has been edited by richardve (edited 03-12-2002).]

  5. #5
    Intern Newbie
    Join Date
    Feb 2002
    Location
    Hong Kong
    Posts
    44

    Re: Source Code for Complex Models?

    Do none of you muppets have any display lists source code that renders a nice scene?

  6. #6
    Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Turin
    Posts
    269

    Re: Source Code for Complex Models?

    One of the best site to learn how to render weird realtime generated stuff is Poul Bourke web site.

    Just search the name on google and keep one month or two to browse the weird surfaces and maths.

    rIO.sK http://www.spinningkids.org/rio
    [rIO^sPINNING kIDS] - rio@nospam.spinningkids.org

    -/- This is a signature virus. Add it to your signature. Help it spreading! -/-

  7. #7
    Advanced Member Frequent Contributor
    Join Date
    Oct 2000
    Posts
    531

    Re: Source Code for Complex Models?

    Originally posted by rangers99:
    Do none of you muppets have any display lists source code that renders a nice scene?
    I'm not a muppet, I'm a smurf.

    nr.

  8. #8
    Senior Member OpenGL Pro
    Join Date
    Feb 2000
    Location
    France
    Posts
    1,118

    Re: Source Code for Complex Models?

    Originally posted by richardve:
    I'm not a muppet, I'm a smurf.

    nr.
    And I'm a snorky, sorry...

    Eric

  9. #9
    Intern Newbie
    Join Date
    Feb 2002
    Location
    Hong Kong
    Posts
    44

    Re: Source Code for Complex Models?

    You're all muppets!

    Managed to find some source in the glChessGame that you can download from this site. There is the code for all the chess pieces.

    So the moral is: If you want something done properly do it yourself!

  10. #10
    Junior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    124

    Re: Source Code for Complex Models?

    .....???? (Muppets, smurfs, snorkies ??? I'm wrong here!!!)

    There is a program out there, called '3D Exploration' from 'X Dimension Software' (http://www.xdsoft.com/explorer/) which can load a lot of different 3D formats and is able to write a .cpp and a .h-file which generate a display list for the objects and can be used in own programs. In my version (1.2.5) there occure sometimes some errors but most times it works very fine.
    So it's not final code I offer you, but a way to get some code from (own?) models.

    Marc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •