Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Homer's 3D engine (added the source code)
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2, 3  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Catalyst




PostPosted: 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
Sponsor
sponsor
Homer_simpson




PostPosted: 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




PostPosted: 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




PostPosted: 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 Smile
wow 4fps, don't go too fast now... Laughing
Homer_simpson




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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
Sponsor
sponsor
Catalyst




PostPosted: 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




PostPosted: Wed May 28, 2003 8:02 pm   Post subject: (No subject)

i think this is the one he's using
http://www.programmersheaven.com/search/Download.asp?FileID=6619
edited
or maybe this is the one
http://community.borland.com/article/0,1410,21751,00.html
Catalyst




PostPosted: Wed May 28, 2003 8:16 pm   Post subject: (No subject)

Very Happy
i got it working
this is so old (in a good way) it has windows made from characters
Dan




PostPosted: Wed May 28, 2003 9:09 pm   Post subject: (No subject)

Catalyst wrote:
Very Happy
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




PostPosted: 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




PostPosted: 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



homer3denginesource.t
 Description:

Download
 Filename:  homer3denginesource.t
 Filesize:  8.04 KB
 Downloaded:  235 Time(s)

Homer_simpson




PostPosted: 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"
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 3  [ 45 Posts ]
Goto page Previous  1, 2, 3  Next
Jump to:   


Style:  
Search: