Recent

Author Topic: [SOLVED] Writing a really basic 3D "engine"  (Read 7190 times)

zoiddani

  • New Member
  • *
  • Posts: 29
[SOLVED] Writing a really basic 3D "engine"
« on: May 05, 2011, 10:38:48 am »
Hi,
I need some advice from you. I am writing an application that draws 2D formulas. I am done with this part yet, and I thought that I could implement 3D formulas as well. I have my code, which makes from an x and y value a z value (with a formula), but I don't have a good way to make it show the picture.
Until now I've been using a simple code to draw the vertices like this: http://danielzolnai.files.wordpress.com/2011/04/3d.png
It was not hard to make this, at first I drew the vertices in the black shape, an then I just edited their y position depending on their z's.
But many times, the picture is not clear, so I need a basic 3D "engine" that can rotate. I dont need polygons, it's enough to draw the vertices and the edges connecting them. I don't need any pre-made engine, I'd like to write my own. Do you have any tutorials, or advices how to start?
Thank you, zoiddani
« Last Edit: May 07, 2011, 07:46:36 pm by zoiddani »

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1216
    • Burdjia
Re: Writing a really basic 3D "engine"
« Reply #1 on: May 05, 2011, 03:16:32 pm »
What you are lookin for is basic 3D math.  Not Pascal code, but this article introduces you the basic 3D matrix math and stuff.
« Last Edit: May 05, 2011, 03:18:13 pm by Ñuño_Martínez »
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

zoiddani

  • New Member
  • *
  • Posts: 29
Re: Writing a really basic 3D "engine"
« Reply #2 on: May 07, 2011, 07:46:22 pm »
Thank you, that was exactly, what I was looking for!

 

TinyPortal © 2005-2018