![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Multiple light sources I am trying to do the following: I need to apply ambient lighting to one mesh, while at the same time applying directional lighting to another, without the light sources influencing their respective meshes. Is there any way of doing this in avalon? Thanks in advance, Pedro A. Rico |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Multiple light sources Sorry, I meant without having each light source influence any meshes other than the one it was intended for. "Pedro A. Rico" wrote: > I am trying to do the following: I need to apply ambient lighting to one > mesh, while at the same time applying directional lighting to another, > without the light sources influencing their respective meshes. Is there any > way of doing this in avalon? > > > Thanks in advance, > Pedro A. Rico |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Multiple light sources You can't restrict a light to specific meshes. The general solution would be to create two ovelapping Viewport3Ds. One with one mesh, one with the other. Given the specific scene you described below, there would be another way. Instead of having an AmbientLight, use an EmissiveMaterial with the same color as the AmbientLight on the "ambient mesh." Caveat: EmissiveMaterials are "transparent" because they don't write to the depth buffer so if you have something in front or behind it make a MaterialGroup that includes a compeletly transparent DiffuseMaterial in addition to the EmissiveMaterial. This way your "ambient mesh" will look like it has ambient lighting and it will not be affected by the DirectionalLight. (If you had a PointLight instead of a DirectionalLight you may be able to set the Range so that only the mesh you want is hit by the light.) Jordan > Sorry, I meant without having each light source influence any meshes other > than the one it was intended for. > > "Pedro A. Rico" wrote: > >> I am trying to do the following: I need to apply ambient lighting to one >> mesh, while at the same time applying directional lighting to another, >> without the light sources influencing their respective meshes. Is there >> any >> way of doing this in avalon? >> >> >> Thanks in advance, >> Pedro A. Rico |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Too many update driver sources. | Drivers | |||
| WMI info from 2 sources | PowerShell | |||
| Composite and S-Video sources | Vista music pictures video | |||
| TV/Media Distribution and Multiple A/V Sources | Vista music pictures video | |||