Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 801 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
OBB gives me a headache #417436
02/12/13 17:08
02/12/13 17:08
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
WTF is wrong with it.. It makes me go crazy with it's nuts collusions!

Situation:
Quote:
Passing throw fucking door #1:

Passing throw fucking door #2:



Things that I'm aware from:
- player's bounding box doesn't touch the ground
- player's bounding box changed manually, but it's X and Y are symmetrical
- door has "c_setminmax(my)" with "wait(1);" at the beggining
- door has POLYGON flag on!

SO WHAT THE FUCK IS WRONG WITH THE DOOR??
When I open it into opposite direction (pan > 0), the collusions are OK! But when pan goes under the 0, it goes crazy like this, what am I doing wrong?


Edit: if demo is needed, I can upload! door rotates via "c_rotate"!

Last edited by 3run; 02/12/13 17:31.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: OBB gives me a headache [Re: 3run] #417437
02/12/13 17:57
02/12/13 17:57
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Haha although I can understrand your frustration I suggest you try to approach (movement) coding without anger and fury but with patience and an analytical spirit of research. Movement codes are, despite the common believe, a non-trivial thing and won't simply work just using c_move (or any other movement function in another engine) and a few lines of code and a few minutes of work. Normally they need months of work until they function properly and smoothly.

Regarding your problem: A demo would be nice.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: OBB gives me a headache [Re: Superku] #417438
02/12/13 17:59
02/12/13 17:59
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
I am trying to figure out what is going wrong but it is hard to understand what is going on in the pictures


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: OBB gives me a headache [Re: Carlos3DGS] #417440
02/12/13 18:41
02/12/13 18:41
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Please notice, that door can even disappears, because player can pass inside of it:
Quote:
The door is visible:

The Door is gone!!!


Last edited by 3run; 02/12/13 19:16. Reason: removed the link

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: OBB gives me a headache [Re: 3run] #417441
02/12/13 19:07
02/12/13 19:07
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Add
my.min_x = -10;
my.max_x = 10;
in your door action after c_setminmax and it works like a charm. Remember, you are working with ellipsoids, not boxes, the blue boxes drawn by F11/ default.c will thus normally overlap all the time.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: OBB gives me a headache [Re: Superku] #417442
02/12/13 19:19
02/12/13 19:19
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Yes, it works, thank you man. So to make things clear, I better don't use thin bounding boxes models?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: OBB gives me a headache [Re: 3run] #417445
02/12/13 19:35
02/12/13 19:35
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Hm I don't think there is or should be a general rule to not use thin models (/ bounding boxes), I think it always depends on the situation. In first person games you have to take a little special care because your camera is not a single point but a/ the near clip plane. If your player model/ bounding box is rather thin you thus may be able to look through a wall/ door if you stand really close to it and if it is somewhat parallel to the view direction.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: OBB gives me a headache [Re: Superku] #417475
02/13/13 06:18
02/13/13 06:18
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Superku@ things getting more clear now, thank you man, I appreciate your help.

Edit: one more question, related to collusion with doors. when you walk towards the corners of the door:

Movement gets jerking, why is that? Shouldn't POLYGON fix this kind of collusion problems with models?
I can see that there is that pit, on the edges, where player gets stuck. But he is like bouncing when I walk towards it?

I would really appreciate, if someone could give me some explanation about this issue as well.


Edit2: I could fix this problem by making the door slightly thicker, so that pit differences between wall and door a is gone, but it doesn't really look good, as door become giant! grin

Last edited by 3run; 02/13/13 07:16. Reason: ***

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: OBB gives me a headache [Re: 3run] #417495
02/13/13 11:40
02/13/13 11:40
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
mabe you could keep the door itself thin but make the collision hull bigger? (just an idea, but I don't think that would work if you use the polygon flag)


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: OBB gives me a headache [Re: Carlos3DGS] #417497
02/13/13 11:50
02/13/13 11:50
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Carlos3DGS@ I have a workaround, like making INVISIBLE bounding box and parent PASSABLE visual model. But I wanted to hear something faster than my solution laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1