#Show point light in AR mode?

1 messages Β· Page 1 of 1 (latest)

flint lotusBOT
#

Hello there – I'm an AI powered assistant πŸ€– that might be able to help you with your question. Would you like me to try helping you?

πŸ’‘ Did you know that we now also have a forum?
Join now with your discord account!

How it works:
Reply to the messages of the bot that end with a thread_id to interact with it and ask follow-up questions. You can also mention the bot directly in this channel to get help.

Help requested: please wait a moment...

#

Here is what I found for you 🧠 #1212749866598400060 message

#

Based on the information found in the Needle Engine documentation and types, regarding your requirement to light plane meshes such as floors or tables with point lights in real-time mode, you should consider using the Light component. Here's a summary of how the Light component works, which supports different types of lights including point lights.

export declare class Light extends Behaviour {
    private type; // This allows specifying the type of light.
    range: number; // Applicable to point lights, specifying the range of the light.
    color: Color; // The color of the light.
    intensity: number; // The brightness of the light.
    ...
    createLight(): void; // Method to create and configure the light.
    ...
}

A few tips for using point lights to illuminate your meshes in real-time:

  • Ensure the type of the Light is set to LightType.Point to create a point light.
  • Adjust the range to control how far the light reaches.
  • Set the color and intensity to get the desired lighting effect.
  • Properly position your light in the scene so it illuminates your target meshes effectively.

Remember, lighting effectiveness in real-time also depends on other factors such as the material properties of the meshes. Make sure they are set to interact appropriately with the lighting in your scene.

1 messages left
thread_LWZVp0qAQj5hBUoq5PQO5lDH

tranquil sail
#

I need it to work in QuickLook / AR mode

#

there is spot light above this light which cast shadow on plane under, with shadowcatcher. But I need to catch the light. I can fake it with plane gradieeent transparency and alfa, butwould be great to have it realtime

potent shuttle
#

Glad to hear! Yes, that sample shows how to use both light and shadow catchers πŸ™‚

tranquil sail
#

Yep but its not working on IOS AR mode, or is it? I saw just white plane.

turbid holly
#

Hey πŸ‘‹ while QuickLook currently doesn't support custom shaders, there should at least be shadows affecting the environment out-of-the-box. Apple doesn't support custom lights in QuickLook right now, once they do, we will add that functionality.

Depending on your scene you could also use a trick and bake lighting to a emissive texture for the floor.