PDA

View Full Version : QTVR Object - Pan limits?



elfworks
11-19-2006, 12:52 AM
Well, I posted this in the general forum, and got a whopping zero replies, so I figure I should try the experts. :)

I've been using LightWave's QTVR Object saver for quite a few years now (Thanks, Arnie!!!), but I've run into an unexpected problem with limiting the Pan rotation.

All my previous objects had used a 360 pan angle, but my current situation requires a limited Pan angle.

Here's a sample QTVR Object. (http://www.elfworks.com/QTVR_Smiley.mov)

If you scroll around, you'll see that it tilts properly, but the pan limits don't work. Instead of stopping at the pan limit, it just wraps around like it was a 360 degree object.

I'm pretty sure that QTVR objects support pan limits, and I think I've set them correctly in the attached scene file.

I've tried everything I could think of to fix the problem, but I'm stumped.

Is this a bug in the QTVR saver?

Here is the scene and object files.

(http://www.newtek.com/forums/attachment.php?attachmentid=37785&d=1160728416)Thanks,
Erik

Kuzey
11-19-2006, 05:24 AM
I'm totally guessing here, but from the scene example the camera jumps back to the start position each time it finishes a row. I'm thinking that's the problem.

Have you tried it so the camera moves in the opposite direction for each new row like this:

<<<<<<<<<<<<<<<<<<<<start
nextrow>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<nextrow
nextrow>>>>>>>>>>>>>>>>>> etc. instead of

<<<<<<<<<<<<<<<<<<<<start
<<<<<<<<<<<<<<<<<<nextrow
<<<<<<<<<<<<<<<<<<nextrow
<<<<<<<<<<<<<<<<<<nextrow etc.

Hope that makes sense and best of luck,

Kuzey

elfworks
11-20-2006, 11:28 PM
Apologies for the delay in replying.

To answer your question:
No, QTVR objects do not reverse direction with each new Row. QTVR Object data is stored as a series of Rows (Pan) that can be extended to multiple Columns (Tilt) in a basic X,Y grid. (It's really nothing more than a movie. Think raster scan, but every pixel is an image...)

From the horse's mouth: (Page 44)
http://developer.apple.com/documentation/QuickTime/InsideQT_QTVR/insideqt_qtvr.pdf
(They explain it better than I could. :) )

I was trying to find a 3rd party utility that would allow me to create the kind of QTVR object I need. I'm working on the PC, so I don't have as many QTVR tools to choose from as you fine folks in the Mac world. :)

I did find the VRWorx application from VRToolbox (http://www.vrtoolbox.com/vrworx26.html).

It does a lot for $300, but all I need to do is set the pan limits on my QTVR object. I was able to create a QTVR object with limited Pan range, but the demo version won't let me save the object! (I'd have bought the app, but my client won his legal case, so my need is not as pressing. :) )

P.S. There's one small glitch in the scene I supplied. Both keyframes of the Tilt Angle should be bumped forward by one frame, and the sequence should start at frame 1. (Otherwise, the Tilt angle drops on the last frame of each Row... Most humble apologies. :) )


I'm totally guessing here, but from the scene example the camera jumps back to the start position each time it finishes a row. I'm thinking that's the problem.

Have you tried it so the camera moves in the opposite direction for each new row like this:

<<<<<<<<<<<<<<<<<<<<start
nextrow>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<nextrow
nextrow>>>>>>>>>>>>>>>>>> etc. instead of

<<<<<<<<<<<<<<<<<<<<start
<<<<<<<<<<<<<<<<<<nextrow
<<<<<<<<<<<<<<<<<<nextrow
<<<<<<<<<<<<<<<<<<nextrow etc.

Hope that makes sense and best of luck,

Kuzey

Kuzey
11-21-2006, 05:32 AM
I would download Newtek's QTVR example and compare it to your version, it might be that one of the settings is off somewhere.

http://www.newtek.com/products/lightwave/tutorials/rendering/quicktime_vr/quicktime_vr.html


Kuzey

elfworks
11-21-2006, 10:36 AM
Thanks, I had forgotten about that tutorial.

It doesn't address my problem, as it's a full 360 rotation.
In my case, I want to limit Pan rotation to 120.


From the tutorial:

Start Pan
End Pan
These controls set the angle range of the horizontal views. They do not seem to change simple viewing of the objects, but may be critical if the object is embedded in a larger QTVR world.


So, he acknowledges that Start & End Pan do not work for QTVR Objects. (Even though they should.)

It would appear that Arnie was aware of the limitation when he implemented the plugin, so I doubt I'll ever get Newtek to fix it.

I'll post it as a known bug, on the slim chance they might decide to fix it.

Thanks for your help.


I would download Newtek's QTVR example and compare it to your version, it might be that one of the settings is off somewhere.

http://www.newtek.com/products/lightwave/tutorials/rendering/quicktime_vr/quicktime_vr.html


Kuzey

Chilton
11-21-2006, 10:52 AM
Yes, that's a good idea. Being that I have written a number of QTVR Object apps in the past, I'd be happy to look into it.

-Chilton

elfworks
11-21-2006, 12:58 PM
Wow, thanks for the quick reply!

I'm sorry if my last post sounded a little fatalistic. I've been using LW since long before they ported it to the Mac, so I forgot that Newtek actually has some active Mac programmers on the payroll. I bet you guys could make short work of this bug.

I've been using QTVR objects in some non-standard ways, and the Pan limits suddenly become very important.

Here's a (down-rezzed & decimated) example of how I'm using QTVRs commercially:
http://www.elfworks.com/QTVR/Keratome_320x240_Sorenson3_Low.mov
The camera pans from -60 to 60 degrees, while the object is assembled as the camera tilts down. (Basically, I added time as a '3rd dimension' in addition to the traditional Pan & Tilt.)

As you reach the edge of the viewing angle, you can see the camera just pops over to the other side, and that's really disorienting for the client.

Here's an example of a simple 360 object with animation, but no Tilt:
http://www.elfworks.com/QTVR/Bioprosthesis_320x240_Sorenson3_Low.mov
(Not really salient to the Pan limit problem, but I still think it looks cool. :) )

And, finally, the one that drives the clients wild...
The 'Tear Down' sequence!
http://www.elfworks.com/QTVR/Heart_320x240_Sorenson3_Low.mov
In this object, each click of the up arrow removes one layer of the object. This allows the client to interactively dis-assemble an object, while viewing it from any (Pan) angle. (My most recent project involved creating an object 'tear down' where the camera Tilted up and down, and the Pan axis controlled the layering - that's when I really noticed the Pan limit problem.)

I still haven't figured out how to work view states into the mix, but I'm sure I'll find a way. :)

BTW, what's the procedure for submitting bugs? I notice the LW 9 Beta section is gone from the forum, and I haven't signed up for the 9.2 Beta yet. (I'll probably do that after I post this message.)

Thanks!

P.S. When I say the camera pans and tilts, I'm actually referring to the Null objects the camera is parented to. (As per the tutorial referenced in Kuzey's previous message.)


Yes, that's a good idea. Being that I have written a number of QTVR Object apps in the past, I'd be happy to look into it.

-Chilton