-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add metallic material rendering to URDF robot #33
Conversation
- Added updateMaterials function to set metallic properties - Enhanced lighting setup for better metallic visualization - Preserved original colors while adding metallic effect - Set metalness to 0.4 and roughness to 0.5 Co-Authored-By: Benjamin Bolte <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
Add "(aside)" to your comment to have me ignore it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few minor things but overall good
|
||
// Correcting for the robot initial size and position. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need to delete this comment
@@ -89,7 +105,6 @@ const RobotRenderer: React.FC = () => { | |||
requestAnimationFrame(animate); | |||
controls.update(); | |||
|
|||
// Update joint positions with a sinusoidal pattern |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can keep this comment
const light = new THREE.AmbientLight(0x404040); | ||
scene.add(light); | ||
const ambientLight = new THREE.AmbientLight(0xffffff, 0.3); | ||
scene.add(ambientLight); | ||
|
||
const mainLight = new THREE.DirectionalLight(0xffffff, 2.0); | ||
mainLight.position.set(5, 5, 5); | ||
scene.add(mainLight); | ||
|
||
const directionalLight = new THREE.DirectionalLight(0xffffff, 0.5); | ||
directionalLight.position.set(1, 1, 1).normalize(); | ||
scene.add(directionalLight); | ||
const fillLight = new THREE.DirectionalLight(0xffffff, 0.8); | ||
fillLight.position.set(-5, 2, -5); | ||
scene.add(fillLight); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems unrelated to the pr but is a good change. can we make this into a separare pr, with a screenshot of how it looks?
Add metallic material rendering to URDF robot
This PR updates the URDF renderer to display metallic materials, matching the implementation from web-dashboard.
Changes:
Testing:
Reference implementation: web-dashboard/src/components/files/URDFRenderer.tsx
Link to Devin run: https://app.devin.ai/sessions/a4ebae7099e541cc85d5601727cf5bcb