• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

One click hangar

New version finally uploaded. The main new feature is the new help file, which eventually will replace the current (and outdated) PDF manual. I've also been planning to show screenshots of hangars in FSX, but my computer keeps crashing when running FSX, so no luck there.
 
Although there haven't been any updates for a while, I've still been working on this.

Here's a screenshot of the feature I'm working on now; UV mapping for arched roof.
 

Attachments

  • textured arched roof.jpg
    textured arched roof.jpg
    309.5 KB · Views: 526
I check this sub-forum just to see how your development progresses.

The last picture indicates I might finally be able to do that green building, sitting at a little airport over in Hawai'i. :)
 
Thanks, I'm going to add UV mapping to the walls and ceiling for the arched hangar and then I'll post an updated version.
 
HI Morten:


It's good to see further progress on a Sketchup plugin which is more specific to the needs of FS Developers. ;)


In regards to your latter posts above, I'm wondering if you may be able to provide FS Developers using Sketchup with an even easier way to replace textures while preserving UV mapping, as discussed in this recent thread relative to existing such plugins for Sketchup:

http://www.fsdeveloper.com/forum/showthread.php?t=425910


Also in regards to texture replacement, can your familiarity with building complex objects also facilitate a 'reverse' script for reducing complexity ...to expedite creation of ex: simpler or "hollow" closed-door hangars and other buildings ?



As you may have discovered by now, in FS, as in many simulators, most objects are built as less-complex objects wrapped with a texture derived from a light-mapped (ex: ambient occlusion etc.) rendering of a texture created when the object had its original complex geometry intact.

The derived texture creates the visual appearance of greater complexity, when in fact, the complexity has actually been reduced ...to generate a model at a lower Level Of Detail (aka "LOD").



I believe FS Developers using Sketchup would welcome a plugin which allows them to replace original textures from complex models with light-mapped / edited textures on a derived model which has had its complexity reduced, without having to manually re-texture the model because a plugin could ex: both save out the derived texture, and then reduce the LOD of a copy of the model ..."auto-magically" via a 'reversed' Ruby script originally used to build a model.

Perhaps such a sophisticated script could even attach derived texture(s) onto a model with a lower LOD ...at the established UV vertices ? :confused:


Hope this conceptual overview is not too hard to follow (...or to implement in Ruby !). :eek:


Thanks for your diligent efforts and generous contributions to the FS Development Community ! :)

GaryGB
 
Last edited:
Hi Gary,

I've not looked into texture replacement in SketchUp yet, however I can see that it will be useful for my UV mapped texture and if I'm correct in my assumptions, a texture replacement feature should preserve the UV mapping.

If or when I'm able to implement it depends on how much I have to change the code to make it work.

With regards to creating a flat texture based on a complex surface, it's probably possible using the TextureWriter class in SketchUp, but so far I've not looked into it.

Simplifying a model should be possible as well, however I'm not entirely sure who to go about it. There is a script called simplify contours on the SketchUp website, which could be doing parts of what you're after, but I've not tested it.
 
This is a development release for people to test out the UV mapping for the arched hangar roof/ceiling.
The archive only includes the hangar.rb file, so you would need all other files from the latest stable release for this to work as intended.

Example of the UV mapping extensions (ER indicates roof, IR indicates ceiling):

UV(0;879;1857;700;Metal sheet;ER;0)
UV(0;879;1857;700;Metal sheet;IR;0)

Syntax: UV(<UV map x start position>;<UV map y start position>;<UV map width>;<UV map height>;<Texture name>;<Wall>;<Map rotation>). Example: UV(0;0;1285;480;Photo wall;L;0). Map rotation is currently not active.

The texture name must be added to the textures.och file for this to work.

If no UV mapping has been selected for the arched hangar, it will be drawn without a roof.

Also, the arched hangar has to be grouped manually before being manipulated further.

I would appreciate any feedback on this.
 

Attachments

  • hangar dev.zip
    77 KB · Views: 378
First post has been updated with a new version. UV mapping is now fully working for roof, ceiling and walls for the arched hangar.

If you have downloaded any previous versions, you only need to download hangar.zip.

Drawing of the arched hangar may take a while when UV mapping all surfaces depending on how detailed the arched roof is.

It takes typically 25 seconds for SketchUp to draw an arched hangar with arch detail level 30 on my laptop.
 
Another development screenshot.

I'm currently working on side opening, extensions and roof windows for the arched hangar, and this is an early screenshot.
This is created by the use of two extensions, cut-out/roof window and hangar side extension.

The cut-out height and width is automatically detected by the hangar side extension and the walls and ceiling of the hangar side extension be adjusted automatically (optional feature).

This is probably also going to be the first of the extensions to incorporate UV mapping, however I'm trying to think of a more user friendly way to do it instead of using the extensions field.
 

Attachments

  • side extension opening.jpg
    side extension opening.jpg
    188.2 KB · Views: 590
Help please

Hi Charley, let me first congratulate you on this, from the screenshots i've seen it's awesome. Although I now live in America, i was born in Manchester so that made me smile when I read your profile!

OK, Mac User. Pretty competent, but new to Sketchup (only downloaded it after finding this thread). I have attatched an image of my file setup.

Problem:

Skethup loads, I chose "Create Hangar" from the plugin menu, and it asks me what style of hangar i want, i click one and then click ok, i click ok again on the sheeting page and then nothing.... I just get a blank canvas. No hangar.

I've tried almost everything but know i must be doing something really simple "wrong" lol.

Any help is much appreciated.

Paul.
 

Attachments

  • Screen Shot 2013-06-04 at 20.34.37 .png
    Screen Shot 2013-06-04 at 20.34.37 .png
    244.3 KB · Views: 420
Hi Orlando. The only thing i can think may cause a problem is the way the plug-in reads folders and folder structure. It may be different from how it's read in Windows. I will look into it but may take a couple of days due to my new job (also the fact it is sunny in Manchester for a change may also delay it slightly) ;)
 
Hey man i appreciate your help, can't tell you how keen i am to try this out. Let me know if you need any extra info.

FYI. When i used the latest hangar.rb file which i downloaded from your first post it did not work. It showed under the plugin menu but nothing happened when i clicked on it. I decided to download the one you made for gary. When i clicked on that one in the plugin menu it did bring up the box asking what style of hangar, dimensions, sheeting etc. But when i click ok nothing shows on the blank canvas - and that's were i'm at right now.

Paul.


Ps. I heard Manchester's got some sunshiiiine.
 
I might have commented out the require sketchup bit at the beginning of the script. Also I'll update my sketchup to 2013 to make sure it works ok on it as well.

The one I made for Gary is pretty old and there should be newer development versions in this thread.
 
It's further up on this page, however as I made a mistake in my latest release, I'm attaching a new one. If you still can't get any textures in this development version, the issue is most likely due to the OSX folder path using forward slash (if I'm not mistaken) where Windows uses backslash.
 

Attachments

  • hangar dev.zip
    84.3 KB · Views: 416
I tried the new file you send and get the following error.

In the meantime i might revert back to the hangar.rb and change the slashes, see if it makes a difference.

Paul
 

Attachments

  • Screen Shot 2013-06-05 at 15.08.14 .png
    Screen Shot 2013-06-05 at 15.08.14 .png
    44.3 KB · Views: 481
Hey man i got it working by changing the slashes in the hangar.rb file. excellent!

This is such a useful tool for me to use, the guys in my office think it's great.

Paul.
 
I've updated the version in the first post to use a forward slash in the file path instead of backslash.
Could you try to download all four zip files and see if you are able to run the plugin ok?
The error you get points to the backslashes being the issue, but I'm not entirely sure as I unfortunately don't have a Mac.
 
I just downloaded this plugin and am eager to try, but I have an issue. I placed the rb file in the plugins folder, as well as the TextureFiles folder. WHen I open Sketchup and click the Plugins tab in the menu bar, OneClick Hangar isn't there.

Todd
 
Back
Top