Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by motionblur · Nov 30, 2010 at 11:19 AM · textureresolutionlightmapbeast

How can I increase the Texture Size of the Lightmaps created with Beast?

I want to increase the size of the textures created by Beast as their defauilt is 1024x1024 and I need something higher, right now. I know there is a way as I have found a few topics in the Unity forums. Thoguh - I don't get them to work.

I was trying to get Robert's Instructions on how to increase the Lightmap Size to work but somehow it didn't work as expected (http://forum.unity3d.com/threads/56435-light-map-max-at-1k-solved?). Specifically - it created the entry in the menu bar but did nothing more.

What can I do to control the texture size of Beast's Lightmaps? And especially HOW do I do it?

Thanks :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by motionblur · Nov 30, 2010 at 03:42 PM

Okay - I finally DID find a way to get this to work, myself:

The problem with Robert's Script was that it somehow did not produce a pulldown menue to actually select the desired size. Being the brute force, unknowing programmer that I am I created a less sophisticated but at least for me (hopefully for others as well) working Script:


using UnityEditor;

public class AtlasSize_512 : EditorWindow { [MenuItem("LightmapSize/AtlasSize_512")] static void Init() { LightmapEditorSettings.maxAtlasHeight = 512; LightmapEditorSettings.maxAtlasWidth = 512; } }

public class AtlasSize_1K : EditorWindow { [MenuItem("LightmapSize/AtlasSize_1K")] static void Init() { LightmapEditorSettings.maxAtlasHeight = 1024; LightmapEditorSettings.maxAtlasWidth = 1024; } }

public class AtlasSize_2K : EditorWindow { [MenuItem("LightmapSize/AtlasSize_2K")] static void Init() { LightmapEditorSettings.maxAtlasHeight = 2048; LightmapEditorSettings.maxAtlasWidth = 2048; } }

public class AtlasSize_4K : EditorWindow { [MenuItem("LightmapSize/AtlasSize_4K")] static void Init() { LightmapEditorSettings.maxAtlasHeight = 4096; LightmapEditorSettings.maxAtlasWidth = 4096; } }


It's a C# Script and has to be put inside the 'Assets/Editor' Folder inside the project folder. What the script does is add a Lightmap Size Menue with four entrys: 512, 1K, 2K and 4K. As was stated in the thread after baking you need to set the max texture size of your lightmap to the according resolution in the inspector.

So if the script did not work four anyone else - maybe this one does. Hopefully. :)

You can see if it did work by setting the Resolution in the Lightmap Menu pretty high and then In the Editor under "lightmap Display" > Show Resolution. :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by SmaLL_D Productions · Oct 22, 2013 at 06:10 PM

How to fix?? Error CS0246: The type or namespace name `EditorWindow' could not be found. Are you missing a using directive or an assembly reference?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KrankyBoy · Apr 30, 2014 at 04:44 PM 0
Share

It means your missing:

using UnityEditor;

at the top of the class.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Blinking lines on model after lightmapped? 0 Answers

Beast Light-mapping maxAtlasWidth / maxAtlasHeight 0 Answers

Lightmapping: Low Quality shadows / strange mapping 0 Answers

Can I improve the resolution quality of a photosphere applied as texture to a 3d sphere gameobject? 1 Answer

How do I downsize all textures for mobile version? 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges