Gandi Posted April 12, 2010 Share Posted April 12, 2010 Hi! I was thinkin about adding a new light type which also gets rendered in the render lights pass.. now my question: is that even possible, or do i have to do it like some kind of post-process effect?? i fear that it aint possible that easy, but it would really be better if i could use it as a light... Quote Link to comment Share on other sites More sharing options...
Canardia Posted April 13, 2010 Share Posted April 13, 2010 You can do an area light by removing one line in the spotlight shader. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Gandi Posted April 13, 2010 Author Share Posted April 13, 2010 y.. but i dont want to overwrite a light i want to add an extra one!! so i want to use all light types + my new one.. Quote Link to comment Share on other sites More sharing options...
Canardia Posted April 13, 2010 Share Posted April 13, 2010 Of course you shouldn't modify existing files, but take a copy and rename it and modify it. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Gandi Posted April 13, 2010 Author Share Posted April 13, 2010 and how should i use the new file afterwards? CreateDirectionalLight() creates a directional light, but how should i e.g. create a directionallight which uses my shader? Quote Link to comment Share on other sites More sharing options...
Gandi Posted April 22, 2010 Author Share Posted April 22, 2010 so, is there a way of doing that (josh?) Quote Link to comment Share on other sites More sharing options...
Chiblue Posted November 1, 2010 Share Posted November 1, 2010 so, is there a way of doing that (josh?) Did you every get a response to this, I am trying to do the same thing? Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Rick Posted November 1, 2010 Share Posted November 1, 2010 These lights and their functions are sort of hardcoded in the API. I'm not sure you can really do this, and even if you could I think Josh does some things behind the scene to speed lights up that I'm not sure you would have access to. Quote Link to comment Share on other sites More sharing options...
Chiblue Posted November 1, 2010 Share Posted November 1, 2010 Ok thanks, so then I guess I am back to my original question, I have a florescent light model that I am using in a scene and want to illuminate the scene to simulate the florescent lights illumination, how would I do this, I have tried all light types and point light is the closest but creates a point of light rather than a light that covers the area of the tube? Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Rick Posted November 1, 2010 Share Posted November 1, 2010 My first response would be, are you comparing this functionality to any other engine that has this, because in every engine I've used there isn't such a light. Normally the texture of your light would be bright white, then you put a point light in the middle, or you could put multiple point lights if you wanted to, but that would probably degrade the FPS in that area. Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 1, 2010 Share Posted November 1, 2010 er... do you not read the posts here? using a simple glow shader plus the change described here should work for what chiblue is attempting Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Chiblue Posted November 1, 2010 Share Posted November 1, 2010 Sorry, this is what I have done so far, I created a model that has multiple florescent light tubes in a single line with a fixture between them, I then created a glow image and using the glow shader created the material to make the tubes appear to glow. Even though I do say it myself they look pretty cool, but now I want to light my scene using lights that will create the light and shadows similar to the light given my a florescent tube. So back to the question, point light is to issolated to a particular "point" (excuse the pun) the spot light is obviously not correct, direction light will not work becuase I need 360 degree emission of the light, and ambient will not work becuase of its ability to cast directional shadows... So I am left with point light which gives me the correct shadows and light/darks areas, but I want the point light to be along the entire lenght of the tube evenly? I hope this makes some sort of sense... I need light glow on the ceiling and dispersed light below... Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Rick Posted November 1, 2010 Share Posted November 1, 2010 er... do you not read the posts here? using a simple glow shader plus the change described here should work for what chiblue is attempting Dangit, so now I have to piece together multiple posts to respond to one post. WTF. I don't read all the posts, just some. It seemed like the suggestions that were given were still not giving what Chibule is after. I was just thinking maybe what he was after was something that wasn't really done in most engines to begin with. [EDIT] Just replied to the other thread after reading this one Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.