
-----------------------------------
Saad
Wed May 16, 2007 9:51 pm

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

-----------------------------------
DIIST
Wed May 16, 2007 10:53 pm

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.

-----------------------------------
Saad
Wed May 23, 2007 8:28 pm

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 :\

-----------------------------------
Geostigma
Wed May 23, 2007 9:14 pm

RE:3D Engine
-----------------------------------
does turing support theata? if so theres an answer to rotating.



btw. You have mad division errors so it crashes. Funstuff

-----------------------------------
Saad
Wed May 23, 2007 9:21 pm

Re: RE:3D Engine
-----------------------------------
does turing support theata? if so theres an answer to rotating.


I already have rotation just click and move

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

-----------------------------------
Geostigma
Wed May 23, 2007 9:38 pm

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.

-----------------------------------
Tallguy
Thu May 24, 2007 12:09 pm

Re: 3D Engine
-----------------------------------
pretty cool, but i agreee with the dude above

-----------------------------------
tkas19
Sun Jun 03, 2007 7:25 pm

RE:3D Engine
-----------------------------------
same

-----------------------------------
Saad
Mon Jun 04, 2007 6:28 am

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

-----------------------------------
DIIST
Mon Jun 04, 2007 7:05 am

Re: 3D Engine
-----------------------------------
making it something like Evasive Maneuvers. That was a cool space game.  :wink:

-----------------------------------
Saad
Mon Jun 04, 2007 1:17 pm

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 :) ]

-----------------------------------
ashiphire
Tue Jun 05, 2007 2:46 pm

RE:3D Engine
-----------------------------------
thats pretty cool
