Home » Community » Shapeways Shops » Integrating shapeways 3D view into my own webpage?
Search Search  
Show: Today's Messages    Show Polls    Message Navigator
Integrating shapeways 3D view into my own webpage? [message #40089] Sun, 11 December 2011 03:02 UTC Go to next message
avatar thomashuang.net  is currently offline thomashuang.net
Messages: 83
Registered: September 2011
Go to my shop
Member
I want to port the entire shapeways 3D viewer code into my own page. Is this possible or allowed? Which section of the page code would I need?

I want to use specifically the one which appears to be several screenshots compiled together, and not the actual 3D model because I'm a bit worried that it's possible for someone to save the 3D model file.
Re: Integrating shapeways 3D view into my own webpage? [message #40358 is a reply to message #40089 ] Fri, 16 December 2011 15:41 UTC Go to previous messageGo to next message
avatar MichaelMueller  is currently offline MichaelMueller
Messages: 217
Registered: July 2011
Go to my shop
Senior Member
Hi,
I ve checked the source... I guess shapeways is using "3DNP"...
http://www.thoro.de/page/3dnp-introduction-en
Have fun!
Michael


Michael Mueller
www.pookas.de
Re: Integrating shapeways 3D view into my own webpage? [message #40727 is a reply to message #40358 ] Sun, 25 December 2011 08:52 UTC Go to previous messageGo to next message
avatar woody64  is currently offline woody64
Messages: 449
Registered: November 2008
Go to my shop
Senior Member
It seems that embedding that in an iframe of proper size (equal to the size used on the shapeways page) can work:

http://www.shapeways.com/sw/static_html/3dnp.html?total=0180 &levels=5&startlevel=3&model=394291&version= 0

change the model number according to your model.

Woody64

[Updated on: Sun, 25 December 2011 10:48 UTC]


More then 7500 items sold over SW (but still a hobby)
Minifigcustomsin3d at: Facebook Flickr
References: 3d Printing Industries, CNN, J. Burks, Ugly Duckling, M.Evans, Stop Motion Film,Computer BILD
More then 270 shop items (more then 146 already printed once)
Re: Integrating shapeways 3D view into my own webpage? [message #40728 is a reply to message #40727 ] Sun, 25 December 2011 10:53 UTC Go to previous messageGo to next message
avatar woody64  is currently offline woody64
Messages: 449
Registered: November 2008
Go to my shop
Senior Member
It seems also to be possible to access the frames inside this precalculated picture and to generate an animated gif.

index.php?t=getfile&id=12938&private=0

I was using the Linux convert tool to do this:
Some commands like that do the job
(for sure I've used some bash scripts to do that.)
The filename below is the jpg downloaded from the rotating shapeway's frame.
It's used as background image and a Javascript exchanges the view window thus generating the rotating effect.

convert -extract 482x357+0+0 394291.v0.sprite.4x5-482x357-4.jpg a1.jpg
....
convert -delay 10 a*.jpg a.gif

The only pitty so far is that I don't know where the frames in the precompiles images (which have a size of 4x5 frames) exactly are.

Maybe somebody from shapeways could point that out - or somebody is willing to dive in.

  • Attachment: aa1.gif
    (Size: 586.16KB, Downloaded 197 time(s))

[Updated on: Sun, 25 December 2011 11:09 UTC]


More then 7500 items sold over SW (but still a hobby)
Minifigcustomsin3d at: Facebook Flickr
References: 3d Printing Industries, CNN, J. Burks, Ugly Duckling, M.Evans, Stop Motion Film,Computer BILD
More then 270 shop items (more then 146 already printed once)
Re: Integrating shapeways 3D view into my own webpage? [message #40729 is a reply to message #40728 ] Sun, 25 December 2011 12:00 UTC Go to previous messageGo to next message
avatar thomashuang.net  is currently offline thomashuang.net
Messages: 83
Registered: September 2011
Go to my shop
Member
Thanks for the info.
I was able to integrate with a fancybox iframe, but it looks like "version" changes numbers depending on how many updates you've done to your model, starting from version=0. one of my model was at version=3, and another was at version=1. iframe width and height is 482x357.

example here:
http://www.thomashuang.net/products/nps75/nps75.html

<a class="3diframe" href=" http://www.shapeways.com/sw/static_html/3dnp.html?total=0180 &levels=5&startlevel=3&model=387585&version= 3" title="3D view of Nomad Panohead +5"><img src="../../images/3d-button.jpg" alt="3D view of Nomad Panohead +5"/></a>

$(document).ready(function() {
$(".3diframe").fancybox({
'padding' : 0,
'width' : 482,
'height' : 357,
'autoDimensions' : true,
'autoScale' : true,
'scrolling' : 'auto',
'enableKeyboardNav' : false,
'mouseWheelNavigation' : false,
'margin' : 10,
'speedIn' : 150,
'speedOut' : 150,
'changeSpeed' : 150,
'type' : 'iframe',
'overlayColor' :'#000',
'overlayOpacity' : .8,
'cyclic' : true,
'titleShow' : false,
'showCloseButton' : false,
'titleFromAlt' : true,
});
});


<script src="../../Scripts/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../../Scripts/fancybox/jquery.fancybox-1.3.4mod1.js"></script >
<link rel="stylesheet" href="../../Scripts/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
Re: Integrating shapeways 3D view into my own webpage? [message #40730 is a reply to message #40729 ] Sun, 25 December 2011 16:40 UTC Go to previous message
avatar woody64  is currently offline woody64
Messages: 449
Registered: November 2008
Go to my shop
Senior Member
Thanks, that could be helpful.

Would also be an advantage if we could address the main photo and the 3d view directly via shapeways so that a simple onliner can be used to integrate it in any page.

Woody64



More then 7500 items sold over SW (but still a hobby)
Minifigcustomsin3d at: Facebook Flickr
References: 3d Printing Industries, CNN, J. Burks, Ugly Duckling, M.Evans, Stop Motion Film,Computer BILD
More then 270 shop items (more then 146 already printed once)

 
   
Previous Topic:December Shop Owner Payments
Next Topic:Gibberish text when filling title and description

Logo

Hello.

We're sorry to inform you that we no longer support this browser and can't confirm that everything will work as expected. For the best Shapeways experience, please use one of the following browsers:

Click anywhere outside this window to continue.