Computer Science Canada

===[3d Engine]===

Author:  Catalyst [ Sat Mar 22, 2003 1:14 pm ]
Post subject:  ===[3d Engine]===

This is and older version of my engine, no vsd,lights,or multicolored polys

file attached

MOD Edit: WOOT! I'd have to check out the content later today when I get time, but SWEET. +50Bits - Tony... Hey, this stuff is hard and I feel that Catalyst deserves those bits

Author:  Catalyst [ Sat Mar 22, 2003 1:17 pm ]
Post subject: 

Save this as a .raw file then u can use it in the engine

code:

43.192365 -34.369162 -23.698055 36.174815 -4.331352 17.209924 1.282387 -27.901628 8.622069
1.282387 -27.901628 8.622069 27.317606 -34.521445 -69.495376 43.192365 -34.369162 -23.698055
36.174815 -4.331352 17.209924 18.499341 -14.329679 107.343539 -11.250151 -32.585656 100.906724
-11.250151 -32.585656 100.906724 1.282387 -27.901628 8.622069 36.174815 -4.331352 17.209924
51.428504 5.928594 -53.955216 30.575214 13.841933 -96.665600 21.561741 44.352577 29.378857
-0.758652 51.422844 19.622812 21.561741 44.352577 29.378857 30.575214 13.841933 -96.665600
21.561741 44.352577 29.378857 -0.758652 51.422844 19.622812 -11.126877 21.439411 97.011040
-11.126877 21.439411 97.011040 8.608598 21.583501 99.633727 21.561741 44.352577 29.378857
58.634193 -17.916767 -53.045269 31.843497 -1.345764 -117.976439 30.575214 13.841933 -96.665600
-15.717810 -2.777397 132.887839 -0.992101 -3.088202 137.023219 -18.189084 5.866996 151.009041
158.109148 -39.848069 158.016571 179.316581 -26.789903 88.810293 170.474961 -2.149327 100.850017
58.634193 -17.916767 -53.045269 44.504425 19.125407 0.838915 36.174815 -4.331352 17.209924
18.499341 -14.329679 107.343539 36.174815 -4.331352 17.209924 134.200688 -23.814241 97.160704
134.200688 -23.814241 97.160704 121.093101 -20.028409 134.096978 18.499341 -14.329679 107.343539
34.591551 33.687279 27.035141 130.700051 -15.672996 137.478891 143.459297 -8.804177 102.578480
130.700051 -15.672996 137.478891 34.591551 33.687279 27.035141 19.655703 13.124489 97.133730
143.459297 -8.804177 102.578480 144.936354 -3.704615 70.687241 34.591551 33.687279 27.035141
121.093101 -20.028409 134.096978 134.200688 -23.814241 97.160704 160.712739 -40.351954 90.627506
160.712739 -40.351954 90.627506 144.291612 -52.796890 152.630252 121.093101 -20.028409 134.096978
143.459297 -8.804177 102.578480 130.700051 -15.672996 137.478891 154.152987 -14.593544 162.865939
154.152987 -14.593544 162.865939 170.474961 -2.149327 100.850017 143.459297 -8.804177 102.578480
170.474961 -2.149327 100.850017 179.316581 -26.789903 88.810293 186.477890 -8.334808 25.557791
134.200688 -23.814241 97.160704 144.936354 -3.704615 70.687241 179.182590 -2.906474 24.739770
160.712739 -40.351954 90.627506 134.200688 -23.814241 97.160704 179.182590 -2.906474 24.739770
143.459297 -8.804177 102.578480 170.474961 -2.149327 100.850017 179.182590 -2.906474 24.739770
-11.250151 -32.585656 100.906724 18.499341 -14.329679 107.343539 -1.067721 -25.819376 122.747592
-1.067721 -25.819376 122.747592 -14.253599 -26.332060 123.163842 -11.250151 -32.585656 100.906724
8.608598 21.583501 99.633727 -11.126877 21.439411 97.011040 -18.189084 5.866996 151.009041
-18.189084 5.866996 151.009041 -5.001925 6.381593 150.583045 8.608598 21.583501 99.633727
18.499341 -14.329679 107.343539 21.326110 -3.534786 122.524658 -0.992101 -3.088202 137.023219
19.655703 13.124489 97.133730 21.326110 -3.534786 122.524658 121.163432 -16.559976 156.910055
144.291612 -52.796890 152.630252 158.109148 -39.848069 158.016571 135.462661 -39.092656 190.226780
121.093101 -20.028409 134.096978 144.291612 -52.796890 152.630252 126.094594 -33.131896 189.035318
154.152987 -14.593544 162.865939 130.700051 -15.672996 137.478891 126.094594 -33.131896 189.035318
130.700051 -15.672996 137.478891 121.163432 -16.559976 156.910055 126.094594 -33.131896 189.035318
58.634193 -17.916767 -53.045269 43.192365 -34.369162 -23.698055 31.843497 -1.345764 -117.976439
43.192365 -34.369162 -23.698055 27.317606 -34.521445 -69.495376 31.843497 -1.345764 -117.976439
30.575214 13.841933 -96.665600 51.428504 5.928594 -53.955216 58.634193 -17.916767 -53.045269
-5.001925 6.381593 150.583045 -18.189084 5.866996 151.009041 -0.992101 -3.088202 137.023219
158.109148 -39.848069 158.016571 144.291612 -52.796890 152.630252 179.316581 -26.789903 88.810293
144.291612 -52.796890 152.630252 160.712739 -40.351954 90.627506 179.316581 -26.789903 88.810293
170.474961 -2.149327 100.850017 154.152987 -14.593544 162.865939 158.109148 -39.848069 158.016571
36.174815 -4.331352 17.209924 43.192365 -34.369162 -23.698055 58.634193 -17.916767 -53.045269
58.634193 -17.916767 -53.045269 51.428504 5.928594 -53.955216 44.504425 19.125407 0.838915
51.428504 5.928594 -53.955216 34.591551 33.687279 27.035141 44.504425 19.125407 0.838915
34.591551 33.687279 27.035141 144.936354 -3.704615 70.687241 44.504425 19.125407 0.838915
144.936354 -3.704615 70.687241 36.174815 -4.331352 17.209924 44.504425 19.125407 0.838915
134.200688 -23.814241 97.160704 36.174815 -4.331352 17.209924 144.936354 -3.704615 70.687241
179.316581 -26.789903 88.810293 160.712739 -40.351954 90.627506 186.477890 -8.334808 25.557791
160.712739 -40.351954 90.627506 179.182590 -2.906474 24.739770 186.477890 -8.334808 25.557791
179.182590 -2.906474 24.739770 170.474961 -2.149327 100.850017 186.477890 -8.334808 25.557791
144.936354 -3.704615 70.687241 143.459297 -8.804177 102.578480 179.182590 -2.906474 24.739770
21.326110 -3.534786 122.524658 19.655703 13.124489 97.133730 -0.992101 -3.088202 137.023219
19.655703 13.124489 97.133730 -5.001925 6.381593 150.583045 -0.992101 -3.088202 137.023219
-1.067721 -25.819376 122.747592 18.499341 -14.329679 107.343539 -0.992101 -3.088202 137.023219
130.700051 -15.672996 137.478891 19.655703 13.124489 97.133730 121.163432 -16.559976 156.910055
21.326110 -3.534786 122.524658 18.499341 -14.329679 107.343539 121.163432 -16.559976 156.910055
18.499341 -14.329679 107.343539 121.093101 -20.028409 134.096978 121.163432 -16.559976 156.910055
158.109148 -39.848069 158.016571 154.152987 -14.593544 162.865939 135.462661 -39.092656 190.226780
154.152987 -14.593544 162.865939 126.094594 -33.131896 189.035318 135.462661 -39.092656 190.226780
126.094594 -33.131896 189.035318 144.291612 -52.796890 152.630252 135.462661 -39.092656 190.226780
121.163432 -16.559976 156.910055 121.093101 -20.028409 134.096978 126.094594 -33.131896 189.035318
51.428504 5.928594 -53.955216 21.561741 44.352577 29.378857 34.591551 33.687279 27.035141
19.655703 13.124489 97.133730 34.591551 33.687279 27.035141 21.561741 44.352577 29.378857
21.561741 44.352577 29.378857 8.608598 21.583501 99.633727 19.655703 13.124489 97.133730
-5.001925 6.381593 150.583045 19.655703 13.124489 97.133730 8.608598 21.583501 99.633727
-1.067721 -25.819376 122.747592 -0.992101 -3.088202 137.023219 -14.253599 -26.332060 123.163842
-0.992101 -3.088202 137.023219 -15.717810 -2.777397 132.887839 -14.253599 -26.332060 123.163842
-0.094345 13.618016 -100.741337 -0.758652 51.422844 19.622812 30.575214 13.841933 -96.665600
31.843497 -1.345764 -117.976439 -0.094345 13.618016 -100.741337 30.575214 13.841933 -96.665600
4.464918 -1.545657 -121.614818 -0.094345 13.618016 -100.741337 31.843497 -1.345764 -117.976439
-3.351954 -34.745358 -73.571116 4.464918 -1.545657 -121.614818 31.843497 -1.345764 -117.976439
27.317606 -34.521445 -69.495376 -3.351954 -34.745358 -73.571116 31.843497 -1.345764 -117.976439
1.282387 -27.901628 8.622069 -3.351954 -34.745358 -73.571116 27.317606 -34.521445 -69.495376
-36.930548 -4.865087 7.494809 -30.636618 -34.908179 -33.509333 1.282387 -27.901628 8.622069
-3.351954 -34.745358 -73.571116 1.282387 -27.901628 8.622069 -30.636618 -34.908179 -33.509333
-41.907990 -14.770709 99.315891 -36.930548 -4.865087 7.494809 -11.250151 -32.585656 100.906724
1.282387 -27.901628 8.622069 -11.250151 -32.585656 100.906724 -36.930548 -4.865087 7.494809
-0.094345 13.618016 -100.741337 -31.262336 5.324881 -64.944164 -26.454857 44.002013 22.997840
-26.454857 44.002013 22.997840 -0.758652 51.422844 19.622812 -0.094345 13.618016 -100.741337
-0.758652 51.422844 19.622812 -26.454857 44.002013 22.997840 -11.126877 21.439411 97.011040
-30.863341 21.295318 94.388221 -11.126877 21.439411 97.011040 -26.454857 44.002013 22.997840
4.464918 -1.545657 -121.614818 -38.112706 -18.623107 -65.902153 -0.094345 13.618016 -100.741337
-30.997514 -3.307265 133.035734 -15.717810 -2.777397 132.887839 -18.189084 5.866996 151.009041
-191.617124 -26.666088 40.154411 -188.929169 -39.815733 112.504531 -185.052182 -2.458056 53.949580
-41.041240 18.500847 -10.529416 -38.112706 -18.623107 -65.902153 -36.930548 -4.865087 7.494809
-36.930548 -4.865087 7.494809 -41.907990 -14.770709 99.315891 -149.872995 -26.738148 59.294110
-146.935029 -22.444419 98.439425 -149.872995 -26.738148 59.294110 -41.907990 -14.770709 99.315891
-155.453794 -17.758322 99.277426 -38.513812 33.153545 17.320027 -158.753354 -11.035153 62.247622
-38.513812 33.153545 17.320027 -155.453794 -17.758322 99.277426 -40.751630 12.683465 89.106082
-152.815866 -6.345129 30.975363 -158.753354 -11.035153 62.247622 -38.513812 33.153545 17.320027
-149.872995 -26.738148 59.294110 -146.935029 -22.444419 98.439425 -174.498839 -41.457120 46.518782
-174.766260 -53.789827 110.697935 -174.498839 -41.457120 46.518782 -146.935029 -22.444419 98.439425
-155.453794 -17.758322 99.277426 -158.753354 -11.035153 62.247622 -185.315783 -14.785031 118.099543
-185.052182 -2.458056 53.949580 -185.315783 -14.785031 118.099543 -158.753354 -11.035153 62.247622
-191.617124 -26.666088 40.154411 -185.052182 -2.458056 53.949580 -181.944933 -8.986252 -22.971602
-152.815866 -6.345129 30.975363 -149.872995 -26.738148 59.294110 -174.446863 -4.087412 -21.969421
-149.872995 -26.738148 59.294110 -174.498839 -41.457120 46.518782 -174.446863 -4.087412 -21.969421
-185.052182 -2.458056 53.949580 -158.753354 -11.035153 62.247622 -174.446863 -4.087412 -21.969421
-41.907990 -14.770709 99.315891 -11.250151 -32.585656 100.906724 -26.880112 -26.007834 119.317335
-14.253599 -26.332060 123.163842 -26.880112 -26.007834 119.317335 -11.250151 -32.585656 100.906724
-11.126877 21.439411 97.011040 -30.863341 21.295318 94.388221 -18.189084 5.866996 151.009041
-30.814314 6.193138 147.152791 -18.189084 5.866996 151.009041 -30.863341 21.295318 94.388221
-48.755910 -4.046450 113.211320 -41.907990 -14.770709 99.315891 -30.997514 -3.307265 133.035734
-48.755910 -4.046450 113.211320 -40.751630 12.683465 89.106082 -152.068517 -23.349840 119.658284
-188.929169 -39.815733 112.504531 -174.766260 -53.789827 110.697935 -175.057699 -40.001311 149.330598
-174.766260 -53.789827 110.697935 -146.935029 -22.444419 98.439425 -165.452754 -34.710644 150.398965
-155.453794 -17.758322 99.277426 -185.315783 -14.785031 118.099543 -165.452754 -34.710644 150.398965
-152.068517 -23.349840 119.658284 -155.453794 -17.758322 99.277426 -165.452754 -34.710644 150.398965
-30.636618 -34.908179 -33.509333 -38.112706 -18.623107 -65.902153 4.464918 -1.545657 -121.614818
-3.351954 -34.745358 -73.571116 -30.636618 -34.908179 -33.509333 4.464918 -1.545657 -121.614818
-31.262336 5.324881 -64.944164 -0.094345 13.618016 -100.741337 -38.112706 -18.623107 -65.902153
-18.189084 5.866996 151.009041 -30.814314 6.193138 147.152791 -30.997514 -3.307265 133.035734
-174.766260 -53.789827 110.697935 -188.929169 -39.815733 112.504531 -191.617124 -26.666088 40.154411
-174.498839 -41.457120 46.518782 -174.766260 -53.789827 110.697935 -191.617124 -26.666088 40.154411
-185.315783 -14.785031 118.099543 -185.052182 -2.458056 53.949580 -188.929169 -39.815733 112.504531
-30.636618 -34.908179 -33.509333 -36.930548 -4.865087 7.494809 -38.112706 -18.623107 -65.902153
-31.262336 5.324881 -64.944164 -38.112706 -18.623107 -65.902153 -41.041240 18.500847 -10.529416
-38.513812 33.153545 17.320027 -31.262336 5.324881 -64.944164 -41.041240 18.500847 -10.529416
-152.815866 -6.345129 30.975363 -38.513812 33.153545 17.320027 -41.041240 18.500847 -10.529416
-36.930548 -4.865087 7.494809 -152.815866 -6.345129 30.975363 -41.041240 18.500847 -10.529416
-36.930548 -4.865087 7.494809 -149.872995 -26.738148 59.294110 -152.815866 -6.345129 30.975363
-174.498839 -41.457120 46.518782 -191.617124 -26.666088 40.154411 -181.944933 -8.986252 -22.971602
-174.446863 -4.087412 -21.969421 -174.498839 -41.457120 46.518782 -181.944933 -8.986252 -22.971602
-185.052182 -2.458056 53.949580 -174.446863 -4.087412 -21.969421 -181.944933 -8.986252 -22.971602
-158.753354 -11.035153 62.247622 -152.815866 -6.345129 30.975363 -174.446863 -4.087412 -21.969421
-40.751630 12.683465 89.106082 -48.755910 -4.046450 113.211320 -30.997514 -3.307265 133.035734
-30.814314 6.193138 147.152791 -40.751630 12.683465 89.106082 -30.997514 -3.307265 133.035734
-41.907990 -14.770709 99.315891 -26.880112 -26.007834 119.317335 -30.997514 -3.307265 133.035734
-40.751630 12.683465 89.106082 -155.453794 -17.758322 99.277426 -152.068517 -23.349840 119.658284
-41.907990 -14.770709 99.315891 -48.755910 -4.046450 113.211320 -152.068517 -23.349840 119.658284
-146.935029 -22.444419 98.439425 -41.907990 -14.770709 99.315891 -152.068517 -23.349840 119.658284
-185.315783 -14.785031 118.099543 -188.929169 -39.815733 112.504531 -175.057699 -40.001311 149.330598
-165.452754 -34.710644 150.398965 -185.315783 -14.785031 118.099543 -175.057699 -40.001311 149.330598
-174.766260 -53.789827 110.697935 -165.452754 -34.710644 150.398965 -175.057699 -40.001311 149.330598
-146.935029 -22.444419 98.439425 -152.068517 -23.349840 119.658284 -165.452754 -34.710644 150.398965
-26.454857 44.002013 22.997840 -31.262336 5.324881 -64.944164 -38.513812 33.153545 17.320027
-38.513812 33.153545 17.320027 -40.751630 12.683465 89.106082 -26.454857 44.002013 22.997840
-30.863341 21.295318 94.388221 -26.454857 44.002013 22.997840 -40.751630 12.683465 89.106082
-40.751630 12.683465 89.106082 -30.814314 6.193138 147.152791 -30.863341 21.295318 94.388221
-30.997514 -3.307265 133.035734 -26.880112 -26.007834 119.317335 -14.253599 -26.332060 123.163842
-15.717810 -2.777397 132.887839 -30.997514 -3.307265 133.035734 -14.253599 -26.332060 123.163842

Author:  Crono [ Sun May 11, 2003 4:08 pm ]
Post subject: 

just wondering, how do u use the 3d engine??? i'm so lost, lol, could u briefly explain how it works?

Author:  hello [ Sun May 11, 2003 4:55 pm ]
Post subject:  how do u save it

ok i saved it as .raw file but wat do u call it

Author:  Dan [ Sun May 11, 2003 5:55 pm ]
Post subject: 

if i rember right it is in a class for info of using class go here: http://www.compsci.ca/bbs/viewtopic.php?t=606

Author:  Crono [ Sun May 11, 2003 7:19 pm ]
Post subject: 

o, i have no problems using classes, it's a piece of cake, but i'm wonderin how to use the various procs n fcns in Catalyst's 3d engine, to begin wit, i dun even get the logic, lol, i'm so bad wit 3d...

Author:  Catalyst [ Sun May 11, 2003 7:22 pm ]
Post subject: 

Load - loads a raw file
SetLineColor, SetTransparent... etc. - Set up color/graphics settings
TranslateX,TranslateY,TranslateZ - Move the object along one of those axes
RotateXY,RotateXZ,RotateYZ - Roate the object around one of those axes

Author:  Homer_simpson [ Sun May 11, 2003 10:21 pm ]
Post subject: 

this should give u an idea how it works... add this code under "end Engine3D"
code:
var s := ""
put "enter the raw file name :" ..
get s
View.Set ("offscreenonly,position:top;left")
colorback (16)
cls
var ship : ^Engine3D
new Engine3D, ship
ship -> load (s, 140)
var i := 0
loop
    i += 1
    ship -> rotateXZ (i)
    ship -> redraw
    View.Update
    cls
    exit when i >= 50
end loop
i := 0
loop
    i += 1
    ship -> rotateYZ (i)
    ship -> redraw
    View.Update
    cls
    exit when i >= 50
end loop
i := 0
loop
    i += 1
    ship -> rotateXY (i)
    ship -> redraw
    View.Update
    cls
    exit when i >= 50
end loop
i := 0
loop
    i += 1
    ship -> translateZ (-i)
    ship -> translateX (-i)
    ship -> translateY (-i)
    ship -> redraw
    View.Update
    cls
    exit when i >= 50
end loop

just save the raw file with any name u want and enter it in the program

Author:  Catalyst [ Sun May 11, 2003 10:25 pm ]
Post subject: 

the load line should be diff

code:

ship -> load (s, 1000)



if u set below how many lines there are it will only load that many
but if u go higher it will cap off at the total num of lines

Author:  Homer_simpson [ Sun May 11, 2003 10:39 pm ]
Post subject: 

no it wont it will just give u an error....

Author:  Catalyst [ Sun May 11, 2003 10:42 pm ]
Post subject: 

sorry i was thinking of my uptodate version

Author:  Homer_simpson [ Sun May 11, 2003 10:46 pm ]
Post subject: 

i knew you were...
no seriously something told me that you were thinking of the updated version...

Author:  PHP God [ Sat May 24, 2003 6:48 pm ]
Post subject: 

I ran it and nothing happened. Confused

Author:  Homer_simpson [ Sat May 24, 2003 7:40 pm ]
Post subject: 

lol
you dont run a class you use it to create a program try adding the demo (mentioned above) at the end of the class and see what'll happen...

Author:  Crono [ Sun Jun 01, 2003 9:23 pm ]
Post subject: 

i have a huge question, i think, how do u make those .raw files? do u use 3dsmax or something???

Author:  Catalyst [ Sun Jun 01, 2003 9:33 pm ]
Post subject: 

i converted 3ds files

Author:  Martin [ Mon Jun 02, 2003 9:06 am ]
Post subject: 

How do you convert 3ds files?

Author:  Catalyst [ Mon Jun 02, 2003 2:27 pm ]
Post subject: 

i use a converter called crossroads

Author:  Crono [ Mon Jun 02, 2003 9:12 pm ]
Post subject: 

catalyst u live in windsor, which skoo do u goto???
man, if u end up in 1 of my classes or sumtin, i'm just gonna laugh my bum off...lol

Author:  Catalyst [ Mon Jun 02, 2003 9:19 pm ]
Post subject: 

Belle River High School (not exactly windsor Laughing )

Author:  Homer_simpson [ Mon Jun 02, 2003 9:19 pm ]
Post subject: 

i dont understand...?! why would u laugh when u see catalyst?!

Author:  ¿§¥JÃ¥mës¥§¿ [ Fri Oct 03, 2003 11:37 am ]
Post subject:  ????

Yah I have the same question! How do you make .raw files? He asked his qustion in June and nobody anwered so I'm asking again? How do you make a .raw file!!! Confused

Author:  Catalyst [ Fri Oct 03, 2003 3:16 pm ]
Post subject: 

i think 3ds max saves to them
also there is a program called Crossroads3d that converts to and
from a bunch of formats that i use

Author:  Kuntzy [ Tue Jan 06, 2004 7:16 pm ]
Post subject: 

If you wanna see his file on the engine, just rename the file, and use the extention .raw instead of what ever. My file now appears under a Adobe potoshop picture, which i find weird.

Author:  MyPistolsIn3D [ Thu Apr 29, 2004 12:51 pm ]
Post subject:  amazing

Dude, that thing is amazing. Shocked . I had no idea that kinda thing was even possible in turing. Mad props to ya.

Author:  anywho_ya [ Tue May 04, 2004 2:13 pm ]
Post subject: 

Ya funny thing bout belle river ... it sucks ... lol ... yo cataylst i need help with my worm/gravity game do u think u can hook me up? plz? Wink


: