Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Spoon on March 10, 2009, 10:15:30 am

Title: Shield mesh is letting random shots through
Post by: Spoon on March 10, 2009, 10:15:30 am
Hey folks
After several days of information gathering, learning how the tools work and forum/wiki searching. I've finally managed to create something slightely resembeling a fighter in 3ds max 6, exported it to .pof and edited it in PCS2. Now here is something I just can't figure out. For some reason all kinds of default fighter (any) weapons seem to ignore the shield mesh. It only shows up and blocks shots when those shots would have missed the hull anyway.
(http://xs537.xs.to/xs537/09112/shieldsnotworkingproperly202.jpg)
This is how the shield mesh looks like in PCS2.
(http://xs137.xs.to/xs137/09112/shieldsnotworkingproperlymax235.jpg)
And this is in max (saving it as .jpg instantly makes it look horribly grainy)
I tried 'flipping normals' on the shield mesh in 3ds max but that just crashes the .pof exporter. I tried increasing the size of the mesh as well as making it as form fitting as possible. I read somewhere on these forums that having a mesh of 80 faces should be good etc. But none of this solves this!

Any help would be much appriciated!
Title: Re: Shield mesh is letting random shots through
Post by: Ziame on March 10, 2009, 10:23:31 am
For me that's a perfect shuttle. Good work on this fighter so far. Had to say this<;, though I can't help you :(
Title: Re: Shield mesh is letting random shots through
Post by: Nuke on March 10, 2009, 11:24:47 am
whit i do in a situation like this is grab all your shield verts and hit weld (be sure your threshold is low enough). thin make sure the mesh is triangulated. if all else fails, get it into truespace glue it to a cube and run that through pcs2. then import it into your model with the good geometry. might also be something to do with the shield collision chunk, which is fairly new. but from your first image it seems a couple of those polies are being uncooperative.
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 10, 2009, 11:58:59 am
For me that's a perfect shuttle. Good work on this fighter so far. Had to say this<;, though I can't help you :(
Thanks  :)
It's still far away from completed though.

Quote
whit i do in a situation like this is grab all your shield verts and hit weld (be sure your threshold is low enough). thin make sure the mesh is triangulated. if all else fails, get it into truespace glue it to a cube and run that through pcs2. then import it into your model with the good geometry. might also be something to do with the shield collision chunk, which is fairly new. but from your first image it seems a couple of those polies are being uncooperative.
Well it's a standard 3ds max geosphere but I tried welding anyway. No effect. Not completely sure on the triangulated part.
Whats this shield collision chunk you speak of?
Just to note that the few faces that are lit up in the first screenie in pcs2 seem to be a basic lighting effect that just rotates along.

Results I had so far: 'Normal' shield mesh doesn't stop any hit thats directed at the hull. Just shows up when shots are near misses
'flipped normals' shield mesh (yeah I said the flipping crashed the exporter, I was just doing it wrong) only stops shots coming from the front, back and sides but refuses duty when it comes to shots coming from up and below.
Title: Re: Shield mesh is letting random shots through
Post by: Water on March 10, 2009, 07:30:31 pm
Try an 80 face sphere and see if that makes a difference.
Title: Re: Shield mesh is letting random shots through
Post by: stumpjumper920 on March 10, 2009, 09:55:06 pm
ok im no expert, but one thing you might try is importing another fighter (or bomber depending on size) shield mesh in PCS2, just go to the shield tree and click the load button and then select the ship you want to use.  Then hopefully this will at least give you a comparison and a check to make sure its nothing else...  oh yea right you need to get a ship to get the shield from first. haha  One suggestion would be scoobs models, i know they work and they come in all sizes.  Good Luck!
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 11, 2009, 06:19:59 am
Oh man this is driving me nuts  :hopping:

I tried the suggestion of the sphere and hell even a cube. Both of these give far far better results then the geosphere. They almost act normal. 'cept when getting shot at from certain angles. Then the shots will go straight through unto the hull
(http://xs537.xs.to/xs537/09113/aurgh944.png)
Title: Re: Shield mesh is letting random shots through
Post by: Vasudan Admiral on March 11, 2009, 06:30:52 am
From the look of the PCS2 screen there and the descriptions, I'm going to guess that your shield faces are partially inverted. All shots will travel right through those faces facing inwards on one side, probably go through the ship, and get caught on other faces facing inwards on the other side.

Blender has a 'recalculate normals inside/outside' function that should do exactly what you need - so look for something similar in max. 'Flip normals' will simply invert which faces are causing trouble.
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 11, 2009, 06:49:47 am
I tried flipping the normals, I tried flipping the bird. Cube/Sphere shapes will give decent results but certain shots at certain angles will still pass through. I'm really at a loss here. I tried every possible shape. I tried every suggestion given here in this thread and I tried a dozend of other things. I'm starting to suspect it might have something to do with the model itself instead of the shield mesh (but that seems so unlogical all things considered?)
Title: Re: Shield mesh is letting random shots through
Post by: Hellstryker on March 11, 2009, 07:22:06 am
Well, we can take a look at it if you upload it (preferably in .3ds)
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 11, 2009, 07:48:25 am
http://rapidshare.com/files/207926582/Thanksinadvance.rar.html
Then please do. Oh and if you open it in PCS2 recalculate the MOI else its going to get bounced around like crazy in FS2.
Shots always seem to pass through near the cockpit area or at the tip of the wings.
Title: Re: Shield mesh is letting random shots through
Post by: Hellstryker on March 11, 2009, 04:35:16 pm
I said in .3ds because not all of us have max. :p
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 11, 2009, 04:56:07 pm
Woops, I guess I saved it instead of exported it. Better dubble check that next time.
sorry!
http://rapidshare.com/files/208121884/Thistimeforsure.rar.html
Title: Re: Shield mesh is letting random shots through
Post by: Topgun on March 11, 2009, 04:58:59 pm
I tried flipping the normals, I tried flipping the bird.
They need to be recalculated, not flipped.
Title: Re: Shield mesh is letting random shots through
Post by: Water on March 12, 2009, 12:49:07 am
The shield normals are ok.

Don't uvmap the shield. It's unnecessary.

For the ship - you can save 100 polys by deleting the unseen polys in the middle. - 50 per mirrored side.
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 12, 2009, 06:41:31 am
The shield normals are ok.

Don't uvmap the shield. It's unnecessary.

For the ship - you can save 100 polys by deleting the unseen polys in the middle. - 50 per mirrored side.
but I didn't uvmapped the shield... (at least not on purpose that is, who knows what exporting to .3ds and opening it in an other program does...)
And yes dully noted on the polys, the model I uploaded isn't exactly a final version.

Well... I can't get the shield mesh to stop 100% of the shots. However in a sudden burst of random insight I gave the ship a Surface Shields flag in the ships.tbl. And this solves the problem! Sure, shots will still mysteriously penetrate the shield mesh at certain angles but thanks to SS the damage will be done to the shields instead of the hull. The shield mesh will show up properly etc.

You can still color me confused as to why the shield mesh is not working 100% though.
Title: Re: Shield mesh is letting random shots through
Post by: Vasudan Admiral on March 12, 2009, 07:07:21 am
Hmm, just to be sure it isn't something else - try importing the shield data from a similarly sized retail ship. (The 'load' button top right of PCS2's interface)
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 12, 2009, 08:44:10 am
Hmm, just to be sure it isn't something else - try importing the shield data from a similarly sized retail ship. (The 'load' button top right of PCS2's interface)
Tried that, pretty much gives the same result.
Title: Re: Shield mesh is letting random shots through
Post by: chief1983 on March 12, 2009, 11:07:35 am
Are we sure this isn't regular game behavior?  I've had plenty of shots at least partially rip through my shields and hit hull, even with shields at full strength.  The shields do still take some damage, but some leeches through and does hull damage too.

Also, I wonder if there's anything related to the radius of the ship going on.  And the shield mesh has to be fairly close to the ship at all places, depending on how large the ship is.
Title: Re: Shield mesh is letting random shots through
Post by: Vasudan Admiral on March 12, 2009, 11:08:03 am
Well in that case it sounds like it may not be a shield mesh problem after all. Can you upload the POF and table perhaps for testing/checking?
Title: Re: Shield mesh is letting random shots through
Post by: Commander Zane on March 12, 2009, 12:35:35 pm
Are we sure this isn't regular game behavior?  I've had plenty of shots at least partially rip through my shields and hit hull, even with shields at full strength.  The shields do still take some damage, but some leeches through and does hull damage too.
Yeah, even in an Ares I've seen the hull go down slightly with full shields after a single salvo from a Seraphim's lasers, and it only takes out maybe 10% of one section.
Title: Re: Shield mesh is letting random shots through
Post by: Spoon on March 12, 2009, 06:01:26 pm
Yes I did noticed before even in retail ships some times your hull will get damaged when fired upon with shields still up. The problem here is slightely different though as i'm testing with shields set on like 6000 or so. And shots will Always somehow penetrate the shield mesh when shot at a certain angle at a certain part of the ship. (and thats something i've not been able to reproduce with any retail ships)
And a shield mesh closer to the ship seems to be getting worse results then one loosely around it.

Well in that case it sounds like it may not be a shield mesh problem after all. Can you upload the POF and table perhaps for testing/checking?
Yeah, i'll work a bit more on the model and test if the problem is still there. If it is i'll throw the .pof up here.
Title: Re: Shield mesh is letting random shots through
Post by: Scooby_Doo on March 13, 2009, 02:00:38 am
I've noticed on rapid fire weapons, there can be bleed though, no matter the shield strength.
Title: Re: Shield mesh is letting random shots through
Post by: Kazan on March 13, 2009, 10:13:45 pm
might also be something to do with the shield collision chunk, which is fairly new.

no.. this problem existed long before i introduced that feature

IIRC its related to the mesh being too close to the ship or somesuch