How magomestrexd/trabalhogc3d works
Passeio Virtual is a browser-based first-person WebGL beach scene. A visitor moves and looks around with keyboard and mouse; the application updates the camera and renders the scene, including Phong lighting, animated sea, and textured 3D models. The implementation is concentrated in src/main.js, so several responsibilities share that source path. The excerpts show camera input, OBJ/MTL and texture loading, shader setup, and sea animation; other documented capabilities are represented, but their exact internal wiring is not visible.
Main entry points: main.js WebGL app · models OBJ and MTL files · textures Texture files
Components 13
Visitor interaction
- Camera controls
src/main.js - Camera matrices
src/main.js
Scene and rendering
- WebGL app
src/main.js - Shader setup
src/main.js - Phong shading
src/main.js - Scene renderer
src/main.js - Sea animation
src/main.js
Models and materials
- OBJ loader
src/main.js - MTL loader
src/main.js - Texture loader
src/main.js - OBJ and MTL files
models - Texture files
textures
Other components
- Visitor
Connections 12
- Visitor → WebGL app: opens scene
README.md - Visitor → Camera controls: provides input
README.md - Camera controls → Camera matrices: updates view
src/main.js - Shader setup → Phong shading: configures shaders
src/main.js - Scene renderer → Phong shading: sets uniforms
src/main.js - Scene renderer → Sea animation: animates sea
src/main.js - WebGL app → Scene renderer: renders scene
src/main.js - WebGL app → OBJ loader: loads models
src/main.js - OBJ loader → OBJ and MTL files: fetches OBJ
src/main.js - OBJ loader → MTL loader: loads materials
src/main.js - MTL loader → Texture loader: loads maps
src/main.js - Texture loader → Texture files: loads images
README.md