SketchUcation Plugin Store

 

 

360 Camera

360 Camera

Postby Jim » Mon Mar 03, 2008 11:42 pm

Does anyone have a script that can rotate the camera around an object for exporting a series of images?

I wanted to see what type of results could be achieved with this little bit of javascript to create "animations" on a web page. The animations on the page are a series of still images.

And actually, it could be used for a shade study animation being discussed here.
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby Todd Burch » Tue Mar 04, 2008 1:49 am

Wouldn't be that tough to write, but I don't have one.

Wanna do a community project?
Todd Burch
 
Posts: 909
Joined: Mon Nov 12, 2007 2:43 pm
Location: Katy, Texas

Re: 360 Camera

Postby JClements » Tue Mar 04, 2008 2:14 am

Maybe two options?

Around an object/selection or Out from the center of an object/selection?
John
Illustrator
Beaverton, Oregon
User avatar
JClements
Premium Member
Premium Member
 
Posts: 773
Joined: Wed Nov 14, 2007 4:32 pm
Location: Portland/Beaverton, Oregon
Name: JClements
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: illustration, cartoons
Level of SketchUp: Intermediate

Re: 360 Camera

Postby gata » Tue Mar 04, 2008 2:38 am

gata
 
Posts: 141
Joined: Tue Nov 13, 2007 1:57 am

Re: 360 Camera

Postby Jim » Tue Mar 04, 2008 3:31 am

JClements wrote:Maybe two options?

Around an object/selection or Out from the center of an object/selection?


Toward the object.

I was thinking... group everything you want to view and use the BoundingBox center for the camera target and center of rotation.

If you look at the page, the script can have 1 - 7 camera levels (heights), and any number of positions around each circular level.
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby Jim » Tue Mar 04, 2008 3:34 am

gata wrote:http://www.smustard.com/script/CubicPanoOut?


Yes, I've already looked at it. What I want to do is a good candidate for a "been there, done that" script. :)
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby Jim » Tue Mar 04, 2008 3:48 am

Todd Burch wrote:Wouldn't be that tough to write, but I don't have one.

Wanna do a community project?


Sounds like fun!

Code: Select all
# 3dnp.rb
#
require "sketchup.rb"


Ok, pick it up from there. ;) All kidding aside, this is a great idea Todd! It would be a great learning experience for anyone who would like to participate, or just follow along.

If there's enough interest, I suggest starting a new topic for the project.
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby Pixero » Tue Mar 04, 2008 8:09 am

Not sure I can contribute much, but I sure like to follow the development. :)
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: 360 Camera

Postby solo » Tue Mar 04, 2008 8:16 am

I'm with Pixero on this one (I am totally script challenged)

But am interested to learn how a script comes together (said in A-team theme)
My site

Quod gratis asseritur, gratis negatur.
User avatar
solo
Global Moderator
 
Posts: 10750
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby Gaieus » Tue Mar 04, 2008 9:24 am

Jim,

Why not use the flightpath.rb? You can draw a circle around the object you want to take the animation of and create the camera positions on it by using the model extent tool. Afterwards you can export the animation as standalone images.
_______

Nice effect with that javascript, too!
I have a panorama (pure photo though) rotated by a javascript here, too (it wasn't me who wrote the script of course - I just edited it to my needs).
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27611
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: 360 Camera

Postby wikii » Tue Mar 04, 2008 9:33 am

I write one today. Try it,jim.
Please, register (free) to access all the attachments on the forums.
wikii
 
Posts: 104
Joined: Mon Jan 28, 2008 1:13 am

Re: 360 Camera

Postby tbd » Tue Mar 04, 2008 11:14 am

later edit: quick test using wikii script + my Xporter and another javascript

project space created on http://code.google.com/p/su2web/ - feel free to join
Last edited by tbd on Tue Mar 04, 2008 12:13 pm, edited 1 time in total.
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
tbd
 
Posts: 1018
Joined: Wed Nov 14, 2007 10:47 am
Location: Romania
Name: TBD

Re: 360 Camera

Postby solo » Tue Mar 04, 2008 11:19 am

Those spinning tables made me dizzy!
My site

Quod gratis asseritur, gratis negatur.
User avatar
solo
Global Moderator
 
Posts: 10750
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby Jim » Tue Mar 04, 2008 12:25 pm

TBD wrote:later edit: quick test using wikii script + my Xporter and another javascript

project space created on http://code.google.com/p/su2web/ - feel free to join


Looks better already! How about a larger image with shadows?
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby tbd » Tue Mar 04, 2008 12:43 pm

here is another try with a car (not that smooth as it has only 10 images - 205kb)
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
tbd
 
Posts: 1018
Joined: Wed Nov 14, 2007 10:47 am
Location: Romania
Name: TBD

Re: 360 Camera

Postby tbd » Tue Mar 04, 2008 1:08 pm

... and shadow test (needs a limit so that shadows doesn't jump ;)
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
tbd
 
Posts: 1018
Joined: Wed Nov 14, 2007 10:47 am
Location: Romania
Name: TBD

Re: 360 Camera

Postby sepo » Tue Mar 04, 2008 1:46 pm

The car looks quite good. I supose the model is bigger as well. Cool.
sepo
 
Posts: 1559
Joined: Wed Nov 14, 2007 1:19 pm
Location: Northampton UK
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: 360 Camera

Postby Jim » Wed Mar 05, 2008 12:25 am

JClements wrote:Maybe two options?

Around an object/selection or Out from the center of an object/selection?


That's another good idea! I can't think of any reason a panoramic animation wouldn't work using the same technique (basically, a digital flip-book.)
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: 360 Camera

Postby wehby » Thu May 22, 2008 4:42 am

The javascript ptviewer enables viewing both of Object VR and panoramic VR. Didier wrote a script back in Dec'06 that exports images around an object(vrobj_exporter.rb). With the right HTML template to give instructions to PTViewer.jar, the images created from TBD's Xporter, Didier's VObj exporter, or my cubicpanoout.rb.

I have already created the template for use with cubicpanoout, it's just a matter of finding the time to alter the script to use ftools to copy ptviewer.jar and the template into the same folder as the images are exported. It looks like Google may beat me to it, since they already have a slick interface and everything (from Web Exporter).

-wehby
wehby
 
Posts: 16
Joined: Fri Apr 25, 2008 5:57 am

Re: 360 Camera

Postby majid » Thu May 22, 2008 7:57 am

maybe PIXMAKER lite , http://www.pixaround.com/ could help
so sorry i was wrong whit the address : here it is :
http://64.233.167.104/search?q=cache:tj ... =firefox-a


http://www.pixaround.com.tw/#pixmaker
Last edited by majid on Mon May 26, 2008 6:54 pm, edited 2 times in total.
درصورتيكه به مساله اي برخورديد(مثل وارد نشدن به سايت، فراموش كردن پسورد و غیره با ما تماس بگیریدhttp://sketchucation.com/contact
User avatar
majid
Top SketchUcator
 
Posts: 1544
Joined: Sun Dec 16, 2007 8:51 pm
Location: Isfahan Iran
Name: majid
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: 360 Camera

Postby scottpara » Thu May 22, 2008 6:06 pm

This would be a great script as it is something like I asked for but I wanted the camera to rotate in place 360 degrees, but I will take this one just as well. PLEASE develop this one.

Scott
Love the fact that some HATE my avatar.....
scottpara
 
Posts: 1091
Joined: Tue Nov 20, 2007 1:54 pm
Location: Around

Re: 360 Camera

Postby CAD Addict » Wed Jan 21, 2009 10:31 pm

Here is a try combining the Web Exporter with a fly through path.
i am working on it still but I guess you can see the intention already

http://www.cad-addict.com/2009/01/sketc ... o-web.html
CAD Addict
 
Posts: 6
Joined: Wed Oct 29, 2008 6:58 pm

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 4 guests