+ravenclaw_007 7,633 Posted November 11, 2013 does anybody have an idea how to fix this ??? it only happens with bombs that replaces an existing TW bomb as you can see the AIM-9 has a shadow as well as the MER [WeaponData]ObjectFullName=Mk.82 500-lb BombObjectDataFile=MK82_data.INI [LOD001]Filename=MK-82.lodDistance=100 [LOD002]Filename=MK-82_01.lodDistance=350 [shadow]CastShadow=TRUEShadowCastDist=10000MaxVisibleDistance=100 Share this post Link to post Share on other sites
Snailman 517 Posted November 11, 2013 I suppose the bombs are missing the line castshadow=true in 3dmax object properties... Share this post Link to post Share on other sites
+Florian 394 Posted November 11, 2013 Watch the Polycount! We had a limit on Polygons in the first days, with more powerful systems around we were able to increase the number of polygons steady. Since there is no real limit on total amount of polygons, it is in case of shadows. I noticed most meshes between 2k and 3k polygons don´t cast any shadow and it seems the most parent mesh above 1k polygons gets in trouble also. Devide heavy polycount meshes to a few ones with each lower number. Share this post Link to post Share on other sites
+ravenclaw_007 7,633 Posted November 11, 2013 (edited) I suppose the bombs are missing the line castshadow=true in 3dmax object properties... nope , everything is there Watch the Polycount! We had a limit on Polygons in the first days, with more powerful systems around we were able to increase the number of polygons steady. Since there is no real limit on total amount of polygons, it is in case of shadows. I noticed most meshes between 2k and 3k polygons don´t cast any shadow and it seems the most parent mesh above 1k polygons gets in trouble also. Devide heavy polycount meshes to a few ones with each lower number. i check that but the MER has a very high poly count and is showing with no problem at all and even if i split the main bomb body in to 3 pieces there will be no shadow Edited November 11, 2013 by ravenclaw_007 Share this post Link to post Share on other sites
Snailman 517 Posted November 11, 2013 ((( I don't know then... do you have such 3dmax files of weapons which do show up? perhaps you can compare and find the difference... I have no better idea( I have fuselage over 3K poly and all the shadows are there. Even props spinning have shadows... Maybe... perhaps it is stupid idea and unlikely, but try debug mode and see if you have passed the total poly limit on the screen? Share this post Link to post Share on other sites
+ravenclaw_007 7,633 Posted November 11, 2013 ((( I don't know then... do you have such 3dmax files of weapons which do show up? perhaps you can compare and find the difference... I have no better idea( I have fuselage over 3K poly and all the shadows are there. Even props spinning have shadows... Maybe... perhaps it is stupid idea and unlikely, but try debug mode and see if you have passed the total poly limit on the screen? i reduced the complete bomb to only the bomb body this i have split in to 2 pieces each below 1000 poly´s and as you see there is still no shadow i assume that something in the weapons_ini is creating a conflict with the original TW ini and as result there is no shadow Share this post Link to post Share on other sites
Snailman 517 Posted November 11, 2013 Yea, the [shadow] section might be the culprit Share this post Link to post Share on other sites
+Florian 394 Posted November 11, 2013 i assume that something in the weapons_ini is creating a conflict with the original TW ini and as result there is no shadow What is the weapon name (folder)? The stock should be Mk82, with Mk82.INI and pointing to the Mk82.LOD. Although i doubt this happening, as there would be no LOD at all. Share this post Link to post Share on other sites
Snailman 517 Posted November 11, 2013 The stock ini has no [shadow] section... The folder name should match the weapon.ini but the lod name can be different according to the weapon.ini LOD entry. If there is no such entry, and the weapon_data.ini is also missing (or does not specify a different model name), the stock LOD will be used I think Share this post Link to post Share on other sites
+76.IAP-Blackbird 3,557 Posted November 11, 2013 i think it has something to do with the ini, not the model Share this post Link to post Share on other sites
+Sundowner 4,819 Posted November 11, 2013 Very strange as your M117 works perfectly......... Share this post Link to post Share on other sites
+Sundowner 4,819 Posted November 11, 2013 Hmmmm, I renamed your MK-82 lod to MK82.lod [the same as the stock one] & changed the ini entries to be the same & BINGO....we have shadows...... 1 Share this post Link to post Share on other sites
Snailman 517 Posted November 11, 2013 I was also pulling my hair out for similar stuff, and turned out to be a simple typo in the ini.... it happens with everyone Share this post Link to post Share on other sites
+Crusader 2,101 Posted November 11, 2013 Add-on weapons must have the same name for: folder main ini typename lod + lod name in data ini and the proper shadow section in the main ini Or the shadow wont work. If a new lod is made for a stock weapon,t hen it must have the same lod name as the original, Using a differently named lod in the data ini will break the shadow function, as the Mk82 example shows. 1 Share this post Link to post Share on other sites
+ravenclaw_007 7,633 Posted November 11, 2013 Thanks a lot , i knew it must be something simple now i know what to fix Share this post Link to post Share on other sites