Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

New Award Winning Custom Feature

TimRice
TimRice Member, Moderator, Onshape Employees Posts: 315 image
Photography has always been a fun hobby for me and recently I unearthed an old film camera. Studying light, thinking about how film works, and loving a good FS challenge, I was curious if I could recreate the Polaroid camera in Onshape. At the same time the Onshape team hosted an internal design contest open to all categories. The time pressure was on!

Calculating light in 3D environments is certainly not new. This site has a fantastic write up on how light is calculated on computers and heavily informed the development for this feature:
https://learnopengl.com/Lighting/Basic-Lighting

The basic algorithm for this feature is to cast a ray from the camera into the scene and calculate the intensity of light at the intersection with model geometry. To keep things simple the image is only black and white. Shadows are considered as well as light attenuation (falloff over a distance).

The scene:



The final result:


Also happy to take home first prize in the internal design competition 🙂

Add the feature:
https://cad.onshape.com/documents/de0dbdee5fd3fd6810179f54/v/279829d6a0503ecd86a33c2d/e/fb5f3d22261e41f0dcca0ecb



And of course a big thank you to @Jake_Rosenfeld for guidance and code review help!

A second thank you to @AlexPitt for developing ErgoMan which I used as my studio model.
Tim Rice | User Experience | Support 
Onshape, Inc.

Comments

  • Jake_Rosenfeld
    Jake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646 image
    Great job @TimRice !!
    Jake Rosenfeld - Modeling Team
  • sebastian_glanzner
    sebastian_glanzner Member, Developers Posts: 498 PRO
    @TimRice
    This is really cool and creative!

    Is there a way to automatically create Bitmap Files with a FeatureScript? Can we export the rgb matrix as text file?
  • EvanReese
    EvanReese Member, Mentor Posts: 3,059 PRO
    wow Tim! my mind is thoroughly blown
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • bryan_lagrange
    bryan_lagrange Member, User Group Leader Posts: 1,036 ✭✭✭✭✭
    In Louisiana we would be asking what kind of Voodoo are you doing?
    Bryan Lagrange
    Twitter: @BryanLAGdesign

  • George_Anderson
    George_Anderson Member Posts: 71 ✭✭

    Shake it, shake, shake it.
  • MichaelPascoe
    MichaelPascoe Member Posts: 2,945 PRO
    Wow..! nicely done.

    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    â–šâ–žâ–šâ–žâ–šâ–žâ–šâ–žâ–š
    ________________________________________________________________________