Home
Login
Register
Chat
»
yourewinner.com
»
General Forums
»
BROTRR Discussion
»
Big Rigs Online
»
Me Working on the Game
Me Working on the Game
Pages:
1
[
2
]
3
4
5
Go Down
#16
30-07-2009, 18:53:34 PM
image usernames
Posts:
3370
Rigcoins: 539101.00
Send Money to Maraakate
Maraakate Olsen
ban rex
Full House
+
"Banned Members"
Channel the
within!
Sergey, what do you think of my
gamespot review of BR?
I think you're WINNER !
~Sergey Titov
(\_/) Hi! I'm Bunny ^.^
(^.^) Copy and paste us to your siggy so we can
(")(") achieve WORLD DOMINATION!
#17
30-07-2009, 18:58:10 PM
CAPTAIN SHIKINAMI
Posts:
11402
Rigcoins: 0.00
Send Money to O-ZONE
A Real American
+
"james broun got the sauce"
Quote from: Maraakate on 30-07-2009, 18:53:34 PM
Channel the
within!
yes!!
#18
30-07-2009, 19:02:45 PM
Administrator
Posts:
4750
Rigcoins: 16.90
Send Money to Thunder
Annoying
Rapist
Rude
+
I am not yet a master of
, and therefore cannot understand the meaning of the messages
gives me.
1x
View who rated this post
YOU'RE THUNDER
#19
30-07-2009, 19:04:07 PM
image usernames
Posts:
3370
Rigcoins: 539101.00
Send Money to Maraakate
Maraakate Olsen
ban rex
Full House
+
"Banned Members"
Sergey, what do you think of my
gamespot review of BR?
I think you're WINNER !
~Sergey Titov
(\_/) Hi! I'm Bunny ^.^
(^.^) Copy and paste us to your siggy so we can
(")(") achieve WORLD DOMINATION!
#20
30-07-2009, 19:05:33 PM
Administrator
Posts:
4750
Rigcoins: 16.90
Send Money to Thunder
Annoying
Rapist
Rude
+
But I will try!
1x
View who rated this post
YOU'RE THUNDER
#21
30-07-2009, 20:11:52 PM
forum's girl mascot
Posts:
3742
Rigcoins: 9634722.71
Send Money to Svetlana
Dust II Owns
Girl
Portuguese
+
"what do you mean it's not 1986"
dude, it's simple axis inversion
what the fetch man
i should be making BRO
i wwebsite as on the internet
#22
30-07-2009, 20:23:41 PM
- Last Edit: 30-07-2009, 20:28:00 PM
Administrator
Posts:
4750
Rigcoins: 16.90
Send Money to Thunder
Annoying
Rapist
Rude
+
Hmm... I think the problem goes deeper than that. For one thing, I'm not even sure of where to check for collision. I'll have to check the tutorial.
1x
View who rated this post
YOU'RE THUNDER
#23
30-07-2009, 20:27:12 PM
CAPTAIN SHIKINAMI
Posts:
11402
Rigcoins: 0.00
Send Money to O-ZONE
A Real American
+
"james broun got the sauce"
i do believe syniphas is a designer of sorts
criticism really isn't your thing is it
#24
30-07-2009, 20:28:45 PM
Administrator
Posts:
4750
Rigcoins: 16.90
Send Money to Thunder
Annoying
Rapist
Rude
+
I edited it once I realized what he was talking about.
YOU'RE THUNDER
#25
30-07-2009, 20:29:06 PM
CAPTAIN SHIKINAMI
Posts:
11402
Rigcoins: 0.00
Send Money to O-ZONE
A Real American
+
"james broun got the sauce"
#26
30-07-2009, 21:14:30 PM
Administrator
Posts:
4750
Rigcoins: 16.90
Send Money to Thunder
Annoying
Rapist
Rude
+
Now, I think I've found the bug, but I'm far from fixing it. The problem is not in the formula, it's in how the mesh normals are read. What are mesh normals? They're the "normal" points in a 3D mesh (model). They determine which direction the polygons face. There is one normal for every polygon. If one can get the normal, then one can use that information to find the angle of the polygon.
Now, these "normals" can be read one dimension at a time. X,Y,Z. The number for each dimension returns how far away the normal is from the actual polygon itself, on that axis. I know, it sounds a little backwards, but that's just how it works. By default, if each normal is represented as a line, then that line is exactly 1 unit long. So, if it's sticking straight up in the air, then that normal reads 0,1,0. If it's to the side on the X axis, it reads 1,0,0. If it's at a 45 degree angle, it might read .5,.5,0. Each "normal" dimension has its own command to return the value. The commands are:
getCollisionNormalX()
getCollisionNormalY()
getCollisionNormalZ()
Given that, how might one make a function (subroutine) to get the angle of the polygon on each axis? Well, to start with, all dimensions but the one you need the angle for are used to find the angle on that axis. (You need X and Y to get Z or X and Z to get Y.) Now, since each normal dimension is a distance, then that saves us some work. There is a function in DarkBASIC called atanfull() that gets the degree angle based on two lengths. Hmm... Does that mean that x#=atanfull(getCollisionNormalY(),getCollisionNormalZ())? Well, it should. The only problem is that the rotation seems to be different from what we want by about 90 degrees or so.
YOU'RE THUNDER
#27
30-07-2009, 21:16:41 PM
forum's girl mascot
Posts:
3742
Rigcoins: 9634722.71
Send Money to Svetlana
Dust II Owns
Girl
Portuguese
+
"what do you mean it's not 1986"
dude there is no collision in bigrigs why are you trying to ruin it
i wwebsite as on the internet
#28
30-07-2009, 21:24:34 PM
Administrator
Posts:
4750
Rigcoins: 16.90
Send Money to Thunder
Annoying
Rapist
Rude
+
Quote from: Syniphas on 30-07-2009, 21:16:41 PM
dude there is no collision in bigrigs why are you trying to ruin it
Technically, it's not collision. It's raycasting. Without it, you could drive through the hills too, nobody wants that.
YOU'RE THUNDER
#29
30-07-2009, 21:51:42 PM
Administrator
Posts:
4750
Rigcoins: 16.90
Send Money to Thunder
Annoying
Rapist
Rude
+
UPDATE: Well, I kind of fixed it (kind of). I was able to fix rotation along the X axis, anyways, and just by flipping some values. Now it resembles BROTRR a little more.
YOU'RE THUNDER
ANDMILLIONAIRE
#30
30-07-2009, 23:36:06 PM
WINNERS
Posts:
5299
Rigcoins: 1196.40
Send Money to ANDMILLIONAIRE
MONEY
Ballin'
Active Members
+
Too bad Khalad is still leagues ahead
0 Members and 1 Guest are viewing this topic.
Pages:
1
[
2
]
3
4
5
Go Up
»
yourewinner.com
»
General Forums
»
BROTRR Discussion
»
Big Rigs Online
»
Me Working on the Game