ActionScript 3.0 :: Where To Put The Material Jpg [papervision]
Apr 11, 2011trying a simple papervision tutorial and swf stops rendering by mat = new MovieMaterial(rec);
[Code]...
trying a simple papervision tutorial and swf stops rendering by mat = new MovieMaterial(rec);
[Code]...
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.
I've searched around the web trying to find out how to set the primitive Plane backside material in papervision. Unfortunately without luck. That is why I'm turning to you,My question is simple (as written above):How do I set the background material of a Plane primitive in Papversion 2.0?
View 1 RepliesI have a cube with a material on the front face. I'm trying to create a magnifying glass in 2D for the 3D cube. Can anyone offer a suggestion for how to achieve this? I was thinking I might try to find the UV under the mouse in an OBJECT_OVER InteractiveScene3DEvent and somehow get the bitmap from the material, mask it, and move it around in relation to the mouse position- mimicking a magnifying effect. How to do that, I have no clue.
View 2 RepliesI've successfully loaded a DAE model with its own bitmap texture material. Now I want to layer an environment map over that to give it a shiny look. I'm about ready to go out of my mind---nothing seems to work. I've created my environment map material, and added it to the DAE model, but it fails to appear at all. I've cut some holes in the original bitmap material, so that I'd be able to see if the reflection was covered over, but nothing appears to be hiding underneath
View 1 RepliesI cannot apply a texture to an object, I don't know why.( AS3 blender export script and Collada Import is not working for me either )
var loader:Loader3D = new Loader3D();
loader.addEventListener( Loader3DEvent.LOAD_SUCCESS,
handler_loadSuccess );
var parser:Obj = new Obj();
loader.loadGeometry( "assets/objects/Test.obj", parser );
[Code]...
I have successfully imported a Lightwave generated Collada file into Flash using Papervision3dA material within the Lightwave file is called "Lambert4SG". How can I assign the "precise" property to eliminate the texture distortion. However, the material needs to be cast to BitmapMaterial in order set a BitmapMaterial specific property.
View 2 RepliesI have loaded a .obj into away3D with a given material (not using the .mtl file), and through the course of rendering, I want to change the object's material. Here is how I load the .obj:
var object:Object3D;
function loadObject():void
{
[code].....
I have loaded a model using the 3DS parser that is already linked to a material and loads fine. I would like to make this model semi-transparent part of the time but not all of the time. I would like to just set alpha = .5 but when I target the materal that is not an option.
Here is the code and using:
var slingPar:Max3DSParser = new Max3DSParser();
var slingLoader:Loader3D = new Loader3D();
sling = new ObjectContainer3D();
[Code]...
I have a site that is using aspects of papervision within an otherwise 2D environment...
In my papervision 3D room which is a class loaded into a movieclip holder, the walls of the room are taken from movie clips in the library. Some of these clips also have hotspot elements within the clip. For these, I wrote the code for the individual movie materials in their own file so that I can control the mouse events easier. Everything works fine, including the movie material tracing the click event. However, in the click event I am dispatching an event to be heard on the stage. I have my listener for it in my Main file but my stage isn't ever hearing it.
I'm about to go on a 1000 mile charity cycle ride. I would like to be able to upload my position to the website at the end of each day - and have the site show precisely where I am on a map of the whole route - a sort of rolling image, if you like. I'd also like to be able to upload blog material at the same time. I have ActionScript 3 available.
View 5 RepliesI don't see how i can make a cube's material double sided. I need this as i am flying thru a cube.
Code:
private function createMaterialList( color:uint ):MaterialsList {
//creates a wireframe
var ml:MaterialsList = new MaterialsList();
[Code].....
I was recently trying to import some collada models from 3d studio max into flash. verything looks fine, but I have some kind of error which rather shouldn't appear: Quote:'MaterialObject3D: transformUV() material.bitmap not found!'I've found some answers by googling it, but I'm not sur
View 0 RepliesI have added a DAE element to the scene created in 3D Max as I created a MaterialsList for it, the problem is when I use any shade material the element losing its flatness!
View 6 RepliesI have a cube built in papervision. It has a video on each side. I want the videos to be stopped at the beginning when it appears. I thought I could just use pause on the stream. ncStream2.pause(); no luck. When I do that I just get a black box. There is no black at the beginning of the videos. I do not think the papervision part is really a big deal. It's probably just a straight forward AS3 and video problem.
[Code]....
What material did you use to learn Flex/Air itself, and with ColdFusion + BlazeDS/LCDS?
View 7 RepliesI asked this question in papervision 3d forums, but nobody replied. So. I am writing a 3D application with actionscript 3 and papervision 3D. But I have stuck on one problem, I can't figure out, how to place skidmarks (decals?) on an object. The only method I can think of is drawing directly to BitmapData (texture). What would you suggest to draw a textured skidmark on ground (plane primitive)?
View 1 RepliesI have done globe in papervision - basically sphere + material (image of political map) over it.Now, I need to make every country on my globe interactive, what means, I need somehow create event listeners for lots (at least 15) of small areas on my globe, and if I click those areas, something will happen (say, additional info windowwill come out)I googled a lot and found a lot of things describing some realted stuff (hotspots?), but since I am quite new in flash/actionscript/papervision, could I, please, get some introductory idea how my problem might be solved?
View 1 Repliesi was trying to put text in papervision but am having touble.
View 4 RepliesIs there any development tool that has the papervision3d classes buit-it, so i can get hints when i'm writing th code as i get hints for as3 code?
View 2 RepliesI am new to Papervision, and am experimenting on importing animated 3ds max models into my project.I can export a model (with no animations) into Collada format, and import it using Papervision, with no problems. But when I try to import a model with animations, i get this error:[code]I am using Flash CS 4 / Papervision3D Public Beta 2.0 - Great White / 3D Studio Max 2009 (with the New Collada Plugin).
View 7 RepliesI am trying to develop a game based on papervision and flash.the very basic idea of the game is that some 3D objects are falling from the sky and you have to catch them .. At a time there can be as many as 20 of such 3D objects on the stage.Now the problem is that these 3D objects are causing too much CPU usage .. I was hoping if there was another way to do the same thing and which causes less of performance issues ...
1.I have two classes suppose A and B
2.the class A calls class B
3.class B initiates a 3D sphere whenever it is called .. the Sphere has a bitmap image material .. and it rotates along the X axis on every enter frame event
4.class A has a timer function which moves the 3D object in the Y direction and also destroys it when the object reaches a specified Y position ..here are the code snippets ...
Class A :Code:
public function onTick(e:TimerEvent)
{
if(Math.random() < spawnrate)[code]......
how to setup Planes with papervision, then retrieve them later?I've set up the 3d scene like this:
PHP Code:
var con:Sprite = new Sprite();
con.x = this.width * 0.5;
con.y = this.height * 0.3;
holder.addChild(con);
[code]....
but none of these methods seem to work,, possibly because you can't do the same things to Planes that you can to movieclips...(?)the scene.numChildren seems to work though.
Has anyone seen rendering glitches with Papervision?
seee the flash movie at [URL].. which demonstrates the problem.
I have an SWF loading in an SWF containing a papervision scene.I've done it before yet problem is, I get an error - I'm not sure what the issue really is.[code]
View 3 Repliesi created a 3d model using sketchup and exported it as a DAE file.
then i try to import the model into papervision, but the model never appear.
when i use the DAE file provided in the examples, it works. only when i tried to create my own models, it doesn't work. does this have anything to do with sketchup?
now i need to add a health bar and countdown timer on the screen. how am i going to do it? adding a plane in the 3d scene? the health bar is always on the top right corner of the screen. is there anyway of NOT using 3d concept to implement this. i mean i could do it with a plane keep changing it's texture to show the status of the character. is there any cleaner way of doing it?
View 1 RepliesSo I wonder if papervision 3d development alive? Any google code or ght..?
View 1 Replieshow to create a carousel like his with papervision. I created one but the planes just go round and round. I was wondering if it's possible for the planes to keep the same angel as the example of the link. I do not want the plane to rotate itself on the y axis but just move on the X/Z axis just going around an object in the middle.
View 1 Repliesthere's a simple thing in papervision I can't do , I want to have a simple button on my swf like we have in flash , just a 2d square which is on screen and you can click on it and have some action
View 1 Replies