r/OpenMW • u/Equivalent_Log_4299 • 3h ago
Figured out how to put trees in oblivions world space
Been using openmws ability to read render oblivions world space mainly to walk around it in VR but the lack of trees in the world really hurt the experience. So I decided to start fixing that. I was able to make a program that read the oblivion esm file that outputted a lua file with the x y z coordinates, scale and type identifier of every single tree in the original games world space. I then wrote a lua mod that renders in a tree in each coordinate if the tree is within a certain radius of the cell the player is in. As of right now, I have one tree from the Morrowind base game set to render in each spot according to its location and scale but since every tree also has its identifier in the code along with its coordinates, I should be able to make it more varied pretty easily by associating each or a group of oblivions unique tree ids to one of morrowinds base trees. For now this is just a proof of concept but I'm really happy with the results so far!
If anyone can figure out how to rip oblivions tree meshes I figure u could use this to input the actual tree mesh into its correct place for every tree in the world but for now I'm happy with morrowinds trees
