Skip to content

feat: earth globe component#28

Merged
valdo404 merged 28 commits intomainfrom
fix/webgpu-canvas-surface-creation
May 8, 2025
Merged

feat: earth globe component#28
valdo404 merged 28 commits intomainfrom
fix/webgpu-canvas-surface-creation

Conversation

@valdo404
Copy link
Copy Markdown
Owner

earth globe component using:

  • wgpu
  • wgsl
  • canvas
  • animation api

Laurent Valdes added 10 commits April 19, 2025 21:12
- Add SurfaceTarget::Canvas implementation for WebGPU surface creation\n- Enable wgsl feature in wgpu dependency\n- Fix shader source import using proper Cow::Borrowed syntax\n- Add necessary web-sys canvas features in Cargo.toml
- Add signal-based animation system with rotation control\n- Implement proper WebGPU rendering loop with Dioxus timing pattern\n- Configure depth testing and 3D rendering pipeline\n- Create animation loop with browser-friendly async yields\n- Add gloo-timers dependency for animation timing
- Replace Python deployment script with Bash script
- Move static assets from webapp to dedicated directory
- Remove raphael.jpeg
- Script configures GCS bucket with proper web settings
- Set appropriate cache control headers
- Update wgpu API calls to match v25.0.0 including texture handling

- Add proper routing with Dioxus router for better navigation

- Fix environment variable handling for static assets

- Improve debugging and code documentation
- Add Three.js bindings for WebAssembly interaction
- Create spinning cube component as initial 3D element
- Fix borrow checker issues in animation loop
- Clean up console logging
- Implement proper script loading
- Improve error handling for WebGL renderer
@valdo404 valdo404 force-pushed the fix/webgpu-canvas-surface-creation branch from 015192c to acd0e98 Compare May 5, 2025 23:22
Laurent Valdes added 3 commits May 6, 2025 09:59
- Commented out texture loading code instead of removing it

- Implemented basic red sphere rendering

- Disabled controls and animation for simpler testing

- Added extensive logging to diagnose rendering issues

- Fixed color value specification in material
@valdo404 valdo404 force-pushed the fix/webgpu-canvas-surface-creation branch 3 times, most recently from a58dd6a to 013c178 Compare May 7, 2025 17:27
- Add proper TextureLoader bindings with callback support
- Replace JS evaluation code with Rust implementation
- Fix animation loop to prevent panics
- Improve state management for resources and callbacks
- Fix type conversions between geometry and material types
@valdo404 valdo404 force-pushed the fix/webgpu-canvas-surface-creation branch from 013c178 to 7165a98 Compare May 7, 2025 17:41
Laurent Valdes added 11 commits May 8, 2025 02:48
- Remove CountriesMap in favor of plain HashMap
- Move all country-related logic to CountryRepository
- Update settings component to use repository pattern
- Remove JsValue conversions in favor of plain Rust types
- Simplify error handling with String errors
- Remove default padding from base button class
- Add specific padding for about button
- Update BlockButton to use Option<String> for image_url
- Remove unused viewer module
- Clean up comments and code formatting
- Add gloo-storage dependency
- Update devcontainer configuration
- Remove duplicate code in windsurfrules
- Improve SelectWithSearch component
- Replace trunk with dx build --release for WASM
- Add proper env vars for WASM build
- Package and publish WASM build to GitHub Packages
- Exclude webapp from native build and tests
- Split build steps for better target separation
- Create separate native and webassembly jobs
- Set proper targets for each job (x86_64-linux-gnu and wasm32-unknown-unknown)
- Remove redundant protoc install from wasm job
- Fix action versions and add digests
Laurent Valdes added 3 commits May 8, 2025 19:36
- Install protobuf compiler in WebAssembly build
- Required for clickplanet-proto dependency
- Use cache-cargo-install-action for faster dioxus-cli install
- Add cargo caching for both native and wasm builds
- Use different cache keys for native and wasm targets
@valdo404 valdo404 merged commit 860e32b into main May 8, 2025
3 checks passed
@valdo404 valdo404 deleted the fix/webgpu-canvas-surface-creation branch May 8, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant