- Manas Shukla 170050066
- Debabrata Mandal 170050073
For running threejs application:
- The project needs a server application runnning.
- Either of the two packages will suffice:
- node and npm : This will use webpack server.
- python 3: This will use python http server.
For running ray tracing application:
- Eigen library of c++
- Common tools(g++,make) for compiling c++ code.
-
cd code # install packages npm i # start webpack dev server npm start # note any changes in code will now directly be updated in browser
Then go to http://localhost:8080/
-
cd code python3 -m http.server
Then go to http://localhost:8000/dist/
There are four Model Currently we render:
-
- PlasmaBallSystem is used to generate arcs. Small Blue sphere is the target for arcs. You can hover over glass sphere to change the target. Ray Casting has been used to calculate point on glass sphere.
- The system uses potential function of negative point charge(center ball) placed in a surrounding of a strong positive charge(blue ball)
-
- ElectrodeSystem is used to generate arcs. We have implemented Paper in Reference 3 to generate arcs between red and blue electrode.
- Note that arcs are generated from both the electrodes. The difference can be seen more clearly in actual output.
- The system uses potential function of two opposite charge placed at a distance d apart.
cd rt
# compile code
make
# run the cornellscene2.xml file(takes some time to complete)
./rt ./scenes/cornellscene2.xml
Then go to scenes folder, there you can find cornellscene2.ppm image created.
For Ray tracing we have done stochastic model for generating arcs.
- stochastic_t class implements the stochastic process of generating arcs structure.
- cylinder_t represents object for representing cylinder.(every arc object can be modelled as a cylinder).
- cylinder_light_t represents cylinder light source. This will be used to light up the scene(every arc is a cylinderical light source)
- Main Paper
- Optimization Reference
- Electrode Simulation
- ThreeJs Framework
- ThreeJs Fundamentals
- GIF Maker
- Sound Credits
- Stochastic Method
- Ray Cylinder Intersection
Presentation Link : https://docs.google.com/presentation/d/1b6mn2sxPl3TzdRBLEK1IDcx9OKzhVzAHQ8gxjFgVZhM/edit?usp=sharing