Jump to content

Light mapping


TEDERIs

Recommended Posts

  • 4 weeks later...
Are you using another UV Channel for that ? Want to know, this can help a lot on the visual if you use an appropriate external program to calculate the light.

Yes, using the second reflection UV channel. We use the original precalculated light maps, so there is no need for external programs. But I'm curious to know how it is possible to improve the shadows.

Link to comment
  • 2 weeks later...
What required functionality does MTA:Eir provide ? Is it about engineSetWorldRenderMode ? Or client side floating-point precision ?

Used both functionality. First to fix problems with alpha channels. And the second to generate the progressive meshes(one LOD set).

Link to comment
  • 4 weeks later...
  • 2 months later...
Now the shadows are stored in separate files and accessed with extra textureState.

So they are baked in 3ds (or some other software), saved as a texture, applied per object texture using MTA shader functions. Means that a modeler should consider that concept when creating the model - 1 color texture and 1 shadow texture per model ? Or at least the textures shouldn't repeat on other faces of the model ? What about baking - Do You automatize the process for a number of entities ?

Link to comment
Now the shadows are stored in separate files and accessed with extra textureState.

So they are baked in 3ds (or some other software), saved as a texture, applied per object texture using MTA shader functions. Means that a modeler should consider that concept when creating the model - 1 color texture and 1 shadow texture per model ? Or at least the textures shouldn't repeat on other faces of the model ? What about baking - Do You automatize the process for a number of entities ?

Yes, each model has at least two textures: base and lmap. All textures are stored in the TXD archive and loaded by internal RW resource slicer. Shader also use two textureState and UV maps for the colors and shadows respectively. May be any number of material splits. I created a set of scripts for baking of shadows and export them in the DFF models. As the software I use Blender.

Link to comment
  • 4 weeks later...
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...