SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
07-16-17, 04:23 AM | #226 |
Weps
Join Date: Sep 2002
Location: SW France
Posts: 361
Downloads: 137
Uploads: 0
|
Hi Gap,
I've tested the lighthouse more thoroughly this morning and here are my observations:- After installation of files using Generic Mod Installer (JSGME) As a Terrain object using Locations.cfg with following entries:- [Location 785] ; Rock_LaPlate Long=-4.759722 Lat=48.039167 Heading=270 OnLand=false ShowOnMap=true FileName=Rock_LaPlate LocationName=Rock_LaPlate [Location 786] ; LLH_LaPlate Long=-4.759722 Lat=48.039167 Heading=270 OnLand=false ShowOnMap=true FileName=LLH_LaPlate LocationName=LLH_LaPlate Result:- Light tower floating mid-air. No Top structure or lantern (Only tower with platform and perimeter railings) No flashing light No reflection (possibly too high in the air) The rock is on the seabed As Land Unit after amending the eqp file date for the light and removing entries in Locations.cfg:- Full light tower with upper structure and lantern showing on sea surface with base below sea surface level Light flashing 9 times. Reflection of tower Top mark looks black (Tried different sun angles but still black) No rock I then added the rock to the Locations Cfg again, keeping the light as a Land unit: the rock is on the seabed, but the light is not sitting fully on the rock - it's slightly to one side. The top of the rock is not visible above the sea surface. I hope these observations are helpful. regards, MLF Screenshots:- Ist one shows Lighthouse as Land Unit added in Mission Editor 2nd one shows as Terrain Object added via Locations.cfg 3rd one shows Light added as land unit and rock added as a terrain object (bit murky but look hard ) And 4th one shows the top mark (I expect you guessed that).
__________________
Je pense donc je fuis! Last edited by MLF; 07-16-17 at 06:23 AM. |
07-16-17, 06:25 AM | #227 | ||||||
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
Quote:
After installation of files using Generic Mod Installer (JSGME) That's normal: as discovered by Kendras, terrain objects' vertical positon is tied to the sea level, but for land units the same is relative to the sea bottom. My rock model is set for being used as a terrain object, and the rock as a land unit, thence their vertical misalignment during your test Quote:
In v5, the base unit is composed by the concrete base plus the tower, nothing else. The remaing structures (top metal platform, lantern with flashing light effect, top mark) are set as configurable equipments and linked to the main model through eqp file, which only takes effect when the lighthouse is used as an unit. Since during your test you could see the 'platform', I suspect you might have been testing v4 where the platfom (if by platform you mean the metal structure with ladder that lantern and top mark are placed on) is not an equipment but part of the main model. The two parts were separated in v5 Reflection controllers and models were added with v5. The model being too high for casting reflections is the most likely explaination, unless you made your tests using v4 instead of v5, in which case there shouldn't be any reflections at all. Do you mean the EndDate? If so, if you set your mission before June 1940, there shouldn't be any need for eqp file amendments Quote:
Good. If you saw water reflections, then you have probably tested v5, but again (see my considerations above) how comes that the platform was there when you tested the lighthouse as a terrain object? Something doesn't add up; I hope it is just a misunderstanding on our respective usage of the term 'platform' If you carried you tests on v4, lantern's metal frame uses the same material as the topmark; if your tests were done on v5, lantern and platform use the same material as the topmark. At this point I am pretty sure that the problem is not in the material, but in the 3D model chunk. I will try scrapping it and re-importing the topmark mesh into a fresh chunk. Quote:
Quote:
This is as intended: the tourelle de la Plate was built on a submerged rock Very much Sir! Thank you again for your time, I appreciate that Quote:
Screenshots might help avoiding some misunderstandings as the one about the 'platform'. Fingers crossed In the meanwhile I will check a few things in my files, and I hopefully I will release a new versione with some fixes and some new features |
||||||
07-16-17, 06:46 AM | #228 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
Quote:
From them I get that:
|
|
07-16-17, 06:56 AM | #229 |
Weps
Join Date: Sep 2002
Location: SW France
Posts: 361
Downloads: 137
Uploads: 0
|
Hi Gap,
yes definately V5. Now used the Co-ordinate calculator to place the rock, and update the mission file and alignment mush better - Lat and Long obtained from Wikipedia. Excellent tool - thanks Screenshot of rock and base of lighthouse:-
__________________
Je pense donc je fuis! |
07-16-17, 07:13 AM | #230 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
Quote:
If you get time for yet another test, check that heading is set to 0 for both the lighthouse and the rock. If not, set them as I said, and run again your test mission. In the meanwhile I will make sure that the 3D coordinates of the two meshes are aligned correctly EDIT: just checked, and I had forgot to flip the rock model before importing it in S3d. If you have no other plans for the next thirty minutes, stay tuned for updates please |
|
07-16-17, 07:49 AM | #231 |
Weps
Join Date: Sep 2002
Location: SW France
Posts: 361
Downloads: 137
Uploads: 0
|
Now set all headings to OOO.
Screen shot attached - still very slight mis-alignment. Regards, MLF Got to go out for a few hours now.
__________________
Je pense donc je fuis! |
07-16-17, 08:01 AM | #232 |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
No problem, take your time and when you are ready check the forum, please, for an update that will hopefully solve the issue
|
07-16-17, 12:48 PM | #233 |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
Tourelle de la Plate alpha v6
http://www.mediafire.com/file/qbbrvy...La_Plate_v6.7z
changelog: - I have flipped rock's 3D around the X axis. I am confident that this will fix the slight misalignment reported by Kendras and MLF, still present even after setting the appropriate lat, long and heading settings for both the lighthouse and the rock. - I have edge-splitted topmark's meshes. This should fix for good the problem of them being rendered totally black in game. Should it not, I can still move them apart, but I think it won't be needed. - New feature: the lighthouse base should have caustics now. @ MLF or Kendras: besides testing the features above, can you please check (again) that the rock is collisionable? Should the StaticObject controller not work (yet), I think I know what is the issue with it, and how to fix it |
07-16-17, 04:45 PM | #234 |
Weps
Join Date: Sep 2002
Location: SW France
Posts: 361
Downloads: 137
Uploads: 0
|
Hi Gap,
I've tested again. The topmark now looks good (and rusty) The icon on the map needs a severe talking to IMHO it should be a lot lot smaller. The lighthouse/rock alignment is still out. If, in the rock dat file, you bring in the lighthouse file using s3Deditor, align the rock under the lighthouse using the translation values, and then delete the lighthouse node from the rock dat file and save, would that not align things - this has worked for me in the past. The sub treated the rock like a Mcdonald's I'm afraid - complete drive through thats the tailend of the sub sticking out the rock in the screenshot. I'm not sure about the caustics - possibly OK as there are shadows etc depending on where the sun is - would need Kendras' ( or somebody who knows about caustics) input on this. My own thoughts about the reflection is that it is far too faint. It can hardly be seen and the light house looks weird on the sea - sorry. see my last screenshot of a L/H I imported from Sketchup and put on your first rock. Kind regards, MLF
__________________
Je pense donc je fuis! Last edited by MLF; 07-16-17 at 05:11 PM. |
07-16-17, 05:58 PM | #235 | ||||||
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
Thank you Captain
Quote:
Now the question is: do those tga masks get scaled to a fixed size on map, no matter what is their pixel resolution, or they are displayed in real size and at their own resolution; in other words: should I scale the whole file, or only the visible icon within it? Quote:
Quote:
Quote:
Quote:
Quote:
I know a tower raising directly from the waves is a bit weird, if this is what you mean, but that's exactly how the Petite Vielle looks like. Other lighthouse will be more conventional |
||||||
07-17-17, 08:32 AM | #236 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Hi, i'm back
Well done gap and MLF. Tried v6 : all is ok, but rock and lighthouse are still not perfectly aligned. I've used your coordinates with excel sheet (nice tool ). I may try to measure difference with your ruler. |
07-17-17, 10:54 AM | #237 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
Quote:
I have checked again the rock and lighthouse meshes imported in the relative dat files, and they are perfectly aligned as far as their X and Z coordinates are concened. Anyway, I think I understood why they are not aligned in game even after using the ccordinates generated by my spreadsheet: in spite of unit coordinates being noted in .mis files as decimal numbers, decimal digits are probably ignored. A clue of that, is unit coordinates generated by Mission Editor having their decimal part always equal to '.000000'. This only applies to unit coordinates, not to terrain object's coordinates. Don't waste your time with the ruler for now. Node displacement values in one of the dat files could be used to compensate for the ignored decimal digits in the mis file, without need of empirically measuring stuff in game. Unless my reasoning is totally off, the latter would be a valid method, but I think that updating my coordinates calculator insteas, would be a cleaner approach, and one that will make lighthouse placement much easier. Stay tuned for new spreadsheet and lighthouse versions later today, please. Hopefully many bugs will be fixed, and new cool features introduced |
|
07-17-17, 11:47 AM | #238 | ||
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Quote:
Quote:
But I don't think it will work. I think Mission Editor doesn't ignore decimal digits. But when you place yourself some units, they have no decimal digits because the resolution is not enough precise. |
||
07-17-17, 11:57 AM | #239 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
I have an idea :
I have opened the mission file, then I moved the LH land unit one pixel up, and one pixel down, then I saved. I opened the .mis file, and the new coordinates are : Long=-571143.750000 Lat=5764737.500000 instead of : Long=-571143.720000 Lat=5764737.720000 So, could you change your excel sheet in order we can calculate what are the new coordinates in degrees ? Sorry, I can't see the formula ("read only"). I guess I have to divide by 120000 ? So the new coordinates are : Long=-4.75953125 Lat=48.039475 instead of : Long=-4.759531 Lat=48.039481 |
07-17-17, 12:08 PM | #240 |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
Yep, you are right: you can remove the decimal part from mis file values, and divide the resulting integers by 120,000 to find the corresponding terrain coordinates. As long as the resulting decimal won't exceed 6 decimal digits, the alignment should be perfect. I was a bit busy this afternoon but before tomorrow I will update my worksheet and automatize the process. In the meanwhile, if you want, you can do the calculations manually and quickly test if my idea works
|
|
|