[Home][Portfolio]Blog

Josh as a Developer

<<< Go backDefault image for blog post when there is not an image to show

Added Support For 3D Models In Blog Post

March 31, 2023 read in 2 minutes

Hello! In my free-time I have been spending a lot of time working in CAD software and creating 3D models to fix my real work problems using a 3D printer. I would like to showcase the work I have been doing here on this website but there is no straightforward way of showing 3D models unless I just show an image. I would like to give my viewers a more interactive experience than that.

I also know quite a few mechanical engineers and industrial designers that would love to have this functionality on their websites as well.

After watching this youtube video. I thought that Three.js might be the solution for me.

Looking further at their example, it looked even more promising for me that this could be a solution for my problem. (https://threejs.org/examples/#webgl_animation_keyframes)

Screen_Shot_2023-03-31_at_6.01.09_PM.width-800

I also found a page in their docs that showed how to load 3D files like STL into three.js (https://threejs.org/docs/index.html#manual/en/introduction/Loading-3D-models). So it made this look really promising... I was able to load a 3D modal with in a few hours likes this one:

(click and drag to see around the model)

Okay, Cool! I can now see 3D models in a web browser. How do I hook them into my CMS, Wagtail?

After reading these docs page from wagtail I was able to figure it out

  • https://docs.wagtail.org/en/stable/topics/streamfield.html
  • https://docs.wagtail.org/en/latest/advanced_topics/customisation/streamfield_blocks.html
  • https://docs.wagtail.org/en/stable/reference/streamfield/blocks.html#streamfield-block-reference

BOOM! #

Custom STL loader to load my STL files into my blog!

Screen_Shot_2023-03-31_at_6.12.49_PM.width-800 (1)

(Bonus STL for you)

(click and drag to see around the model)


Josh Martin

React.JS Developer and Maker

contact@cjoshmartin.com

Chicago, IL

Hello, I am Josh, I am a full-stack developer specializing in developing for Web and Mobile in React, React Native, Node.js, and Django. I used to work at Amazon in the advertising sales Performance department as a Frontend Engineer...

I have a degree from Purdue University in Computer Engineering with the use of my degree and passions I can offer support more than just Web and Mobile development. I can assist with any need related to hardware integration with internet-enabled devices or design needs in CAD and manufacturing.


Handmade by @cjoshmartin, with Django, Next.js and Wagtail (©2025)

Default image for blog post when there is not an image to show

IOS Universal Links with Expo, React Navigation and React Native

read in 7 minutes

Universal links in an expo project do not work exactly as expected when you are using React Navigation. This blog post will help you troubleshoot your issues with setting up Universal Links

Generating ZIP Files with Javascript

read in 2 minutes

I recently created a project called Hinge Trends and apart of the project was to take a set of in memory images, zip those images into a zip file then start a download all from inside the browser. The Library I used for creating the ZIP files is call

Bluetooth Low Energy (BLE) with React Native and Arduino

read in 27 minutes

I have just built my first bluetooth low energy application (BLE) for a client and there are a few gotchas I would like to go over. As well as explain what exactly is Bluetooth Low Energy and how it is different from Bluetooth classic.