We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How to add lensflare to your scene

Home Forums Tutorials How to add lensflare to your scene

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30896
    core3dcore3d
    Licensee

    OK here you go;
    1. You need Lensflare.js in you app directory.
    Lensflare.js

    2. Enable your app to import modules in your myapp.html file.

    3. Import Lensflare module to your myapp.js file.

    This needs to be on top of your file after “use strict” line.

    4. Add an omnilight on your scene as “Omni001” in your 3D application (blender or max or maya)

    5. Add lensflare textures on your app directory inside (../textures/lensflare/).

    6. Add lensflare code to your runcode section.

    Thats all.
    Happy lensflaring.
    Thanks to zjbcool for his awesome example about importing modules.

    • This topic was modified 2 months, 3 weeks ago by core3dcore3d.
    Attachments:
    You must be logged in to view attached files.
    #30914
    Yuri KovelenovYuri Kovelenov
    Developer

    Awesome! Thanks for sharing your solution! :good:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #30926
    Avatarweb
    Licensee

    Thx you very much for that write up. This is pure gold.

    #30947
    zjbcoolzjbcool
    Licensee

    :good:

    ——https://zjbcool.com/

    #31580
    Avatarvisualizer
    Newbie

    Wow
    looks interesting !

    can you provide a simple example file as well?
    For newbie & no programmer like me it would be great guide.

    Its really nice idea :good: you shared here !

    :good:

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.