Homer's 3D engine (added the source code)
Author |
Message |
Catalyst

|
Posted: Wed May 28, 2003 7:17 pm Post subject: (No subject) |
|
|
i wasnt accusing you of copying...
i was wondering if we used the same method
mine was very similar except instead of 0,0,0 i used the camera
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Homer_simpson

|
Posted: Wed May 28, 2003 7:19 pm Post subject: (No subject) |
|
|
well in my case 0,0,0 is camera lol...
hmmm... u know what i'm thinking of... texturing...!!! but then again turing's too slow... but...it might be worth a shot what do u thinkl?
|
|
|
|
|
 |
Catalyst

|
Posted: Wed May 28, 2003 7:24 pm Post subject: (No subject) |
|
|
its worth a shot
youll prob be able to get double the fps of my psuedo textures if u do it the real way (which will leave you with a whopping 4 fps)
|
|
|
|
|
 |
JSBN

|
Posted: Wed May 28, 2003 7:29 pm Post subject: (No subject) |
|
|
u guys are rocking, this stuff blows my mind. Thx for trying to kill me
wow 4fps, don't go too fast now...
|
|
|
|
|
 |
Homer_simpson

|
Posted: Wed May 28, 2003 7:29 pm Post subject: (No subject) |
|
|
what's the real way... =/
where do u get all these tutorials from?!
|
|
|
|
|
 |
Catalyst

|
Posted: Wed May 28, 2003 7:35 pm Post subject: (No subject) |
|
|
i initialized a bunch of particles to and image to simulate a texture
the real way is to interpolate between the vertices of a quad to generate screen coors (saves a lot of overhead in rotations calcs)
|
|
|
|
|
 |
Dan

|
Posted: Wed May 28, 2003 7:40 pm Post subject: (No subject) |
|
|
if any one cares i am wroking on a 3d engion for dos c++ (Turbo C++ dos verions).
rigth now i got loading of raw files and arf with all the color wroking.
there are a lot of bugs i need to wrok out tho, dos dose not wrok great with graficks, lol.
|
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
 |
Homer_simpson

|
Posted: Wed May 28, 2003 7:43 pm Post subject: (No subject) |
|
|
dan is turbo c++ faster than turing cuz if it is i'm good at dos programming i could just translate mine in pascal or c
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Catalyst

|
Posted: Wed May 28, 2003 7:55 pm Post subject: (No subject) |
|
|
dan could you tell where to get dos c++ ( i already know c++)
|
|
|
|
|
 |
Homer_simpson

|
|
|
|
 |
Catalyst

|
Posted: Wed May 28, 2003 8:16 pm Post subject: (No subject) |
|
|
i got it working
this is so old (in a good way) it has windows made from characters
|
|
|
|
|
 |
Dan

|
Posted: Wed May 28, 2003 9:09 pm Post subject: (No subject) |
|
|
Catalyst wrote:
i got it working
this is so old (in a good way) it has windows made from characters
and this is what my school makes me use, the dam thing crashs so many times!!!!
today in school it crashed over 50 times and 10 of those rebooted my computer!
|
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
 |
Homer_simpson

|
Posted: Wed May 28, 2003 9:13 pm Post subject: (No subject) |
|
|
lol i used to use the exact same program except that it was called turbo pascal... lol it would crash if u would make an array of a big size like 1000 but i still think that that was more powerful than turing since u could create any procedure u want using assembly or other built in things...
|
|
|
|
|
 |
Homer_simpson

|
Posted: Sat May 31, 2003 12:16 am Post subject: (No subject) |
|
|
ok here's the source... and here's how it is used:
there are 5 procedures and 2 objects u should know about in order to use the engine proceudres are:
loadarf(filename) > loads arf files
loadraw(filename,number of lines) >loads raw files
moveobject(command string,amount) > does the rotating and relocating of the object
command string can be"xy","xz","yz" for rotations or "x","y","z" for relocating
movecamera(command string,amount)
does the rotating and relocating of the camera
command string can be"xy","xz","yz" for rotations or "x","y","z" for relocating
drawobject(color1,color2,method)
color1 is the fill color
color 2 is the border color
method is the way the object is drawn(shaded,colored,empty,...)
u can enter 1,2,3,4 for method
Description: |
|
 Download |
Filename: |
homer3denginesource.t |
Filesize: |
8.04 KB |
Downloaded: |
234 Time(s) |
|
|
|
|
|
 |
Homer_simpson

|
Posted: Sat May 31, 2003 12:19 am Post subject: (No subject) |
|
|
and here's what i use to convert raw to arf:
code: | proc convertarf (filename : string, lines : int)
var file, file2 : int
var x1, y1, z1, x2, y2, z2, x3, y3, z3 : real
var col : int := 16
open : file, filename + ".raw", get
open : file2, filename + ".arf", write
for i : 1 .. lines
get : file, x1, y1, z1, x2, y2, z2, x3, y3, z3
if i mod (lines div 14) = 0 then
col += 1
end if
write : file2, x1, y1, z1, x2, y2, z2, x3, y3, z3, col
locate (1, 1)
put col
locate (2, 1)
put i
end for
end convertarf
var filet:string
put "Enter the name and address of the raw file to be converted to arf(no extention ex: c:/spike not c:/spike.raw): "..
get filet
convertarf (filet, 264)
put "done"
|
|
|
|
|
|
 |
|
|