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.
0
Hi

Jim 
Global Moderator
 

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?
0

todd burch 
 

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?
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: 360 Camera

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

0

gata 
 

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.
0
Hi

Jim 
Global Moderator
 

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. :)
0
Hi

Jim 
Global Moderator
 

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.
0
Hi

Jim 
Global Moderator
 

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. :)
0
User avatar
Pixero 
Premium Member
Premium Member
 

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)
0
My site

I'm a social vegan, I avoid meet.
User avatar
solo 
Global Moderator
 

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).
0
User avatar
Gaieus 
 

Re: 360 Camera

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

I write one today. Try it,jim.
0

wikii 
PluginStore Author
PluginStore Author
 

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
0
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 
 

Re: 360 Camera

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

Those spinning tables made me dizzy!
0
My site

I'm a social vegan, I avoid meet.
User avatar
solo 
Global Moderator
 

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?
0
Hi

Jim 
Global Moderator
 

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)
0
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
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 ;)
0
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
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.
0

sepo 
 

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.)
0
Hi

Jim 
Global Moderator
 

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
0

wehby 
 

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
0
Last edited by majid on Mon May 26, 2008 6:54 pm, edited 2 times in total.
User avatar
majid 
Top SketchUcator
 

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
0
Love the fact that some HATE my avatar.....

scottpara 
 

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
0

CAD Addict 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 5 guests

Visit our sponsors: