3d effect/type of viewing

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  01 January 2004
3d effect/type of viewing

Let me preface this post by saying that I have flash4 and do not use it 'cause my graphic interests are elsewhere...
with that said, here is what I am hoping someone can help me with. I would like to use flash as a type of 3d viewer. What I am looking to do is render a sequence of images (kind of like VR) 30 or so, import them into flash, and be able to export the scene and have the user be able to use their mouse to control viewing the images (either left or right "rotational view") to simulate a 3d viewer. HERE is a link to an example of what I am looking to do. You must click on 3D WRC Cars to see exactly to output ( I did PM the artist but never received a response). I admit to being a complete idiot to flash and am just looking for someone have pity and to point me in the right direction and help me with what I assume is a rather easy process. Ultimately, I am looking to avoid spending some serious $$$ on Quest3d. I know the workflow and output would be much better with this but in all honesty, I like the rendered output from my app (LW7.5) and would really like to showcase my work in this fashion. Again I am using Flash4. Thank you for any help.

  01 January 2004
It all depends on the movements required. It's easy if you just have say several rings of camera viewpoints. To go right and left is easy, if you go up or down you simply goto the next ring of camera points up or down.

Describe to us exactly what your camera needs to be able to do.
  01 January 2004
Thanks for the response. I'm not sure I explained myself correctly. I don't have any problem with setting up the cameras in my 3d app and generating a sequence of images... it's when I load the 30 images in Flash, I need to create some kind of action for the mouse so I can export it as a flash movie but you the user, have control of rotating the sequence of images either left or right (just like on the WRC link).

Loading in the sequence and having frames 1 through 30 with the images is no problem. If I test the movie, I get an extremely fast rotation because it's only 30 frames looped. What I want is for the viewer to control movement. I don't need a full-blown VR, just to rotate it on 1 axis.

I'm sure it is a simple task for day in day out users, but as I am still transitioning from traditional art to CG, it's the technical stuff that gets me. Thanks again.

  01 January 2004
I know exactly what you are talking about and what you want to do. Easiest way to do it is to have a set of invisible buttons (30 of them) covering your flash "stage". Each invisible button would tell a movie clip that has your 30 images which frame to go to. So if you are rolling over the very last invisible button on the left it would show frame 1, and if you moved to the button on the far right it would tell the movieclip to show frame 30. Its actually fairly simple to do. If you need help, I'll put an example together on monday if you can remind me (PM me). I did exactly this a couple years ago with one of my cars but I no longer have that file on my computer.
  01 January 2004
VWTornado. Hey thanks. that does seem like it will work. If I understand you correctly, there would be 30 buttons that as a whole, cover the entire image from left to right, each directing to the next frame, so that when you move your mouse over the image, it will go to the next frame, right? The only problem I see is the rotation would be limited to 1 direction correct? because you can't have a button assigned to 2 different frames (which would give rotate left and rotate right). But, with that said, I could just as easily accept rotation in 1 direction. Very doable. I did get some help from Nathaniel Bell done in MX (here ) but alas, can't justify the upgrade since I have'nt worked in flash since 2000. I would be very grateful to see an example so I'll pm you monday. Thanks again.

  01 January 2004
Flash 4... hmmm. I can't remember what its limitations were, but I'll take a look and see what I can do. Btw, you will be able to rotate either direction with VWTornado's method, simply by moving the mouse let or right over the image. I have another method though, which would basically just be a left and right button below the image, which when you roll over say the right one it just advances to the next frame, then the next, then the next etc... at a controlled rate. Move your mouse to the left button and it simply goes backwards in the timeline frame by frame. Very easy to do.

There is another way...where will you be using this flash? in a webpage? because it is possible I could just make a FlashMX movie that dynamically loads any 30 images you render, and uses them for the spin around. Problem is that this way is not as clean and not a 'single package' like a properly published *.swf
  01 January 2004
yeah the simplest way to do it would be to create two buttons with the action script setup on previous frame for one and next frame for the other.
anothyer way to do it would be to get the position of the mouse and play the flash the movie as well. it mean if the mouse is on the 50% left of the movie, it's going reward and the other 50% is going the other way, of course.
You can find this movie on any flash website and modify it pretty easly for what you wanna do.

btw ... I'm not sure you can do that with flash 4. You'll see.

Good luck !
  01 January 2004
Ian Jones

Thanks for your suggestions. I'm gonna' give both of them a shot and see what I can work out. I really like the idea of just "splitting" the image(s) with 2 invisible buttons, one for the right and one for the left motion. I am assuming that with this method, I will need to create 2 buttons (with the respective action) for each frame so I can assign each 2 buttons per frame their own individual frames to go to. I hope that I made some sense?

Quote: ...where will you be using this flash? in a webpage?

I do intend for this to be on a non-flash web page and to be viewed as like a "stand-alone" on any PC. I'd be willing to try your MX solution to see how it goes. Thanks for the offer.

Thanks again for all your ideas and suggestions. I will try to keep my progress up to date to let you know how I am making out.

  01 January 2004
if you're using Lightwave, you can export your object to a .w3d file (showkwave). and using it in Director. It would be a real 3d opengl "movie" for the web.
  01 January 2004
francoistarlier- I have looked into that but I did not want to buy Director just for this reason. I'm just trying to get some mileage out of what I have. Worst case scenario for me is that I go ahead and get Quest3d (directx) and get a whole lot more out of it (at least in terms of what I would like to do with it) than I would with Director. The macromedia stuff is cool, but it never really caught-on with me. Thanks again.

  01 January 2004
Hi again,

I have made a Flash document for you, I'm not sure if it's compatible with Flash 4... I could only export it as low as version 5. I have emailed you with a link to the file. I have to do it this way because my website isn't working and I have placed it onto one of my clients servers temporarily (Kind of naughty, I know!).

If it opens in version 4, all you need to do is open it up and replace the existing example images I have put there. If you change the number of rendered 3D angles you need to adjust the 'Controller' layer so that it stretches exactly the same length in the timeline.

There's one other thing you need to adjust, there's a layer called 'Set Width' which you need to adjust the actionscript if you change the size of your 3D image. I currently set it for a 320 by 240 image. Simply change the value in the variable 'imagewidth' to the width of your movie. There's a description of what this variable does just above it.

There's an invisible movie clip on the 'Controller' layer which contains the code that runs everything. Take a look if you want, I have placed this movie clip in the top left corner, it will not be visible in the end product.

Everything else runs automatically, simply move your mouse to either half of the image and it will run forwards or backwards. Increase the movie framerate and number of frames if you want a smoother rotation.

Last edited by Ian Jones : 01 January 2004 at 04:54 AM.
  01 January 2004
Ian Jones, any way I could get a link to this file? I don't know how to make the image rotate the way you are describing. I use Flash MX 2003 so I know it will open for me. Thanks.

The reason I told them to do it the way I did is its really easy to setup, even for a beginner in Flash. The only pain in my method is having to make 30 buttons to do it.
  01 January 2004
Thumbs down

Ian Jones - Thanks for your efforts. I'll give it a shot and let you know how it worked. Just got to re-render a test sequence. Accidently deleted them.


1 hour later...

Ian Jones - I downloaded the file you made up. Flash4 won't open it up. I tried a few different ways to bring it in and ultimately it crashed flash. One would think that with an upgraded version, it would be compatible with older versions but I guess thats not the case with flash. Oh well... I want to thank you for giving it a go. I'm still not giving up at this point. I've got some more things to try out. I'll keep chuggin' along with all your suggestions.


Last edited by apex : 01 January 2004 at 10:15 AM.
  01 January 2004
Hey, I'll get you up and running in version 4. The code should be simple to copy paste over and the process is fairly simple so I'll write up a mini tute as soon as I get some time. I can't imagine any problems with my Actionscript from version 5 compatibility to version 4... I don't think I have used anything crazy.

I'll get back to you later.

VWTornado: I have emailed you the link. Go ahead a d-load it. It's compatibile with flash 5 and MX...haven't tested it in 2004 (don't have that yet).

Also on a side note, your method with 30 buttons while simple, is also quite a painful and laborious to do. What you could do is track the mouse across the screen and divide it into 30 sections, when the mouse is in a particular 1/30th of the movie then an equivalent frame is displayed. Once you see how my file qorks you can see that a similar method can be adapted. I may have a go at it just for comparisons sake. Time dependant of course.
  01 January 2004
Quote: Originally posted by Ian Jones
VWTornado: Also on a side note, your method with 30 buttons while simple, is also quite a painful and laborious to do. What you could do is track the mouse across the screen and divide it into 30 sections, when the mouse is in a particular 1/30th of the movie then an equivalent frame is displayed. Once you see how my file qorks you can see that a similar method can be adapted. I may have a go at it just for comparisons sake. Time dependant of course.

Yeah, i knew my way was a bit tedious but worked better than nothing.
  share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 12:44 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.