-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WYSIWYG lights using Blender's UI for spill, custom, param lights #183
Comments
Ondrej -- we should come up with some specs for this at some point; light integration -is- something that would really bring modeling forward. One of the tricky things is how Blender can know how a light works; my thinking is that we (LR) could provide more useful annotations in lights.txt so that Blender can correctly translate a named or param light, just like Blender (2.49) can use DataRefs.txt to manage animations. |
From what I can tell this is untouched? The exporter has basic support for param lights but you need to place one light per param and setting the spill color is not supported. I'll probably come to lights soon on the model I'm working on and maybe I'll pick this up to make my life easier. |
We are planning WYSIWYG light editing including spill as the next major feature once 3-4 is finished. 3-4 will include v11 attribute support and bug fixes for animation and attributes. |
Up until recently, one of the parameters that controlled directionality for the "custom lights" in Blender 2.7 was the RGB value of the light in Blender. E.g. to have a custom light with a custom png billboard shine in a particular direction, let's say "forward", one would have to see the exported .obj have something like this in it:
where the "0 0 1" after the positional coordinates, according to the documentation represent RGB values (tinting of the halo texture) but actually in practice represent a directionality of the light... in this case, a light shining straight back, with not too much "focus" to the light. If one would want this same halo to be visible from the front, one would have to change the "0 0 1" to "0 0 -1", or, if you want the cone where that halo is visible to be tighter, you'd increase the value of the last number in the negative direction , like "0 0 -7". This used to be doable via Blender's RGB control sliders. But a recent version of Blender discontinued support to enter negative values into the RGB slots, so now the exported .obj files have to be hacked, in order to affect directionality of custom light billboards. Now, I'm sure this'll be addressed once lights are re-vamped. Just wanted to make Ben and Ted aware of this. |
For reference, this was resolved in #316 |
This was brought up again in #312. The ideas brought up so far
Some common elements from lights.txt
Elements that have no Blender Mapping. The good news is that this won't actually be many (so far)
Concerns
The good news is that lights don't get added often so we probably don't have to worry about having a billion new properties like how manip has them. Either some guarantees are made about names in lights.txt and some REALLY good choices are made for a subset of common light parts, or we stick with just the basics - XYZ from location, RGB from a color picker, A is autoset to 1, DX, DY, DZ from the rotation. The manual override for this will be going back to the old param light type. |
There is another issue with WYSIWYG - Blender doesn't render things the same as X-Plane. We could be making a promise we can't keep. What You See Is Probably The Type Of Thing You'll Get :/ |
There is also Blender 2.8 to think about. Looking casually at it now, the some of the labels and options are different between the two. I vote to move this feature to after the transition has been made. |
"I vote to move this feature to after the transition has been made." |
Merged! 0fb0614 Prepare ye masses, for this awesome feature will soon be upon you in beta.2! |
Suggest using Blender's spot lights for this. Those parameters can be exported and translated for X-Plane's lighting usage.
For instance,
-"spot shape" (in Blender) can be translated for X-Plane's spill lights, as the cone size and angle of the spill. It could also be used in X-Plane's custom lights for custom lights' W value (Width).
-"Energy" (in Blender) can be translated into X-Plane's spill lights, as size parameter, or for Custom lights for the halo size.
-Directionality is integrated in Blender's spot lights... it would just have to be translated to the OBJ8 lighting direction format.
-An X-Plane override to attach it to brightness ratio dataref.
-Translate the RGB values of the spot light for use in X-Plane.
-Leave current infrastructure as is, for backward compatibility, but use spot lights for "new" export capabilities.
The text was updated successfully, but these errors were encountered: