Jump to content

dynamic lighting


Andr3wHur5t
 Share

Recommended Posts

Hi,

I am using LE3 with c++.

 

I programmatically made a spotlight which I want it to appear on all surfaces but it only appears to show on non-lightmapped surfaces.

 

I’ve messed with the material settings of the lightmapped surfaces, and the light itself but that didn’t seem to help.

 

Can someone help me out???

 

Thanks in advanced

Tools:

AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro

 

Programing & Scripting Languages:

C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby

Link to comment
Share on other sites

I'm not sure if there is a way to calculate lighting on lightmapped surfaces from code but that sounds like what you'd need in your situation. Of course that would only work with a static light. If your spotlight moves I don't think there is anything you can do to have it move real-time and show correctly on a lightmapped shader surface.

Link to comment
Share on other sites

Im basicly trying to make a flashlight for my player, is there another approach that might work? using decals or somthing?

Tools:

AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro

 

Programing & Scripting Languages:

C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby

Link to comment
Share on other sites

Texture projection it is

 

Thanks everyone for your help

Tools:

AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro

 

Programing & Scripting Languages:

C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...