Board index FlightGear Development Scenery

Tree generating Photoshop filter

Questions and discussion about enhancing and populating the FlightGear world.

Tree generating Photoshop filter

Postby Warty » Mon Jul 05, 2021 5:54 pm

Split off from the topic Photoscenery?.


Thorsten wrote in Tue Sep 29, 2020 5:55 pm:Does it strike you as funny that needle trees all over the world look exactly like in my yard? Because that's where I took the photos. Nobody is making tree textures for his part of the world - so they all look like in Finland. People could start actually filling our existing framework with local tree varieties, shrubs, you name it.


I only found out today that Photoshop has a filter for generating trees



Here are some examples I made in a matter of minutes

https://github.com/John-Bray/PS_vegetation

Image
Last edited by Warty on Fri Jun 10, 2022 3:22 pm, edited 3 times in total.
User avatar
Warty
 
Posts: 378
Joined: Sun Mar 29, 2015 7:53 pm
Location: Spain
Callsign: Warty
Version: 2020.4.0
OS: Mac OS 13

Re: Photoscenery?

Postby Warty » Mon Jul 05, 2021 9:45 pm

For example
Image
User avatar
Warty
 
Posts: 378
Joined: Sun Mar 29, 2015 7:53 pm
Location: Spain
Callsign: Warty
Version: 2020.4.0
OS: Mac OS 13

Re: Photoscenery?

Postby Volador » Tue Jul 06, 2021 2:27 pm

@Warty, this is brilliant. With a little coordination and dividing up the work in the community I bet a team of people could generate a few tree type each.
Any volunteers to take a little time to coordinate this? It would make a significant contribution.
Rough plan would need some finer details agreeing first to make it worthwhile/efficient
1. Find a world map tree species reference,
2. Set a guideline for pixel resolution and format (png? on transparent) and *meta tags*?,
3. Divide up the tree generation tasks to contributors
- Is there already a repository, tag definition guidelines?
User avatar
Volador
 
Posts: 1142
Joined: Tue Sep 01, 2020 4:58 pm
Callsign: Volador, G-VLDR
Version: 2020.4
OS: Windows 10, 64 bit

Re: Photoscenery?

Postby Warty » Tue Jul 06, 2021 3:29 pm

I've done some more experimenting with this - see the GIt for latest additions. I think it needs to be seen as a helper rather than the quick-fix automatic answer to all vegetation issues. Nevertheless, I must say I am quite impressed. I've been using Photoshop for over thirty years now and I suppose I just got used to using what I know and not checking out what comes with the upgrades :oops:

From what I've figured out so far, there are 32 basic vegetation shapes and 16 different leaf shapes. By default, each tree type comes with its own default leaf style, leaf colour and trunk/branch style. Each tree type has about 300 variations. But when you consider that each tree type can have 16 different leaf styles plus varying leaf density, size and colour then the number of possibilities is actually lots++

For example, a type 20 (Acer) with leaves swapped to type 1 (recoloured) can be made to look like a Mimosa

Image
User avatar
Warty
 
Posts: 378
Joined: Sun Mar 29, 2015 7:53 pm
Location: Spain
Callsign: Warty
Version: 2020.4.0
OS: Mac OS 13

Re: Tree generating Photoshop filter

Postby Volador » Mon Sep 13, 2021 7:21 pm

Also just stumbled across this free tree generator - might be quicker than the blender addon
http://www.evolved-software.com/treeit/treeit
User avatar
Volador
 
Posts: 1142
Joined: Tue Sep 01, 2020 4:58 pm
Callsign: Volador, G-VLDR
Version: 2020.4
OS: Windows 10, 64 bit

Re: Tree generating Photoshop filter

Postby stuart » Mon Sep 13, 2021 8:34 pm

These are great, and perhaps easier than post-processing photographs.

How do they look in-sim?

-Stuart
G-MWLX
User avatar
stuart
Moderator
 
Posts: 1629
Joined: Wed Nov 29, 2006 10:56 am
Location: Edinburgh
Callsign: G-MWLX

Re: Tree generating Photoshop filter

Postby Zac » Tue Feb 22, 2022 6:08 am

Just wanted to share my method for making 2D trees using Blender.

Start Blender and ensure the Sapling addon is enabled. Add a new tree and adjust the parameters to suit your needs.

Image

Enable leaves and populate the tree with enough leaves to cover the tree.

Image

Add a leaf texture to the leaves. The leaves are all automatically UV wrapped, the only thing left to do is to assign a material to them and add a leaf texture. The same with the bark.

Image

Change to Cycles rendering system, and under "film" select transparent to prevent the background from rendering. Also add in all the components necessary for lighting such as the sun and/or HDRI. Experiment a bit to achieve some effect which you like. The camera is set to orthographic and positioned.

Image

Then finally, render. The result is usually very nice.

Image

The last thing which does not do much benefit to the rendering at the moment within the sim is the tree shader and lighting within Flightgear. Potentially when compositor comes it will be very easy to implement a new foliage shader. In my opinion it is best to place them as a single size and slightly larger than real life. Currently under some conditions trees are rendered which are hardly visible and only weigh down the performance.

Also ps. I am color blind, so maybe the colors look a bit odd in the final render, again, things like this are very easily adjusted using Blender.
Zac
 
Posts: 21
Joined: Mon Mar 09, 2020 2:15 am

Re: Tree generating Photoshop filter

Postby merspieler » Tue Feb 22, 2022 12:42 pm

Wow, that tree looks awesome...
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2295
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Tree generating Photoshop filter

Postby erik » Tue Feb 22, 2022 12:59 pm

The color looks spot-on for autumn.
That looks great indeed.

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2248
Joined: Thu Nov 01, 2007 2:41 pm

Re: Tree generating Photoshop filter

Postby merspieler » Tue Feb 22, 2022 2:04 pm

Now I'm wondering if we could just drop those trees as models into the scenery... all merged into a single object, similar to how osm2city does it to only have one draw call.
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2295
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Tree generating Photoshop filter

Postby Thorsten » Tue Feb 22, 2022 6:59 pm

Now I'm wondering if we could just drop those trees as models into the scenery... all merged into a single object, similar to how osm2city does it to only have one draw call.


Actually currently trees use instancing which is an even better solution than merging.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Tree generating Photoshop filter

Postby flc972 » Tue Feb 22, 2022 11:54 pm

I was thinking about using "game ready" vegetation like the one in 0.A.D. game (https://play0ad.com/) to assess the impact in terms of FPS on airport scenery load
flc972
 
Posts: 51
Joined: Sun Dec 20, 2020 11:04 pm
Version: 2020.3.8
OS: Opensuse Leap

Re: Tree generating Photoshop filter

Postby Warty » Fri Jun 10, 2022 11:13 am

Similar to what Zac demonstrated in Blender, here is some output from Daz3D
Image
Image
Image
Image
User avatar
Warty
 
Posts: 378
Joined: Sun Mar 29, 2015 7:53 pm
Location: Spain
Callsign: Warty
Version: 2020.4.0
OS: Mac OS 13

Re: Tree generating Photoshop filter

Postby merspieler » Fri Jun 10, 2022 2:11 pm

love those palms
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2295
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS


Return to Scenery

Who is online

Users browsing this forum: No registered users and 4 guests