Comments (5)
.setbeamcolor
is not a Candle function... Do you mean .setColor`?
And could you show a capture of the error you get on exit, please?
Thanks!
from candle.
That is the error i get on exit if i dont call the deconstructor manually on every object before exiting the with either window.close() or WM_QUIT or std::exit(0) then i get that error in image.
And same problem with #radial_light_fix on or off
Also, yes it is actually .setColor my bad
from candle.
Ok, I see there's now #32 for that last thing.
About the color not changing: There's only a reason I can think of (based on the code you showed on that issue). You are drawing the lights to a LightingArea in fog mode, but not drawing them afterwards to the scene.
When you draw to a fog area, the opacity is eliminated where the light is, but nothing else, there is no color added. If you want a light both to eliminate the fog and produce some color, then you have to draw it twice: one in the fog and one in the scene.
Let me know if that was the problem
Thank you!
from candle.
Hi thank you for responding, and can confirm after doing this:
its now working and i get color yay!! you might want to add a huge TIP to your tutorial docs when using .setcolor and fog
from candle.
Thank you for the feedback! ❤️
I remember mentioning it briefly in the fog tutorial, but I'll do it too in the .setColor description too.
Closing this ;)
from candle.
Related Issues (19)
- Mutex Lock crash when initialising RadialLight when linking static library. HOT 5
- Can`t compile on Linux HOT 1
- Make include headers - PUBLIC HOT 2
- Add all .hpp files in CMakeLists.txt HOT 2
- Build when SFML as subdirectory
- Weird snap shadow glitch HOT 24
- Error building with `make` HOT 3
- Directed light not casting shadow at 90º HOT 9
- M_PI is non-standard HOT 3
- Use of shaders
- #RadialLightFix deconstructor problem along with Access Violations HOT 1
- Are there ports to other langues? HOT 1
- Shadow display error HOT 1
- Why pointers instead of references? HOT 2
- candle::RadialLight has an offset origin point HOT 4
- Version 2.0 HOT 1
- Add Diego Arroyo as contributor HOT 2
- how can i run this on osx and ios HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from candle.