|
Author
|
Topic: Hit Detection AGAIN!
|
wakeup tailgunner Pilot
|
posted 01-07- 04:35 PM
O.K. I've read the posts, read the old posts tinkered with poly flags and still no dice!I made a fuel tank set for the B17..... the properties look like this: (obDamage (obHits 164 obKillDelay 120 obExplodes .5 30 onDmg 2 (obSmokeTrail (smkDiameter 6 smkLifetime 120 smkDensity .8 )) onDmg 10 (obDetach))) (onDetach (obKillDelay 240)) (obFuel (CapacityGal 215 Type 'Main)) (plus ( phyRelDensity 0.050000 phyBoxInertia 8.000000,10.000000,3.000000 phyCG 0.038387,-0.030658,-0.200494 )) which means it has obHits, and physical properties. the lod data looks like: 1 LODShape 1 10000.000000 24 -3.345427513 -5.947425842 -1.345517397 -0.3333333433 -0.3333333433 -0.3333333433 1.000000000 0.0000000000 -3.345427513 5.947425842 -1.345517397 -0.3333333433 0.3333333433 -0.3333333433 1.000000000 1.000000000 3.345427513 5.947425842 -1.345517397 0.3333333433 0.3333333433 -0.3333333433 0.0000000000 1.000000000 3.345427513 -5.947425842 -1.345517397 0.3333333433 -0.3333333433 -0.3333333433 0.0000000000 0.0000000000 3.345427513 5.947425842 1.345517397 0.3333333433 0.3333333433 0.3333333433 0.0000000000 1.000000000 3.345427513 -5.947425842 1.345517397 0.3333333433 -0.3333333433 0.3333333433 0.0000000000 0.0000000000 3.345427513 -5.947425842 -1.345517397 0.3333333433 -0.3333333433 -0.3333333433 1.000000000 0.0000000000 3.345427513 5.947425842 -1.345517397 0.3333333433 0.3333333433 -0.3333333433 1.000000000 1.000000000 3.345427513 -5.947425842 1.345517397 0.3333333433 -0.3333333433 0.3333333433 1.000000000 0.0000000000 3.345427513 5.947425842 1.345517397 0.3333333433 0.3333333433 0.3333333433 1.000000000 1.000000000 -3.345427513 5.947425842 1.345517397 -0.3333333433 0.3333333433 0.3333333433 0.0000000000 1.000000000 -3.345427513 -5.947425842 1.345517397 -0.3333333433 -0.3333333433 0.3333333433 0.0000000000 0.0000000000 -3.345427513 -5.947425842 1.345517397 -0.3333333433 -0.3333333433 0.3333333433 1.000000000 0.0000000000 -3.345427513 5.947425842 1.345517397 -0.3333333433 0.3333333433 0.3333333433 1.000000000 1.000000000 -3.345427513 5.947425842 -1.345517397 -0.3333333433 0.3333333433 -0.3333333433 0.0000000000 1.000000000 -3.345427513 -5.947425842 -1.345517397 -0.3333333433 -0.3333333433 -0.3333333433 0.0000000000 0.0000000000 -3.345427513 5.947425842 -1.345517397 -0.3333333433 0.3333333433 -0.3333333433 0.0000000000 0.0000000000 -3.345427513 5.947425842 1.345517397 -0.3333333433 0.3333333433 0.3333333433 1.000000000 0.0000000000 3.345427513 5.947425842 1.345517397 0.3333333433 0.3333333433 0.3333333433 1.000000000 1.000000000 3.345427513 5.947425842 -1.345517397 0.3333333433 0.3333333433 -0.3333333433 0.0000000000 1.000000000 -3.345427513 -5.947425842 1.345517397 -0.3333333433 -0.3333333433 0.3333333433 0.0000000000 0.0000000000 -3.345427513 -5.947425842 -1.345517397 -0.3333333433 -0.3333333433 -0.3333333433 1.000000000 0.0000000000 3.345427513 -5.947425842 -1.345517397 0.3333333433 -0.3333333433 -0.3333333433 1.000000000 1.000000000 3.345427513 -5.947425842 1.345517397 0.3333333433 -0.3333333433 0.3333333433 0.0000000000 1.000000000 6 007f 10 4 10 10 0.0000000000 0.0000000000 -1.000000000 0 1 2 3 0eca 10 4 10 00 1.000000000 0.0000000000 0.0000000000 4 5 6 7 000f 10 4 10 10 0.0000000000 0.0000000000 1.000000000 8 9 10 11 00f0 10 4 10 00 -1.000000000 0.0000000000 0.0000000000 12 13 14 15 00ff 10 4 10 08 0.0000000000 1.000000000 0.0000000000 16 17 18 19 0784 10 4 10 08 0.0000000000 -1.000000000 0.0000000000 20 21 22 23 Now, from what I can gather, the lod polyflags have to correspond to the normals...I thought mine did here. Can anyone tell me what the hell is wrong with the lod to stop it detecting hits! Failing that, can someone make me 2 cube shaped lods, slightly thicker than the B17 wing, which will sit inside middle and inner wing panels with enough protruding to be shootable. AND MAKE THEM SO THEY DETECT HITS! I don't know what is going on. I've made part sbefore with no problems, now when I make a simple box, no dice. I don't understand enough about the lod and flags etc. to really see what is goping wrong. IP: Logged |
Rendsburger Pilot
|
posted 01-07- 05:01 PM
wakeup tailgunner, i know less about that stuff, but did it have "obBodyPts"??? It have something to do with detecting collision, but i donīt know more. Maybe it helps?!Rendsburger IP: Logged |
wakeup tailgunner Pilot
|
posted 01-07- 05:36 PM
no body points, but I don't think it needs them! I built seperate nacelles for the 17 motors, and they work fine! Same program, same methods, but they are fine! What really bugs me is the fact that the poly-flags look right! aaaaaaaaarrrrrghhh! To make me feel better, one of my favourite films is on TV...'Falling Down' I know just how that guy felt! IP: Logged |
wakeup tailgunner Pilot
|
posted 01-08- 10:17 AM
bump bump....checked the flags and normals, and it still looks fine....still no bullet hits... IP: Logged |
Tailslide Pilot
|
posted 01-08- 12:20 PM
Why not just copy the fuel boxes from the pe-2 ? TS
IP: Logged |
Nat Pilot
|
posted 01-08- 01:17 PM
I agree with TS, or rip them off the IL-2 (I did send you that alpha/beta version didn't i?) They are a good size on the IL2 anyways, but still, taking them from someplace else is the easy answer.~Nat~ ------------------ 7./JG3 "Naturlich" "SDOE... What and where would you like to fly today?" http://members.nbci.com/naturlich/index.htm </B> IP: Logged |
wakeup tailgunner Pilot
|
posted 01-08- 02:41 PM
I have....but it still bugged me! The whole thing made no sense. I checked against Laika's posts on the subject, and the flags looked fine. I ran a few more tests: Using a piece from the IL2... worked fine imported a box from AC3D, doesn't work! This confirmed that the properties in OPS were fine, but the polygon wasn't. I made the faces coloured, so I could check against the sequences....and it all looked o.k. I just had to try to find out why! I am really worried that this may affect something else! If I am building things with no idea whether hit detection works, what if I find the fuse on the B24 doesn't recognise hits...... IP: Logged |
Sv Pilot
|
posted 01-08- 02:45 PM
I have never had any hit detection trouble with any LOD I imported/exported into AC3D. As far as I know, every poly of any LOD that is the highest detail LOD will detect world collisions unless it has the obNoCollide prop list. Even obHidden LODS detext hits. But low detail LODS do not detect hits, and bullets will not pass through other polys to hit polys behind them.------------------ -Sv =FC= WWI in SDOE! IP: Logged |
Tailslide Pilot
|
posted 01-08- 07:59 PM
SV, take a peek at Laika's messages on the subject.. it's not something you might notice when you are exporting a complicated object like a plane but it really shows up with a simple object like a single square or a cube, even if that object is set as the highest detail lod. TS IP: Logged |
Sv Pilot
|
posted 01-08- 08:41 PM
So TS, are you suggesting that some of the polys in most planes do not detect hits- and that you do not notice it because there are other polys that are taking hits? Hmmm, I will read the posts...IP: Logged |
Tailslide Pilot
|
posted 01-08- 10:29 PM
Seems that way SV.. I ran into the same problem as laika when I tried to make a poly 'shell' over the canopy as the high detail LOD for the pilot so he would take hits. TS IP: Logged |
Sv Pilot
|
posted 01-08- 10:44 PM
And you are sure it is not "taking hits?" - or is it not "reacting to hits?" What kind of object the mesh is being used for my effect what happens if it is hit by a bullet...IP: Logged |
Tailslide Pilot
|
posted 01-08- 10:58 PM
The bullets would go right through and hit the ground. It was a high detail lod on the pilot object, and i had the obhits set to 1. If i shot the object from certain angles from the side it would work but shooting top down the bullets would go through TS
IP: Logged |
Sv Pilot
|
posted 01-08- 11:54 PM
Oh boy  IP: Logged |
wakeup tailgunner Pilot
|
posted 01-09- 05:39 AM
The general thoughts from Laika's post is that it is a poly-flag issue. I checked the flags on my box with one from Nats IL2 which worked and detected hits. The flags he sued were different ( but not in the last 3 bits which should be 000 to indicate a solid filled poly). From the OP notes and Laika's post I was able to confirm that Nat's flag settings were essentially the same as mine. What I did notice was that the polys were drawn in a different order. Could that make a difference?Also, just to verify, I swapped my flags to match Nat's but that didn't work either. Properties were fine too. They were the same the whole way through. I have one more test to run tonight, which will involve a check of the import process I used. I will import Nat's lod and see if it works. Possibly importign into an old version of OPS as a lod causes problems sometimes, while Nat would be using OBJ import. so to recap.... properties...fine Poly Flags....correct xyz ( might try reversing Normals just for fun, you never know. ) which leaves the polys order, which may affect the normals, or a problem with the Lod import. The plane build has polys from the IL2 for fuel tanks and oil coolers and oil tanks. I will need to pinch some of his armour plates to make the cylinder hit-boxes. It's a workaround, but it should suffice. All the bits are hidden anyway! p.s. Taking a break tonight to get drunk, coz it's my Birthday! IP: Logged |
Tailslide Pilot
|
posted 01-09- 01:04 PM
HAPPY BIRTHDAY !!!IP: Logged |
Laika 801 Pilot
|
posted 01-10- 01:02 PM
Weeee - pure SDOE-feeling here. I R E A L L Y D O N ' T K N O W . wakeuptg - the flags are OK ! It has to be something else ! LK
IP: Logged |