Posted: 16th Sep 2003 4:30
hi

im doing a 3d engine in Delphi (only with the Api SetPixel)...i mean im doing EVERYTHING..... and i draw it pixel per pixel!

and im doing some test..in DB...to understand how i should do it.. and here the begening of it (DB V1.13):

+ Code Snippet
sync on
sync rate 0

NbPoint=8

dim XScreen(NbPoint)
dim YScreen(NbPoint)

dim cube2#(NbPoint,3)
dim cube#(NbPoint,3)
cube#(1,1)=0-10
cube#(1,2)=0-10
cube#(1,3)=10

cube#(2,1)=10
cube#(2,2)=0-10
cube#(2,3)=10

cube#(3,1)=10
cube#(3,2)=0-10
cube#(3,3)=0-10

cube#(4,1)=0-10
cube#(4,2)=0-10
cube#(4,3)=0-10

cube#(5,1)=0-10
cube#(5,2)=10
cube#(5,3)=10

cube#(6,1)=10
cube#(6,2)=10
cube#(6,3)=10

cube#(7,1)=10
cube#(7,2)=10
cube#(7,3)=0-10

cube#(8,1)=0-10
cube#(8,2)=10
cube#(8,3)=0-10


vw#=640
vh#=480
r#=1

rem XScreen=((x/z)*Vw*R)+VxMin+(Vw/2)
rem YScreen=((y/z)*Vw*(0-R))+VyMin+(Vh/2)

for i=1 to NbPoint
if cube2#(i,3)=0 then cube2#(i,3)=0.0000000000001
XScreen(i)=((cube2#(i,1)/cube2#(i,3))*Vw#*R#)+(Vw#/2.0)
YScreen(i)=((cube2#(i,2)/cube2#(i,3))*Vw#*(0-R#))+(Vh#/2.0)
next i

ink rgb(255,0,0),0

a#=0
do
cls
a#=wrapvalue(a#+1)

for i=1 to NbPoint
cube2#(i,1)=(cube#(i,1)*cos(a#))+(cube#(i,3)*sin(a#))
cube2#(i,2)=cube#(i,2)
cube2#(i,3)=(cube#(i,1)*(0-sin(a#)))+(cube#(i,3)*cos(a#))
next i

for i=1 to NbPoint
cube2#(i,3)=cube2#(i,3)+100
cube2#(i,2)=cube2#(i,2)-20
next i



for i=1 to NbPoint
if cube2#(i,3)=0 then cube2#(i,3)=0.0000000000001
XScreen(i)=((cube2#(i,1)/cube2#(i,3))*Vw#*R#)+(Vw#/2.0)
YScreen(i)=((cube2#(i,2)/cube2#(i,3))*Vw#*(0-R#))+(Vh#/2.0)
next i

for i=1 to NbPoint
dot XScreen(i),YScreen(i)
next i

sync
loop


feel free to say that im a genius.....cause i am one of them......
Posted: 17th Sep 2003 1:15
And whats this 3d engine going to be used for?
Posted: 17th Sep 2003 1:47
I'm confused...why create a 3D engine in delphi, excluding all functionality on graphics cards via DirectX?

That aside, I like the swirly dots, simple but sweet
Posted: 17th Sep 2003 2:55
in fact....this is because i LOVEEEEE to do everything... i like to understand what i do... then ...this is why im programming 90% of the time in dos assembly .... but..this time i wanted to a win32 prog.. then first i do it in delphi..and after ill do it in win32 assembly

and here you can see how it goes... (you can now rotate on the 3 axis.... with 3 button):

http://membres.lycos.fr/brainwasher666/class3d.html
(click on the link 'ToggleRotate.zip' ... it will be under the top pub..just wait 30 seconde for the pub to disapear...)
Posted: 17th Sep 2003 6:31
the angle between the bottom and top vertice holders appears to be distorted.
Posted: 18th Sep 2003 0:59
i did a new version...... you see object in wireframe... and you can randomize it.... and there is many other.. new things

indi hmmmm maybe
ill check it out

here the new version:
http://membres.lycos.fr/brainwasher666/Class3d.html
(3DmistificatorV1.zip)
Posted: 18th Sep 2003 1:39
So can I just ask how do you actually write a 3d engine? Can you put it into English?
Posted: 18th Sep 2003 2:07
So can I just ask how do you actually write a 3d engine? Can you put it into English?


what do you mean?.im not sure to understand..
Posted: 18th Sep 2003 2:30
Moonshine: Your sig a quote from Peter Kaye perchance? Just a hunch, not based on the fact that you're also from Bolton or anything.

I have a friend with an Owl called T'owl (seriously!). She keeps it in t'Aviary.

My 4 year old daughter thinks it really is called Tinternet

Now I'll shut the **** up and have a Solero, it's summer after all.
Posted: 18th Sep 2003 11:55
StevieVee :YES!!! Finally a fellow Englishman who recognises my sig!
Garlic Bread?

Peter Kay is the best comedian ever, and look out for Phoenix Nights Series 2 coming out on DVD very soon.

Chiwawa :I meant how exactly do you have to code it, what sort of things do you have to tell the computer to do?
Posted: 18th Sep 2003 15:29
here the delphi code... of my most advanced version:

http://membres.lycos.fr/brainwasher666/Class3d.html
(CodeMitificator.Zip)


...sorry for french variables....
Posted: 19th Sep 2003 23:49
Ahhhh Chiwawa! I WANT YOU !! Come on et let's fu.. ok ok, that's not the moment fot kidding, it's your time of GLORY . Come back on the frenh forum, little news:

- Freddix left us
- The forum is entirely flooded (in th other subjects section)
- 3DGCPro is going to be sell, so we'll be able to code in your language
Posted: 19th Sep 2003 23:57
Booked it, packed it, f...........
Posted: 20th Sep 2003 0:05
hmmmmmmm i hate french program
everything is so...............

i mean everything is so LONG to write... in english this is short and precis...

just think about it: if every DB command was in french LOLLLLLLL
Posted: 20th Sep 2003 0:19
French->>

Pas grave, reste ici faire ton intéressant sur des sujets qui ont déjà été débattus sur le forum français. Nous on aura une nouvelle communauté sans flood et sans cons...

A++ quand même
Posted: 20th Sep 2003 15:50
FlashingBlade!!! Yes! Another one!!!

Heres some french for ya....Les cadburys fingres - Cadburys chocolate fingers but....French!

And you buy em, even though theyre a pound dearer than in Spar!
Posted: 20th Sep 2003 20:49
LOL..... damn pplz got same avatar .. damn i was sure it was Darkster(or something like that) who was talking.. (writing)..

anyway....
Posted: 20th Sep 2003 21:46
Moonshine, Flashingblade, StevieVee...get inside quick, it's spitting...................(go in with Auntie Janet!)
Posted: 20th Sep 2003 21:48
chiwawa: you are genius... yet you are totally of your head crazy
Posted: 21st Sep 2003 17:59
i changed of host, here the .exe or the code:
http://www.brainwasher.free-host.com