• 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
1
Question by Recluse · Aug 11, 2011 at 03:50 PM · shaderlightinglightmapvertexrealtime

Problems with Lightmapping and realtime lights

Hi. I'm using the latest version of Unity and have just started lightmapping my levels with Beast (previously was doing this externally in Blender).

The results are good, but throwing a couple of problems:

My level environments are all single objects which use the vertex lit shader and I have a single realtime point light in my scene, which I use to cast a red glow on the level geometry where a laser hits. This is a vertex light, not pixel.

Unfortunately, after I lightmap my level the vertex light no longer affects the geometry - unless I set it to pixel, which is terribly slow and not needed for this effect. I also have to change the material on my object to diffuse instead of vertex lit to get the light to show up.

Why does lightmapping an object break its realtime lighting?

If I want my object vertex lit and reacting to a vertex light why would lightmapping it break this, and require a point light and a different shader (diffuse)?

Any help would be greatly appreciated.

Comment
Add comment · Show 2
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 Recluse · Aug 11, 2011 at 04:01 PM 0
Share

To summarize my problem more briefly:

how do I have a lightmapped object which is also lit by a realtime vertex point light? I can't seem to get this!

avatar image rudidev08 · Nov 20, 2012 at 12:44 AM 0
Share

I've hit the same issue - works with diffuse, but not with vertex light.

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Beast Lightmapped object can't be lit by realtime lights? 1 Answer

Light mapping does not map some of my objects 1 Answer

what does LightingLambert_DirLightmap()? 0 Answers

Transparent Vertex Shader Error 1 Answer

Shadows and ambient occlusion post processing don't work... until I click on the shader 1 Answer


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