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

Thread: PLZ trying to write enginge but dont know how to think :(

  1. #1
    Guest

    PLZ trying to write enginge but dont know how to think :(

    Hm, well hopefully i got ur attention, i was trying to write a "engine" with opengl just simple loading of textures, maybe some lights, u know simple. well then i dont know how to begin, i am not sure how to do these common triangle strips, and i need someones simple modeler and file format so i can make model and load them up, can anyone tell me where i can find a tut on the strips, and the modeler and file format (a simple one that is)? plz help i am getting bored from pcs

  2. #2
    Junior Member Newbie
    Join Date
    May 2000
    Location
    cologne/germany
    Posts
    24

    Re: PLZ trying to write enginge but dont know how to think :(

    try www.codersger.de there is a link to a site with 3d-engines, but instead of coding an OpenGL engine you should first code a software 3d engine, to understand the whole ****...

  3. #3
    Guest

    Re: PLZ trying to write enginge but dont know how to think :(

    Igor thank u i think i didnt say i wanted ppls engines, but i think u mean there will be modeler's and so on there(???), umm i am not making a software one cuz i started making one and i well need a brake
    anyone else up for the try?

  4. #4
    Member Contributor
    Join Date
    May 2000
    Location
    Ottawa, Ontario, Canada
    Posts
    75

    Re: PLZ trying to write enginge but dont know how to think :(

    Work your way thru NeHe's tutorials. Then you'll have a better handle on what you are trying to do. Is my advice anyway.

  5. #5
    Guest

    Re: PLZ trying to write enginge but dont know how to think :(

    hmmm, i am sorta doing that now, but that doesnt give me a modeler and a file format

  6. #6
    Guest

    Re: PLZ trying to write enginge but dont know how to think :(

    I also just started out with OpenGL. To have
    something to render, I whipped up a very
    simple text parser. It helped that I've been
    living inside POV-Ray for most of my life

    Of course, modelling the next Lara Croft in text format is probably not going to be easy, but I stop at 20-polygon vehicles and other objects.

    I had the basic datatypes scalar, vector and vertex, and maybe 10 keywords: "define" (for assigning names to values, for convenience), "quads", "triangles", "tristrip", "quadstrip", "trifan", "normal", "color", "scale", "rotate" and "translate" -- that's about it. You just read the text file into a list of objects, and when time comes to render, you call Render() on the objects, and they will run through the same commands that you put in the text file (if you don't have a bug, that is

    glPushMatrix() and glPopMatrix() helps a lot here, by the way.

    (I actually extended the format a little more for recursive objects and multiple instances, but all in all it probably took less than 4 hours total).

    Good luck!

  7. #7
    Junior Member Newbie
    Join Date
    May 2000
    Location
    cologne/germany
    Posts
    24

    Re: PLZ trying to write enginge but dont know how to think :(

    what modellers ? do you mean programms to make 3d modells ??? Than try .3ds .c4d .lwo !!! I prefer .3ds and after making my objects i convert them with 3D-Exploration (www.xdsoft.com/explorer/) to OpenGL .cpp code ! There is also 3dWinOgl which can do that but it makes the code slower ! 3dwinogl uses for every single triangle a glBegin/End and that makes your code very slow !!!

  8. #8
    Guest

    Re: PLZ trying to write enginge but dont know how to think :(

    bgl, i know what ur talking about i already sorta did it thx anywayz
    IGOR, u the man!!!! hmm, it sounds cool but what exactly is the code?just a bunch of
    glBegin(gltriangle) etc...hwo do i know to seperate objects and stuff i have to make a parser for it and load the data from the .cpp openl code?

  9. #9
    Guest

    Re: PLZ trying to write enginge but dont know how to think :(

    hmmm before u answer i really wanna thank u igor cause i was going for giving up and doing more 2d

  10. #10
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    Canada
    Posts
    1

    Re: PLZ trying to write enginge but dont know how to think :(

    Explorer creates a C file containing the necessary code needed to display the object you converted. I can't quite remember what they look like exactly (left my output at home) but it contains the vertices, normals and indices for displaying the above. All of these are created into display lists for faster display. All you have to do is call the display function to show it. Dont forget to scale, translate or rotate first if you want it showing in a place other than center screen. If you do use the converter to convert to C code, all you have to do is #include this file into your VC++ project, and you are set. No need for a parser.

Page 1 of 2 12 LastLast

Similar Threads

  1. sorry i dont know where i must post
    By zitoune in forum OpenGL: User Software
    Replies: 4
    Last Post: 10-06-2012, 03:40 AM
  2. please help me. im new and i dont know anything about this.
    By deko in forum OpenGL: User Software
    Replies: 4
    Last Post: 12-26-2005, 06:37 AM
  3. I dont know
    By ocngull in forum OpenGL: User Software
    Replies: 0
    Last Post: 02-28-2002, 12:38 PM
  4. Dont look at z as strange
    By o9i8 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-18-2002, 09:39 AM
  5. please help me i dont know what to do
    By beginner in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-22-2001, 12:54 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