- Home /
how to use external (vray) lightmaps in unity
Hey guys, don't you know how to use already prerendered lightmaps (in some external program aka Vray) on your objects in Unity?
1 guy told me if I import my FBX file with IDs 1 for diffuse and IDs 2 for lightmap and use legacy lightmap shader it will work, but my lightmap takes ID 1 as well as the diffuse. Where do you set what id what map has? Also the effect of lightmap is visible only in scene window and not in the actual game window :(
Could anyone help?
Ty in advance :)
Seems like i gotta ask first to figure it out for myself. Going to be quite beginners answer probably, but:
What I did wrong is: I didn't use "Reset UVWs" option in unwrap modifier in 3ds max after changing IDs on the UNWRAP. What should I do is to use just 1 Unwrap modifier, setup IDs in channel 1, then on the same modifier change IDs to 2, use reset uvws option and remap the object for channel 2 in the unwrap (which is lightmap channel in unity - at least for legacy shaders).
I found this tutorial to be very usefull for this : https://www.youtube.com/watch?v=BY-n$$anonymous$$xyH$$anonymous$$Rc
Then everything works fine. Only problems I have now is tuning the lights intensity I use in unity atop to the lightmaps so the lightmaps are not overridden to much etc. But it works fine now :)
I was stuck on this for a few days, I hope I'll at least help somebody else if he has the same problem :)
Post your own answer as an answer ins$$anonymous$$d of comment and mark it as correct, so other can see that this is solved. Welcome to Unity Answers.
Answer by Beauchamp · Dec 30, 2014 at 03:55 PM
Seems like i gotta ask first to figure it out for myself. Going to be quite beginners answer probably, but:
What I did wrong is: I didn't use "Reset UVWs" option in unwrap modifier in 3ds max after changing IDs on the UNWRAP. What should I do is to use just 1 Unwrap modifier, setup IDs in channel 1, then on the same modifier change IDs to 2, use reset uvws option and remap the object for channel 2 in the unwrap (which is lightmap channel in unity - at least for legacy shaders).
I found this tutorial to be very usefull for this : https://www.youtube.com/watch?v=BY-nKxyHKRc
Then everything works fine. Only problems I have now is tuning the lights intensity I use in unity atop to the lightmaps so the lightmaps are not overridden to much etc. But it works fine now :)
I was stuck on this for a few days, I hope I'll at least help somebody else if he has the same problem :)
Your answer
Follow this Question
Related Questions
Can I export my Unity lightmaps to a texture file? 0 Answers
How to disable lightmaps at runtime 1 Answer
Lightmapping and normal map issue 0 Answers
Do I still need lightmaps? 1 Answer
How can I fix these seams/artifacts? 0 Answers