Results 1 to 3 of 3

Thread: Visual Engine

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    Visual Engine

    Hello guys..

    i really have some experience in programming language. Coz i have a lot time dedicated time on it.
    So i've tried to understand to 3d programming with a opengl( NEHE tutorials ) a couple a weeks ago. And i'm working on my engine a couple a days. and i found a certain difficult to write a code that draw a various objects like a boxes, a trees, a boxes or maybe trees made by boxes. )

    And i really appreciate if someone try to help me. Maybe share some codes, i work usually with Delphi, but any language is accept.

    PS: sorry about my english...

    thanks for opportunity

  2. #2
    Guest

    Re: Visual Engine

    The reason it's hard to write code to draw a tree (efficiently, at least) is because it IS hard...

    Imagine if you were to draw all of your user interface using DrawLine() and SetPixel(). You don't do that; you use some pre-cooked objects (menus, buttons, etc) and combine them with graphics done in PhotoShop to generate your UI. For 3D, you have to do the same.

    Write a few classes to draw common things you will need that are not too complex. Then re-use these classes where appropriate. For complex objects, use a 3D modeler (the 3D equivalent to PhotoShop). Then write a little parser which will parse the output file format of this modeler into an object you can render in your program.

    Last, you might find it interesting to generate some objects algorithmically. If you know how to draw tubes, for example, you can do reasonable trees using a fractal branch-splitting algorithm to generate the tree up-front (say, into a display list) and render it when necessary. That's not the most efficient way, though, because most fast scenery is done with texturing tricks.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    Re: Visual Engine

    Geee....

    I've think about how can i create a complex objects. And i guess if i create a various classes that draws a box, another class that draws a triangules.
    And make a list of those objects , in a rudeness way, i can draw a character for example.But i guess isnīt a better way.
    So, can you share with me some source sample ? I just wanna take a look, to get an idea of whole thing.

    thanks...

Similar Threads

  1. Newbie - How to convert Pascal Terrain Engine over to Visual C 2013 ?
    By OneAboveAll in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-23-2015, 11:55 AM
  2. OpenGL and Visual Studio 2010 Visual C++
    By Matt SA in forum OpenGL: Windows
    Replies: 1
    Last Post: 09-21-2012, 09:43 PM
  3. Replies: 10
    Last Post: 10-27-2006, 09:05 AM
  4. Check My Engine if you like :) BeK Engine
    By unreal in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 09-03-2005, 12:38 PM
  5. Can you try my new engine?
    By MarcoAltomonte in forum OpenGL: Advanced Coding
    Replies: 51
    Last Post: 01-20-2005, 12:16 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