-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import all map tiles into Blender #85
Labels
Comments
Of course, simply import the 'global.cfg' file:
[image: image.png]
Just be aware that Blender gets exponentially slower the more objects are
loaded, so trying to load a map much bigger than Grundorf will be difficult
(although you can get around this by using the new tile loading panel in
the latest beta).
…On Thu, 28 Sept 2023 at 20:00, Titukis ***@***.***> wrote:
Hello, is it possible to import all map tiles to blender on right
positions instead of them being at the same place?
—
Reply to this email directly, view it on GitHub
<#85>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTN4ATJDMZLSHMRP4NZQQTX4XCNLANCNFSM6AAAAAA5LNJYGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Thomas
|
alright, this worked, but not all tiles loaded, some are still missing, what's the issue? |
I'm not sure, but there are a few things you should check:
If you're still not sure, I might be able to help if you provide the following information:
|
Hey, the issue happens when tiles are in the global.cfg file but not
actually in the map :) Blender then can't find them, but it's fixable by
removing lines of non existent tiles.
Also, I have other issue: how do I export the map tiles so I get terrain
textures in UE? Everything I tried leads to white/black textures after
importing. What settings should I use?
2023-10-07, št 12:44, Thomas Mathieson ***@***.***> rašė:
… I'm not sure, but there are a few things you should check:
- Do all the tiles import in OMSI Editor?
- Is the load radius setting set high enough?
- Do you get any errors while loading tiles?
If you're still not sure, I might be able to help if you provide the
following information:
- What version of Blender are you using?
- What version of the plugin are you using?
- What map are you trying to import?
- Can you send the Blender log?
- To do this open the Blender console like so:
[image: image]
<https://user-images.githubusercontent.com/15130114/273378310-2230c2f6-bed7-4a49-b951-94ed2457ebce.png>
- And then copy everything into a new pastebin (
https://pastebin.com/) and give me the link to the paste.
—
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXAHBTPK3QRCECLWVJVZTC3X6EP7LAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGY3DMOBZGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Terrain tiles use a somewhat complicated material setup which probably
can't be exported by the FBX exporter (I'm sure you could write a script
to do it, but I digress). You'll want to setup a shader in UE to match the
shader in blender, the shader in blender for terrain tiles is different for
each tile as each tile can have a different number of layers. Each layer
has a main texture and a detail texture (as specified in the omsi editor)
as well as a mask texture (stored in
maps/<map_name>/texture/map/tile_X_Y.N.dds), the mask texture is a
particular format of DDS that blender doesn't natively support (an
ALPHA_8_UNORM) so I decode it manually (although I realise in the latest
release there's a small bug in this), but this means that as far as blender
is concerned it's no longer associated with a real file (it becomes packed
in the .blend file). If UE supports ALPHA_8_UNORM dds files then that's
fine, otherwise you'll have to convert it.
A shader for a given terrain tile looks like this:
[image: image.png]
I don't plan on providing tools to set this up automatically for you. I
struggle to see many legitimate use cases for exporting terrain tiles to UE
beyond piracy.
…On Sat, 7 Oct 2023 at 15:40, Titukis ***@***.***> wrote:
Hey, the issue happens when tiles are in the global.cfg file but not
actually in the map :) Blender then can't find them, but it's fixable by
removing lines of non existent tiles.
Also, I have other issue: how do I export the map tiles so I get terrain
textures in UE? Everything I tried leads to white/black textures after
importing. What settings should I use?
2023-10-07, št 12:44, Thomas Mathieson ***@***.***> rašė:
> I'm not sure, but there are a few things you should check:
>
> - Do all the tiles import in OMSI Editor?
> - Is the load radius setting set high enough?
> - Do you get any errors while loading tiles?
>
> If you're still not sure, I might be able to help if you provide the
> following information:
>
> - What version of Blender are you using?
> - What version of the plugin are you using?
> - What map are you trying to import?
> - Can you send the Blender log?
> - To do this open the Blender console like so:
> [image: image]
> <
https://user-images.githubusercontent.com/15130114/273378310-2230c2f6-bed7-4a49-b951-94ed2457ebce.png>
> - And then copy everything into a new pastebin (
> https://pastebin.com/) and give me the link to the paste.
>
> —
> Reply to this email directly, view it on GitHub
> <
#85 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AXAHBTPK3QRCECLWVJVZTC3X6EP7LAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGY3DMOBZGA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTN4AXPWYQ2IJGV5NW4EQTX6FSVZAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG4ZDQNRSGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Thomas
|
I just need it for remaking the same map from OMSI. Maybe then there is a
way to get heightmap photo from blender and use it in UE?
2023-10-07, št 20:56, Thomas Mathieson ***@***.***> rašė:
… Terrain tiles use a somewhat complicated material setup which probably
can't be exported by the FBX exporter (I'm sure you could write a script
to do it, but I digress). You'll want to setup a shader in UE to match the
shader in blender, the shader in blender for terrain tiles is different
for
each tile as each tile can have a different number of layers. Each layer
has a main texture and a detail texture (as specified in the omsi editor)
as well as a mask texture (stored in
maps/<map_name>/texture/map/tile_X_Y.N.dds), the mask texture is a
particular format of DDS that blender doesn't natively support (an
ALPHA_8_UNORM) so I decode it manually (although I realise in the latest
release there's a small bug in this), but this means that as far as
blender
is concerned it's no longer associated with a real file (it becomes packed
in the .blend file). If UE supports ALPHA_8_UNORM dds files then that's
fine, otherwise you'll have to convert it.
A shader for a given terrain tile looks like this:
[image: image.png]
I don't plan on providing tools to set this up automatically for you. I
struggle to see many legitimate use cases for exporting terrain tiles to
UE
beyond piracy.
On Sat, 7 Oct 2023 at 15:40, Titukis ***@***.***> wrote:
> Hey, the issue happens when tiles are in the global.cfg file but not
> actually in the map :) Blender then can't find them, but it's fixable by
> removing lines of non existent tiles.
>
> Also, I have other issue: how do I export the map tiles so I get terrain
> textures in UE? Everything I tried leads to white/black textures after
> importing. What settings should I use?
>
> 2023-10-07, št 12:44, Thomas Mathieson ***@***.***> rašė:
>
> > I'm not sure, but there are a few things you should check:
> >
> > - Do all the tiles import in OMSI Editor?
> > - Is the load radius setting set high enough?
> > - Do you get any errors while loading tiles?
> >
> > If you're still not sure, I might be able to help if you provide the
> > following information:
> >
> > - What version of Blender are you using?
> > - What version of the plugin are you using?
> > - What map are you trying to import?
> > - Can you send the Blender log?
> > - To do this open the Blender console like so:
> > [image: image]
> > <
>
https://user-images.githubusercontent.com/15130114/273378310-2230c2f6-bed7-4a49-b951-94ed2457ebce.png>
>
> > - And then copy everything into a new pastebin (
> > https://pastebin.com/) and give me the link to the paste.
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#85 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AXAHBTPK3QRCECLWVJVZTC3X6EP7LAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGY3DMOBZGA>
>
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#85 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ADTN4AXPWYQ2IJGV5NW4EQTX6FSVZAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG4ZDQNRSGE>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
Thomas
—
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXAHBTJPDCAUOLDOJLLW6PTX6GJTJAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG44DEMBVG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
My source code is available if you want to use it to write a utility to
export the heightmap as an image the import_terrain_mesh() function inside
io_omsi_tile.py handles heightmap decoding and mesh generation, you could
retrofit it to export the heightmap as a png.
…On Sat, 7 Oct 2023 at 19:01, Titukis ***@***.***> wrote:
I just need it for remaking the same map from OMSI. Maybe then there is a
way to get heightmap photo from blender and use it in UE?
2023-10-07, št 20:56, Thomas Mathieson ***@***.***> rašė:
> Terrain tiles use a somewhat complicated material setup which probably
> can't be exported by the FBX exporter (I'm sure you could write a script
> to do it, but I digress). You'll want to setup a shader in UE to match
the
> shader in blender, the shader in blender for terrain tiles is different
> for
> each tile as each tile can have a different number of layers. Each layer
> has a main texture and a detail texture (as specified in the omsi
editor)
> as well as a mask texture (stored in
> maps/<map_name>/texture/map/tile_X_Y.N.dds), the mask texture is a
> particular format of DDS that blender doesn't natively support (an
> ALPHA_8_UNORM) so I decode it manually (although I realise in the latest
> release there's a small bug in this), but this means that as far as
> blender
> is concerned it's no longer associated with a real file (it becomes
packed
> in the .blend file). If UE supports ALPHA_8_UNORM dds files then that's
> fine, otherwise you'll have to convert it.
> A shader for a given terrain tile looks like this:
> [image: image.png]
> I don't plan on providing tools to set this up automatically for you. I
> struggle to see many legitimate use cases for exporting terrain tiles to
> UE
> beyond piracy.
>
> On Sat, 7 Oct 2023 at 15:40, Titukis ***@***.***> wrote:
>
> > Hey, the issue happens when tiles are in the global.cfg file but not
> > actually in the map :) Blender then can't find them, but it's fixable
by
> > removing lines of non existent tiles.
> >
> > Also, I have other issue: how do I export the map tiles so I get
terrain
> > textures in UE? Everything I tried leads to white/black textures after
> > importing. What settings should I use?
> >
> > 2023-10-07, št 12:44, Thomas Mathieson ***@***.***> rašė:
> >
> > > I'm not sure, but there are a few things you should check:
> > >
> > > - Do all the tiles import in OMSI Editor?
> > > - Is the load radius setting set high enough?
> > > - Do you get any errors while loading tiles?
> > >
> > > If you're still not sure, I might be able to help if you provide the
> > > following information:
> > >
> > > - What version of Blender are you using?
> > > - What version of the plugin are you using?
> > > - What map are you trying to import?
> > > - Can you send the Blender log?
> > > - To do this open the Blender console like so:
> > > [image: image]
> > > <
> >
>
https://user-images.githubusercontent.com/15130114/273378310-2230c2f6-bed7-4a49-b951-94ed2457ebce.png>
>
> >
> > > - And then copy everything into a new pastebin (
> > > https://pastebin.com/) and give me the link to the paste.
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
>
#85 (comment)>,
>
> >
> > > or unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/AXAHBTPK3QRCECLWVJVZTC3X6EP7LAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGY3DMOBZGA>
>
> >
> > > .
> > > You are receiving this because you authored the thread.Message ID:
> > > ***@***.***>
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#85 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ADTN4AXPWYQ2IJGV5NW4EQTX6FSVZAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG4ZDQNRSGE>
>
> > .
> > You are receiving this because you commented.Message ID:
> > ***@***.***>
> >
>
>
> --
> Thomas
>
> —
> Reply to this email directly, view it on GitHub
> <
#85 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AXAHBTJPDCAUOLDOJLLW6PTX6GJTJAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG44DEMBVG4>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTN4AQ6FNDCFT2NSXLPDFLX6GKGBAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG44DGMZVGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Thomas
|
Yeah, I would if I'd know anything about Blender 😆
2023-10-07, št 21:13, Thomas Mathieson ***@***.***> rašė:
… My source code is available if you want to use it to write a utility to
export the heightmap as an image the import_terrain_mesh() function inside
io_omsi_tile.py handles heightmap decoding and mesh generation, you could
retrofit it to export the heightmap as a png.
On Sat, 7 Oct 2023 at 19:01, Titukis ***@***.***> wrote:
> I just need it for remaking the same map from OMSI. Maybe then there is
a
> way to get heightmap photo from blender and use it in UE?
>
> 2023-10-07, št 20:56, Thomas Mathieson ***@***.***> rašė:
>
> > Terrain tiles use a somewhat complicated material setup which probably
> > can't be exported by the FBX exporter (I'm sure you could write a
script
> > to do it, but I digress). You'll want to setup a shader in UE to match
> the
> > shader in blender, the shader in blender for terrain tiles is
different
> > for
> > each tile as each tile can have a different number of layers. Each
layer
> > has a main texture and a detail texture (as specified in the omsi
> editor)
> > as well as a mask texture (stored in
> > maps/<map_name>/texture/map/tile_X_Y.N.dds), the mask texture is a
> > particular format of DDS that blender doesn't natively support (an
> > ALPHA_8_UNORM) so I decode it manually (although I realise in the
latest
> > release there's a small bug in this), but this means that as far as
> > blender
> > is concerned it's no longer associated with a real file (it becomes
> packed
> > in the .blend file). If UE supports ALPHA_8_UNORM dds files then
that's
> > fine, otherwise you'll have to convert it.
> > A shader for a given terrain tile looks like this:
> > [image: image.png]
> > I don't plan on providing tools to set this up automatically for you.
I
> > struggle to see many legitimate use cases for exporting terrain tiles
to
> > UE
> > beyond piracy.
> >
> > On Sat, 7 Oct 2023 at 15:40, Titukis ***@***.***> wrote:
> >
> > > Hey, the issue happens when tiles are in the global.cfg file but not
> > > actually in the map :) Blender then can't find them, but it's
fixable
> by
> > > removing lines of non existent tiles.
> > >
> > > Also, I have other issue: how do I export the map tiles so I get
> terrain
> > > textures in UE? Everything I tried leads to white/black textures
after
> > > importing. What settings should I use?
> > >
> > > 2023-10-07, št 12:44, Thomas Mathieson ***@***.***> rašė:
> > >
> > > > I'm not sure, but there are a few things you should check:
> > > >
> > > > - Do all the tiles import in OMSI Editor?
> > > > - Is the load radius setting set high enough?
> > > > - Do you get any errors while loading tiles?
> > > >
> > > > If you're still not sure, I might be able to help if you provide
the
> > > > following information:
> > > >
> > > > - What version of Blender are you using?
> > > > - What version of the plugin are you using?
> > > > - What map are you trying to import?
> > > > - Can you send the Blender log?
> > > > - To do this open the Blender console like so:
> > > > [image: image]
> > > > <
> > >
> >
>
https://user-images.githubusercontent.com/15130114/273378310-2230c2f6-bed7-4a49-b951-94ed2457ebce.png>
>
> >
> > >
> > > > - And then copy everything into a new pastebin (
> > > > https://pastebin.com/) and give me the link to the paste.
> > > >
> > > > —
> > > > Reply to this email directly, view it on GitHub
> > > > <
> > >
> >
>
#85 (comment)>,
>
> >
> > >
> > > > or unsubscribe
> > > > <
> > >
> >
>
https://github.com/notifications/unsubscribe-auth/AXAHBTPK3QRCECLWVJVZTC3X6EP7LAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGY3DMOBZGA>
>
> >
> > >
> > > > .
> > > > You are receiving this because you authored the thread.Message ID:
> > > > ***@***.***>
> > > >
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
>
#85 (comment)>,
>
> >
> > > or unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/ADTN4AXPWYQ2IJGV5NW4EQTX6FSVZAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG4ZDQNRSGE>
>
> >
> > > .
> > > You are receiving this because you commented.Message ID:
> > > ***@***.***>
> > >
> >
> >
> > --
> > Thomas
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#85 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AXAHBTJPDCAUOLDOJLLW6PTX6GJTJAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG44DEMBVG4>
>
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#85 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ADTN4AQ6FNDCFT2NSXLPDFLX6GKGBAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG44DGMZVGQ>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
Thomas
—
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXAHBTPZXS775Z4BBS6GB33X6GLVRAVCNFSM6AAAAAA5LNJYGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG44DMMJRGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
As I don't plan to do anything further with this issue, I'm going to close it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, is it possible to import all map tiles to blender on right positions instead of them being at the same place?
The text was updated successfully, but these errors were encountered: