Actionscript :: Papervision 3D - Force Dimensions On A Collada File?

Feb 25, 2010

I'm working with Collada files and I need them to be a certain size. When instantiating them in pv3d you set the filename, materials, and scale. Scale works like a percentage, and there's no way to get the width, height, or depth of the DAE once in flash. I want to be able to specify the size of DAE in 3D space relative to other pv3d native geometry.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Import 3ds Max Camera Into Papervision Through Collada?

Jun 20, 2009

I see that the Collada file contains Camera information. I was wondering could I import the camera as well.

View 0 Replies

Actionscript 3.0 :: Using Collada Files From Cinema 4D For Papervision?

Jan 13, 2009

Anyone using Collada files from Cinema 4D for Papervision?The model loads fine but if there is more than one object in the scene it applies the first material to all of them rather than their respective ones. My output in flash says this:

Code: Select allINFO: BitmapFileMaterial: Loading bitmap from BodySurface_Color.png
INFO: BitmapFileMaterial: Loading bitmap from HeadSurface_Color.png
INFO: BitmapFileMaterial: Loading bitmap from ShaftSurface_Color.png
INFO: BitmapFileMaterial: Loading bitmap from TipSurface_Color.png

[code]....

When I look inside the collada file I see "Material1" used a lot in places where I think there should be proper material names from the 3d program.Ive attached the DAE and the textures if anyone can help, this was all working fine from the same model exported from Maya so I have a feeling its bad exporting from c4d.

View 2 Replies

ActionScript 3.0 :: PV3D ShadedMaterial On A Collada File

Jan 20, 2009

i'm doing a materialtest with papervision, using some collada-objects that i load with the DAE-class. one thing that i didnt get to work is creating a shadedmaterial, not a shader as a material but combining a shader and my original material (loaded with the collada-file) into a new material. i dont get any errors, and when i look at examples i think i'm doing the right things, although the examples always create a new object from scratch (and add the ShadedMaterial to the fresh materialslist).What i do is load the objects, store their materials in an array (i clone them once they're loaded), and use this object-loop to create the shadedmaterial and replace it with its original.[code]The original materials are actually Bitmap FileMaterials, but since that's a subclass of BitmapMaterial i think that should work just fine. You can see my test here, every material works except for the flatshaded+bitmap, when i use that one my framerate drops dramatically but i dont see any change.URL...

View 1 Replies

ActionScript 3.0 :: Using Collada DAE 3d File In Away3d Project

Jul 22, 2011

I have a question regarding my implementation of a collada 3d file. This is really my first venture into the realm of 3d and I've read some of the basic tutorials so I'm not 100% clueless, but I am a bit confused by what is appearing with the following class (this is a document root class, loaded by the .fla file): the images I loaded to skin the board with are showing up, but just in specific triangles. I want it to skin across the whole board. Is [code]there something special I need to do to achieve this?Also, my final goal with this project is to skin (texture map) one side of the board with a bitmap (drawn from an MC) and the other side with a different bitmap.

View 0 Replies

ActionScript 3.0 :: How To Make Animated Collada File To Loop Through Animation

Mar 22, 2010

I have created a few cool little animations with FLAR toolkit and it all works fine I am super happy with how collada files work in the AR apps that Ive made. I would like to make an animated collada file just simply loop through an animation. I am pretty sure its possible but I don't know whether the examples Ive seen use code or whether the animation is imported.

View 1 Replies

Actionscript 3 :: Load A Papervision/Flex Application (SWF) As A Material On A Papervision Plane?

Mar 24, 2011

I am trying to build a portfolio application similar to the used by Whitevoid. I am using Flex 4 and Papervision3D 2. I have everything working except for one issue. When I try to load an external SWF as a material on one of the planes, I can see any native Flex or Flash components in their correct positions, but the papervision objects are not being rendered properly. It looks like the viewport is not being set in the nested swf. I have posted my code for loading the swf below.

private function loadMovie(path:String=""):void
{
loader = new Loader();
request = new URLRequest(path);

[Code]....

Below I have posted two pictures. The first is a shot of the application running by itself. The second is the application as a MovieMaterial on a Plane. You can see how the button created as a spark object in the mxml stays in the correct position, but papervision sphere (which is rotating) is in the wrong location.

View 1 Replies

ActionScript 3.0 :: Setup The Dimensions Of The File As In Terms Of Height And Width Of The File Without Getting It Cropped

Aug 20, 2009

The template is built under Flash and has .swf, .fla and html files and was setup on an html background. To make things look nice I decided to use an XML web template as a background to his template. The problem starts from there.The XML web template allows us to add our own SWF files, so I decided to add the swf file of my friend's template.

The swf file was set to "noscale" and when I imported it into the web template it didn't fit properly. So I took the "noscale" off from the actionscript and imported it again. Even then the scaling of the swf file was not correct.As soon as you load the file, it scales towards the left and not center.My question is how can I write a code within the fla file so that when the swf file is loaded it automatically centers itself?2nd question is how can I setup the dimensions of the file as in terms of height and width of the file without getting it cropped. I tried to set it up from 840x610 to 650x430 however the swf content got chopped off (even with noscale off).

View 2 Replies

ActionScript 3.0 :: Preloading External Papervision File?

Dec 21, 2009

I'm trying to preload a external SWF file made with AS3 + Papervision, but I'm getting:

Error #1009: Cannot access a property or method of a null object reference.
at Papervision2049$iinit()

Papervision2049 is the name of my Main.fla document class.I already tried tons of loaders, but they all end up with the same error.My current Loader.fla has on the 1st frame:

Code:
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.load(new URLRequest("main.swf"));

[code]....

View 2 Replies

ActionScript 3.0 :: Preloading External Papervision Swf File?

Oct 27, 2009

external papervision3d file:

Code:
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.objects.special.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.*;

[Code]...

View 0 Replies

ActionScript 3.0 :: Insert Video File In 3d Papervision?

Aug 28, 2011

I try to make a 3d wall gallery using 3dpapervision. My gallery contain photos & video. I can make with the photos, but when I insert the video file ( FLV) there is a error: "Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type."

insert video file in 3d papervision.

View 1 Replies

Actionscript 3 :: Finding An Original Rectangle's Dimensions From Rotation And Bounding Box Dimensions?

Jan 25, 2010

In AS3, I have a Sprite that has a Z axis rotation applied.How do I calculate that Sprite's dimensions (it's original size) from Sprite.rotationZ and Sprite.getRect(...)?

View 2 Replies

ActionScript 3.0 :: Fixed Movieclip Not To Change Dimensions If The User Starts Playing With The Dimensions Of His Screen

Jan 31, 2012

What do I have to write to keep the movieclip not to change dimensions if the user starts playing with the dimensions of his screen ? I remember it was a line of as3 written at the beginning.

View 3 Replies

Way To Force File Refresh

Jul 9, 2003

I use "loadvars" to get the dynamic info for a flash homepage from a ".txt" file. How can I force browsers to download a fresh copy of ".txt" files every access?

View 4 Replies

Professional :: Change The Dimensions Of A .swf/.fla File Once Completed?

Apr 7, 2011

1, Is it possible to change the dimensions of a .swf/.fla file once completed?

View 1 Replies

ActionScript 3.0 :: Saving Transparent PNG - File Dimensions

Apr 27, 2009

I've got a movieclip called img_container that holds a draggable image (img_mc) and a mask over img_mc. I can save my img_container out as a transparent png which works great but the issue I have is that the png dimensions are still the size of the original img_mc. I fairly new to AS3 so I'm at a stand still. What I would like to do is save out the bitmap as only the visible area of the masked img_mc. The mask (called myMask) is also draggable and resizable so I'm not sure how to go about saving that specific area only.

View 2 Replies

ActionScript 3.0 :: Force Reload Of XML File?

Mar 20, 2009

I have a slide show swf file in AS3 that gets the paths froman XMlL file. The problem is that I change the XML file every dayand unless a viewer empties their cache, they get the old slides.There is a technique where you add ?mathRandom() code at theend of the XML path inside the .swf file, but from all I have readand believe, this only adds to ones cache and could irresponsiblyfill a viewers cache.Does anyone know a way to use actionscript 3 inside the .swffile to force a reload of the XML file if the browser has beenopened for the first time?

View 1 Replies

ActionScript 3.0 :: Force A Refresh To A Swf File?

Sep 17, 2010

I'm using a .png Menu/Sub Menu from FireWorks to go to a particular swf file and then to an anchor within the swf file.But when I click on the same menu item and different sub menu item it doesn't go to another anchor within the same swf file. If I navigate away and then click fresh on the link that didnt work, it works.It seems to think it's at the right place and ignores the link.

View 12 Replies

Flash :: Find Natural Size / Dimensions Of SWF File?

Dec 2, 2009

I've been given a Flash file (.swf extension) to put into a web page. Opening the file in my browser makes it quite blurry, so I'm assuming there is a natural size for the file, same as an image.

It's also rectangular so I need to work out the aspect ratio if I don't have an exact size. How would I find this information out?

View 1 Replies

ActionScript 3.0 :: Force Flash To Reload A File?

Jun 13, 2009

I'm trying to create a method of saving data to disk in Flash.

Uploading the data to a PHP server works... well enough I guess. The issue is that when I go to reload the data, the file has been cached, and so I can't load the saved changes.

Is there a way to force flash to reload a file? Or clear it's current cached version?

View 3 Replies

ActionScript 2.0 :: Force Download A Zip File Using Flash CS3

Jul 24, 2010

I am creating a web site using Flash CS3 actionscript 2.0.I know how to but the one extra thing I need to do for this site is create a button that anyone looking at the site can click and it automatically downloads a zip file containing music. (it's a site for a band who want their fans to be able to download their music.)A lot of the information I am finding pertains to PHP, which I don't understand. As I use action script 2.0, I am not familiar with much code.[code]but I most be doing something wrong b/c an error always comes up when I check the code.Also, I make a button, give it an instance name, but I don't enter that anywhere in the action script.so I know something has to be wrong, b/c the only thing I do is create a zip file, name it and enter it in the action script.

View 0 Replies

ActionScript 3.0 :: Force File To Open On Top Of Fullscreen Window?

Sep 13, 2011

have some ppsx files that I'm opening from a button on a fullscreen window. The first window opens fine, but if I go to open another ppsx file, it opens behind my fullscreen interface. Is there anything I can to do force it to open in front? I tried having _blank in there, but that just opens a browser window. this is what I have now (using greensock plugins, but my question is regarding the navigate to url area):

[Code]...

View 1 Replies

Flash - Force The Browser To Re-download The New Version Of A Swf File?

Dec 3, 2010

I updated the flash library XML/SWF (chart library) to the latest version on my web application but the users still see the charts with the old library which is saved in there browser cache.How can I force the browsers of my users to download the latest version of the SWF files.I can't add a parameter at the end of the SWF file like : charts.swf?v=1234.

If I do that I get an error because the chart library load dynamically other SWF files of the library. The charts.swf file will be the new version but the other files will still be from the older version and I will get an error...

View 2 Replies

Javascript :: Image Dimensions = Client Side After File Upload Selection

Feb 8, 2011

I have an upload form for an image. The user clicks browse and selects a file. How can I get the image dimensions the moment the user selects the file (before the file is even uploaded to the server). It obviously has to be something client-side with maybe javascript/jquery or flash/flex (prefer js//jquery though), but can either of them do this? This is the code I'm using to tie into zozo's getImgSize() function, but it gives me 0*0 as size.

[Code]...

View 1 Replies

Professional :: Can Force To Frame / Scene After External Flv File Plays To End

Jul 8, 2010

lets say i want an external FLV flie to play using a component. How can I force at the end of the flv file to go to another frame/scene?So imagine an external video clip plays, once its finished your force to a screen that says "click to go to my website".is this possible? Or does the flv have to be imported to stage???

View 1 Replies

Flash :: Force Excel File To Download In Action Script?

Oct 4, 2011

I have make a post request to some url. Normally when this url is called from some html form, it opens a dialogue box to download excel file. But when I call this url from flash component, nothing happens. I have to force this excel file to be downloaded.

View 1 Replies

ActionScript 2.0 :: Force Loading Xml File From Server (not From Browser Cache)?

May 24, 2007

I make a swf for my site that includes dynamicly loading thumbnails from an xml file. Unfotunatly the browser ( IE and FF are what i have tried so far ) just takes the xml file from the clients browser cache even if i have changed the xml file on the server. So the only way my visitors will see my updated content, is if they clear their cache every time before they visit my site. ( even a ctrl-f5 does not seem to do the trick )

is there a function or something i can call to force the swf to re-download the xml file every time? (is really small, less that a kilobyte or two im sure.)

View 4 Replies

Force Flash Player To Play Audio Stream Of A Video File?

Apr 20, 2011

I'm trying to force the Flash player to play video files without showing screens. I did try to set vidDisplay.visible to false. But it seemed not working at all.I was doing was try to build a generic media player. Whatever the source is(audio or video), the control panel always the same, namely, a mp3 player panel is always displayed:However, when I stream in a video file, it would end up overriding mp3 panel with a partial video screen. I don't have enough reputation to upload images...

View 1 Replies

ActionScript 2.0 :: Force A Pdf File To Save To Disc Rather Than Open In A Browser Window?

Nov 27, 2009

I would like to force a pdf to be saved to disc rather than opening in a browser window? I am actually executing the command in flash in a button instance like this

on (release) {
getURL("http://website.com/pdfs/pdf_document.pdf", "_blank", "GET");
}

So how can I do this so it gives the pop up window of save to disc option?

This may be an ASP.NET issue too?

View 0 Replies

Force The Web Browser To Reload A Newly Deployed Flash File Without Clearing The Cache?

Sep 16, 2010

When I deploy a new .swf file in an HTML file as shown below, I have to clear the browser cache before the new .swf file loads in the browser. Is there anyway to force the browser to load the .swf file when I replace it with a new one on the server.

<embed type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.adobe.com/go/getflashplayer" allowscriptaccess="sameDomain" name="Prototype" bgcolor="#869ca7" quality="high" id="Prototype" src="/flex/Prototype.swf">

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved