embed .obj (or any 3d file) on a website

2019-07-24 17:39发布

问题:

How would I go about embedding a 3d object onto my website that allows drag to rotate (preferably all directions not just horizontally)

回答1:

Using javascript, it should be possible with one of the javascript 3D engines:

free javascript 3D engine

I have no experience with javascript 3D so I can't comment much except note the probable possibility.

Flash: several 3D graphics engines:

free flash 3D engines

I am working with Away3D and I find it fit for my needs. It has an AIR app called Prefab made by one of the developers that makes work with 3d formats easier. Whether other engines have the same or harder workflow I can not comment.

Which one you choose is up to you though. Be prepared to battle it out for a few days to get it working though, it can be hard if you are new to this stuff.

There are other options, Java applet or Unity3D plugin, but they probably are not what you are looking for.



回答2:

You can use javascript WebGL engines like Tree.js or Frak. There are also some ready services like 3D Wayfinder, where you can upload your model and embed it in your website.



标签: flash web 3d embed