Comments (6)
Hi @sindney ,
Wolfram will explain it better than me, but the formula seems correct.
Do you have a case where it causes you trouble?
from minko.
I think we're using this method for both environment mapping and specular lighting. And we didn't have any issue so far and the formula is pretty much exactly what Wolfram suggest as Harmek pointed out :)
Can you please elaborate on the issue you encounter?
Do you have some screenshots, videos or app. that could demonstrate the issue?
from minko.
r = 2_(n_l)*n - l,
if you dot this by n you get r_n = 2(n_l)_1 - (n_l) = n*l which means both r and l point in the same direction - and in case of reflection this should be the opposite.
from minko.
@makc that's a very elegant demonstration :)
@sindney I'll close the issue for now, please feel free to re-open it or fill a new one if you have more inputs on your problem
from minko.
@promethe42 @Harmek @makc Wait wait, check this out. http://postimage.org/image/xcqbva17f/
from minko.
@promethe42 @Harmek @makc Oh, i get it, our desired reflect result wasn't the same. http://postimage.org/image/bjoar1zl3/
from minko.
Related Issues (20)
- where is minko shaderlab and shaderStudio HOT 5
- minko compile 1 error generated HOT 3
- Collision detection HOT 5
- when will you provide minko3 flash version? HOT 1
- Vulkan API HOT 1
- README Linux section is confuse HOT 2
- Collada model picking? HOT 11
- Chinese characters cannot display on minko-plugin-html-overlay HOT 3
- Mouse events unusable on MacBook HOT 1
- Integration with UIKit HOT 1
- Invalid NDK Path
- Compile Minko SDK android HOT 4
- CylinderGeometry HOT 1
- Using a webserver in the compiled application for an html overlay
- Has minko been abandaned by original developers? HOT 7
- I want use haxe to reimplement the minko source code. HOT 2
- haxe to reimplement the minko source code. HOT 2
- Android build instructions out of date HOT 1
- Integration into Qt HOT 2
- Any chance of enabling discussions on this repo?
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 minko.