Jump to content

3DSMax LightMap generation for Babylon


pco38
 Share

Recommended Posts

Hello,

Is somebody can explains me the setting I need to use (in 'Render to Texture' popup) to generate LightMaps with 3DSMax for Babylon.js?

I done a lot of test and the result when the model is exported for Babylon is a black screen...

Thanks for your help.

 

Regards

Link to comment
Share on other sites

In 3dsmax you just have to put your lightmap in the ambiant channel or lightmap channel (depends whats your want) of your (standard) material. You can use UV1 or UV2. Then, export to babylonjs, and it should be works.

As for the render to texture popup, settings depends only of your render engine. It only generates a texture map. I don't use the option which create shell material, maybe your issue come from here ?

Link to comment
Share on other sites

It's exactly wath Idone, but It doesn't work with my model... Black screen in Babylon...

You can see the options I used in attached picture (sorry it's in French)

 

ThanksRendu.jpg

Link to comment
Share on other sites

There is no reason that the issue comes from the RTT, this tool is just 3dsmax internal.

Is your scene works without lightmap ? Have you try to set a lightmap via javascript, just to test ?

Here an example if you want (here, the lightmap will use UV1 by default, but we don't care at this time) :

scene.getMeshByName("yourMeshName").material.ambientTexture = new BABYLON.Texture("yourLightmap.png", scene);

 

Link to comment
Share on other sites

  • in the RTT, don't create shell material nJ80KGa.png
  • reassign the right material GCMWQMg.png
  • in this material, set the ambient color to whatever except black
  • maybe set the scene ambient color too
  • create a camera

and it should works :

f4tmdZ7.png

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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