Discussion Trees for Orbiter

misha.physics

Well-known member
Joined
Dec 22, 2021
Messages
443
Reaction score
564
Points
108
Location
Lviv
Preferred Pronouns
he/him
Just to have a separate thread about trees for Orbiter. It can relate both to:

1) OpenOrbiter development (searching and testing the better way to implement trees in the future Orbiter development).
2) An addon for trees for OpenOrbiter (and for Orbiter 2016 too).

It doesn't mean I have good ideas about trees for Orbiter, but you might have them, so feel free to share them here if you like.

The first simplest and obvious idea I see is a low poly tree mesh with a good texture like:

t1.pngt2.jpg

The pictures were taken as an example from the Internet.
 

LordCroussette

Quebec City's Resident Base Builder
Addon Developer
Donator
Joined
Jan 26, 2013
Messages
243
Reaction score
764
Points
108
Location
Quebec City
Preferred Pronouns
He/Him
I wonder why the graphics engine doesn't render meshes behind transparent textures (unless in specific circumstances) when it has no problems rendering the terrain. There must be a good reason for it. I'm not a programmer though, so I have no idea where to begin looking for an answer.

I think fixing transparency so everything behind always render no matter how meshes are ordered in a file could greatly improve meshes and base making in my opinion. I could finally replace my janky-a** Quebec trees with actual trees! x)
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,939
Reaction score
367
Points
98
Location
Sparta
This has been fixed in OpenOrbiter. You just need to flag the meshgroup with 0x20.
1715521162972.png

Here it is without the flag (FLAG 0) -Base MESH, so it gets loaded before the vessels.

Canaveral.cfg
MESH
FILE Tree
OWNMATERIAL
POS 6851.61 0 -2367.58
ROT 10
SHADOW
PRELOAD
END


1715521716904.png

Here it is with the flag (FLAG 0x20)

1715521822819.png

Even the shadow is perfect.
 

LordCroussette

Quebec City's Resident Base Builder
Addon Developer
Donator
Joined
Jan 26, 2013
Messages
243
Reaction score
764
Points
108
Location
Quebec City
Preferred Pronouns
He/Him

misha.physics

Well-known member
Joined
Dec 22, 2021
Messages
443
Reaction score
564
Points
108
Location
Lviv
Preferred Pronouns
he/him
You just need to flag the meshgroup with 0x20.
Sorry, where should it be flagged? In Blender, or in a base *.cfg file, or somewhere else?

Sadly, I don't have enough time to try it now, but I'd like to try it later.
 

LordCroussette

Quebec City's Resident Base Builder
Addon Developer
Donator
Joined
Jan 26, 2013
Messages
243
Reaction score
764
Points
108
Location
Quebec City
Preferred Pronouns
He/Him
Sorry, where should it be flagged? In Blender, or in a base *.cfg file, or somewhere else?

Sadly, I don't have enough time to try it now, but I'd like to try it later.
I believe that's how: open the mesh in notepad and add "FLAG 0x20" in a mesh group like this:
1715630955379.png
 

Attachments

  • 1715630864310.png
    1715630864310.png
    204.8 KB · Views: 9

misha.physics

Well-known member
Joined
Dec 22, 2021
Messages
443
Reaction score
564
Points
108
Location
Lviv
Preferred Pronouns
he/him
FLAG 0x20
So, this flag was added for OpenOrbiter and it works perfectly. Is there a limit on the number of meshes that will be transparent for each other? Are there some other flags added in OpenOrbiter? Will they be mentioned in the OpenOrbiter documentation?

I've tried it with @Pipcard's addon:

palmtree.png

And added a blue area around the island, it looks better than without it:

blue2.pngnoblue.png

It seems to be a good idea to try making such fictional neat islands.
 

misha.physics

Well-known member
Joined
Dec 22, 2021
Messages
443
Reaction score
564
Points
108
Location
Lviv
Preferred Pronouns
he/him
t1.png
Maybe we can use a low poly tree mesh with leaves textures on the transparent background (see below an example). It could look volumetric and nice.
 

Attachments

  • Screenshot_20240514_230054_Chrome.jpg
    Screenshot_20240514_230054_Chrome.jpg
    89.8 KB · Views: 5
Top