Computer Science Canada

3D Engine

Author:  Saad [ Wed May 16, 2007 9:51 pm ]
Post subject:  3D Engine

Ok, thanks to thuvs and Crevates for helping me with my problem i have gotten my 3d engine to work.
Attached is a simple model which you can use to render
You must enter the file name followed by .raw

The Distance shading is poor currently but it still shows different colors via the lights.

Use W/A for X-axis, S/D for Y-axis and Q/R for Z-axis to rotate the model, Up/Down to move the Z coordinate of the camera, 2/8 to move the Y, 4/6 to move the X

Also if rotation is too fast for you press shift and enter a new speed

Please give comments Wink

a100

Author:  DIIST [ Wed May 16, 2007 10:53 pm ]
Post subject:  Re: 3D Engine

Good piece of advice is not to draw the polygon if one of the points z value is bellow 1. Other wise you get some serous rounding error and your program crashes. Other than that, good job. Just need to work on the lighting. If you do consider it, i got a formula to increase your fps, just pm me. I noticed with the raw format you have a lot of repeated points that you end up rotating again and again. If you work with slow computer you will notice that sine& cosine are very costly functions. Another thing to note down is that the sort you use can affect the the overall outcome by a lot. Using quick sort as opposed to selection sort increased my fps from 30fps to 100fps for that ship mesh.

Author:  Saad [ Wed May 23, 2007 8:28 pm ]
Post subject:  Re: 3D Engine

I have update my engine

New features
- Lighting
- More fps
- Obj support (doesnt work well requirements for the obj file are one model, no extra info like normals and only tri's atm)

To rotate model left click and move
and to rotate light right click and move

Also up/down move the camera closer, further

Also thnx for the comments thuvs, you helped my engine alot



Why cant we delete attachments :\

Author:  Geostigma [ Wed May 23, 2007 9:14 pm ]
Post subject:  RE:3D Engine

does turing support theata? if so theres an answer to rotating.



btw. You have mad division errors so it crashes. Funstuff

Author:  Saad [ Wed May 23, 2007 9:21 pm ]
Post subject:  Re: RE:3D Engine

Geostigma @ Wed May 23, 2007 9:14 pm wrote:
does turing support theata? if so theres an answer to rotating.


I already have rotation just click and move

Geostigma @ Wed May 23, 2007 9:14 pm wrote:
btw. You have mad division errors so it crashes.

This occurs if you randomly move the mouse to much while rotation

Edit uploaded fixed version that gave rotation crash

Author:  Geostigma [ Wed May 23, 2007 9:38 pm ]
Post subject:  RE:3D Engine

Same thing just only with click and move. Other then that its okay that it can load models, I want to see it dooooo something now lol.

Author:  Tallguy [ Thu May 24, 2007 12:09 pm ]
Post subject:  Re: 3D Engine

pretty cool, but i agreee with the dude above

Author:  tkas19 [ Sun Jun 03, 2007 7:25 pm ]
Post subject:  RE:3D Engine

same

Author:  Saad [ Mon Jun 04, 2007 6:28 am ]
Post subject:  Re: 3D Engine

This is just the engine, I will be using it to make a space shooter for my ISU which will be online as i have found the secret to realtime net in turing

Author:  DIIST [ Mon Jun 04, 2007 7:05 am ]
Post subject:  Re: 3D Engine

making it something like Evasive Maneuvers. That was a cool space game. Wink

Author:  Saad [ Mon Jun 04, 2007 1:17 pm ]
Post subject:  RE:3D Engine

As soon as i can get the camera vector working properly i will be doing a game like Evasive Maneuvers

[ Mazer edit: fixed spelling Smile ]

Author:  ashiphire [ Tue Jun 05, 2007 2:46 pm ]
Post subject:  RE:3D Engine

thats pretty cool


: