Questions tagged [physics]
The physics tag has no summary.
36 questions
1 vote
2 answers
135 views
OpenGL output is scaled, why?
I've noticed a bug in my code. I run the app, and right-click to add stamps (sprites) to the system. The stamps are drawn too small though, by a non-negligible amount, so that the stamp is not drawn ...
0 votes
1 answer
68 views
Can raytracing be used to determine a certain gas distribution in a real planet's atmosphere?
I want to calculate the capacity that the planet Mars has regarding protecting against UV-light for a final project I will be doing my last year in upper secondary school. UV-light is mainly absorbed ...
0 votes
1 answer
97 views
How to ensure that a randomly-generated velocity vector moves the camera forward within a valid arc?
I spawn a camera in a scene using random coordinates for x and y and setting z=0 and orient ...
0 votes
0 answers
83 views
3D Bouncing Cube
I'm trying to write a little program with a bouncing cube but I can't find the right x, y, z and angle for it. I have these lines: ...
2 votes
0 answers
123 views
Implementing monte carlo path traced refractions problem
I am writing a forward monte carlo path tracer with the added feature of specular refractions for transparent materials, I have managed to come this far but something is not quite right and I am ...
2 votes
2 answers
279 views
Blackbody curve to floating RGB
I want to set the color of the lamps in my game with a black body curve, but the approximations I can find for it are all in sRGB color space; and I want it in linear floating RGB. The closest thing ...
2 votes
2 answers
507 views
Physically Based Shading for Diffuse surfaces
So I am currently in the process of implementing Physically based Shading in my pathtracer using microfacet models and I'm quite stuck at comprehending light interaction with diffuse surfaces. First ...
0 votes
1 answer
138 views
How to rotate a shape in another 3D software so that the rotation matches with the rotation in Blender?
I import a mesh in Blender, export it with setting axis_forward='-Z', axis_up='Y', import in NVIDIA's FleX, rotate it and store it on disk; I call this mesh ...