ActionScript 3.0 :: Loading Textures For .3ds Models?

May 25, 2011

I have a .3ds file for the model and a .dds file for the texture. I am able to load .3ds model by using the code:

Code:
var model:Max3DS = new Max3DS("model");
model.load("assets/model.3ds");

How should I load the texture from .dds file and apply it to .3ds model?

View 0 Replies


Similar Posts:


Actionscript 3 :: Loading And Unloading New Models?

Dec 3, 2010

am using pv3d to load a couple of models for a school project. The models typically don't do much, they just spin on a dial when fired up. At any given time, there are only two models shown. My initial thought is to utilize two global Collada instances and have a function call the Collada load function to load the new models into the instances. Looking through the Collada parser, it would seem that the load function appends the new model, leaving the existing models up there, as opposed to loading in a new set of vertices.

Fair enough. At this point I decide that I should remove the models from the scene, and create new ones every time the function fires.Here is where my problem lies. This probably from my lack of understanding on the workings of AS3/pv3d, so please bear with me. When I remove the models from the scene and add them again, the models do not appear within the scene. However, the model instances still remain traceable when I run a trace.Here is the code for reference. I omitted the portions which are duplicates.Instances are created on a global level as onRenderTick can't seem to reference it if I create it on any other level

public var model:Collada = new Collada();
public var model2:Collada = new Collada();

The initial properties such as x y position and pitch are set when the dials are created

public function setupDials():void {
var materialList:MaterialsList = new MaterialsList();
var bitmapFileMaterial:BitmapFileMaterial = new

[code].....

View 1 Replies

ActionScript 3.0 :: Get Textures From A Single Picture?

May 24, 2011

I have a .png file with 16x16 tiles that I want to make into their own variables. I've tried using BitmapData like this[code]...

View 3 Replies

ActionScript 3.0 :: Mipmaps With 3D Textures (bitmap Fill)

Jan 28, 2010

I must say I'm a little puzzled by the mipmap functionality in the newer flash players.URL...Tinic describes the way that mipmaps work in flash player if the images are specific sizes (e.g. powers of 2 like 256x256 etc). The demo here URL... shows this working quite clearly and I have myself demonstrated that when using a simple bitmap object with smoothing set to true then scaling has a much better result when the images are the correct dimensions for mipmap capabilities.However I have not seen mipmaps work in 3D when using bitmapFill and drawTriangles. The bitmap quality seems to look crappy regardless of the bitmap size. Do mipmaps ever work in 3D with bitmap fill etc? This topic direct from Adobe seems to imply that it does URL...with the comment "Use bitmap sizes that are divisible by 4 or 8 for two-dimensional images (such as 640 x 128, which can be reduced as follows: 320 x 64 > 160 x 32 > 80 x 16 > 40 x 8 > 20 x 4 > 10 x 2 > 5 x 1) and 2^n for three-dimensional textures".However a few other sources such as this one implies that it doesnthttp:URL...with the comment "Mipmapping was introduced in Flash Player 9 but it doesn't work with 3D drawing and requires textures to be even in resolution. That is why we developed our own method of filtering."

View 1 Replies

ActionScript 3.0 :: Making Textures With Noise Functions?

Apr 11, 2012

This question was posted in response to the following article: [URL]

View 2 Replies

Flash :: Textures Distortion In 3D To Render A Model

Nov 1, 2011

I am using Papervision3D Flash 3D engine to render a model. Also I am noob in 3D =D Model is simple, it's a parallelepiped with different textures on its sides. All works just fine except one thing: whenever I change my visual angle to a model from 90° textures on the sides are distorted. I notices that it is common effect in 3D graphics, I saw that effect in games and other 3D renderers (i.e. away3D, three.js) even wth different 3D models. Distorted texture on object (different view angle): Normal texture on object (same object and texture) (view angle == 90°): What is the reason of this effect?

View 1 Replies

ActionScript 3.0 :: Png2atf Tool For Compressing Textures?

Mar 27, 2012

is anybody here who have and would be willing to send me png2atf tool for compressing textures? It was part of the prerelease of Adobe about a year ago.

View 0 Replies

Actionscript 3.0 :: Creating PV3D Textures With A Loop

Apr 28, 2010

I'm trying to create multiple objects in Papervision using Flash Builder, each one with it's own texture that I'm getting from an imported SWC.My code works perfectly if I apply one texture to all shapes, but when I try to put it into a loop I can't seem to get it to work. I think this is more of a syntax problem, I'm just not sure how to tell Flex what I want.Here's a chunk of the code that works fine, applying an "img1" texture to everything: [code]Does that make sense? I want each iteration of the loop to add a number to the end of "img" and apply that to the shape.

View 8 Replies

ActionScript 2.0 :: Make A Quiz Where The User Identifies Textures In Images?

Sep 14, 2011

So basically I want to make a quiz where the user identifies textures in images. The first image is of a shell. So I want the user to be able to type in their answer into a input text field, then press a "check answer" button. Then if they typed in shell "Correct" will appear in a dynamic text field or "incorrect" if they had typed in any other answer.

with the action script required for this button, I am using action script 2 in flash cs4.

I found this code on the internet but it didn't work.

on (release) {
if (input_instance_name=="correct answer"){
display_instance_name.text="Correct!";
}

[Code].....

View 1 Replies

Flash :: Options For Interactive 3D Models On Web?

Jul 15, 2010

what my practical options are for publishing interactive 3D models on the web? I would think either Flash or Silverlight would be the way to go, but even if this is the case, perhaps there are some frameworks already available based on theseDetails:Fairly simple modelsMust support 'bones' and joints etc.Some level of user interaction requiredSome animation required.

View 9 Replies

Displaying 3D Models In Flash On The Browser?

Oct 15, 2010

I have a bunch of digital 3d models (in whatever format, I can probably accommodate the conversion) and all I'm trying to do is to find a flash 3d viewer that dynamically gets a 3d model and then allows the user to do things like pan, zoom, and move around in the model. These are specifically models of units and properties, so presentation and smoothness is certainly required. The models are NOT going to be very detailed and heavy

View 1 Replies

Actionscript 3 :: Making 3d Models In Flash?

Dec 20, 2010

I have to make a animation for my school. My cencept: Make 4 Pictures from a person's head and wire them together to a cube.Then i want to import this into Adobe flash professional cs5.

My Question:Is this possible? If not, are there any other rudiments to solve my problem?

View 2 Replies

Actionscript 3 :: Load Multiple Models In One

Mar 9, 2011

had the task to load a single model that has a dozen small models - everything is fine - but it would be split into separate models for faster downloading, type model1, model2 ..., the question arose as can be written so that would not be repeated with the code

[Code]..

View 1 Replies

Javascript :: Create A 3D Carousel For The Web From Models In 3ds Max?

Jun 16, 2011

Is it possible/what is the easiest way to take 3D model from max and create a Flash or Javascript carousel that can work on the web? It should function like a real world CD carousel with say 100 or so models built in. [URL] Buttons on each side scroll through the chips. This is my first one and I didn't see any similar questions asked. Sorry for not embedding the image...it wouldn't let me because this is my first post.

View 3 Replies

Html :: Have Real 3d Models In Flash?

Sep 30, 2011

[URL] I was told HTML5 might be involved, how? And how to have real 3d models in Flash?

View 1 Replies

ActionScript 2.0 :: Integrating 3ds Max Models Into Flash?

Jan 5, 2010

Does anyone know anything about integrating 3ds max models into flash, Can it even be done?

View 9 Replies

CS4 :: Import Poser Models Into Flash?

Apr 22, 2009

I am new to this forum but wanted to know if anyone has anyknowledge about importing poser 7 models into Flash CS4? If so, can the model then be manipulated in CS4, vis., camera movement, model position on the stage in 3D, lighting etc.?

View 2 Replies

IDE :: Importing Maya/3ds Max 3D Models Into Flash CS4

Apr 30, 2009

import 3D models from either 3Ds max or Maya into flash CS4. If so what file format do you have to export them as??

If not what 3D software can you use to export models into flash cs4? I heard swift 3D can but I'm not sure how to use that software so would it be possible to export models from maya/max into swift and then into flash cs4?

View 5 Replies

Flash :: IDE - Importing Maya Models Into CS4

May 21, 2009

Could someone tell me what the process is for importing 3D models from Maya into Flash CS4? I heard you could use Swift 3D but I don't have that. Could anyone else shed more light? Also if anyone knows any good video tutorials for working in 3D in flash CS4 please let me know asap.

View 1 Replies

ActionScript 2.0 :: Developing A Site To Dress Up Models?

Jan 28, 2011

I want some help on developing a site similar to looklet.com/create. I want to know what is the approach to make it. Should i make it XML based i.e an XML for each category? How are the number of models handled? Should I put each category of clothes in different layer and load the images? I have made some few games for kids in which they need to dress up a doll. But in that I had characters wearing all sort of clothes and i just need to show the frame containing the character with the particular dress chosen by user.

View 2 Replies

ActionScript 3.0 :: Smoothing Effect For Imported 3D Models

Oct 8, 2008

With away3d I import 3d models into flash builder 4.5 as follows:
package{
import models.example;
public class model extends Sprite {
public var model_example:example = new example;
public function model() {
view.scene.addChild(model_example);
}}}

In the file 'models.example.as' a jpg is used as texture for the model:
[Embed(source="picture.jpg")] private var Obj_000001_Bitmap_Bitmap:Class;
Picture.jpg is a picture of some text and it's not displayed very well.

I found something about smoothing on this site: [URL]. The text on my model is just as the text on the right cube in that article. I would like to have it as on the left cube but it seems that it does not work in my case.

View 14 Replies

ActionScript 3.0 :: 3d Vector Models With Texture Filled Surfaces?

Apr 24, 2010

Is there any good solution to having 3d vector models with texture filled surfaces using as3? I though that as3 allowed the import of models and had classes for 3d vectors, but I can't seem to find anything about it except for third party software.Here is what I am working on: I have made a 3/D game board on which a turn based game will be played. You can drag it to a variety of angels and it looks decent. This was not made with a vector object however--it was made entirely by using functions like rotateX, rotateY, and rotateZ. It still took a long time to get correct.The problem is that if I put flat pieces on the board it will not look right, and there would be far too many frames to have the pieces pre-rendered considering that you can turn the board in any direction and that the pieces are to be animated.

View 1 Replies

Actionscript 3 :: Manage Complex Models - Cache Data From Database?

Oct 24, 2010

My app has windows that are components. In my case, now I have 2 components that have a drop down list that show the current logged user lists. So when I use one component for the first time it make a request to database, save data in model, and load data from model, but when the second component opens, it will just load data from model. Easy for now: ListModel: this contains the current user lists.

Now I have another component but this needs the lists of another user. Where do I save these lists? I can't put in the ListModel as then will mix up with current user. Just a remind: there is not just 2 users. It might have more users, so it should be scalable.

View 1 Replies

Flex :: Avoiding Duplicate Data & Calculations In View-models?

Jul 26, 2011

I'm working on a Flex application that uses MVVM. I understand that it's recommended to have a 1-to-1 mapping between views and view-models. How then do I avoid performing the same calculations and storing the same data multiple times if it is needed in multiple views?

For example, imagine I have a program that can load project files consisting of a list of items. The main tab of my application has an export button that should only be enabled if the project is valid so I create an isExportEnabled property on the view-model for the main tab. The calculation for this involves validating the project by iterating though every item in the project and verifying some attribute on each. I have another tab which has a "Print Project Summary" button so the view-model for this tab has isPrintEnabled. The value for this flag is based on the same criteria, whether or not the project is valid.

I could put the logic for determining these values in their respective view-models, but then I end up calculating the same value twice when a project is loaded. I could move isValid to the domain model but then the model becomes denormalized. What if a saved project is edited without updating the "isValid" flag? I could make a global "Project View-Model" for the entire project which calculates whether the project is valid and then have isExportEnabled and isPrintEnabled delegate to that. However, then I end up with a hierarchy of view-models which this article recommends avoiding: Applying the Presentation Model in Flex

View 1 Replies

ActionScript 3.0 :: Import 3D Models From 3D Programs Into Flash, And Draw Views To BitmapData?

Jun 8, 2011

This is somewhat of an unusual topic, but hopefully you guys will have a reply that will allow me to go on. I am working on a 2D game following an unusual workflow that is very much 3D based. The workflow is 3D based but the game is flat! This is very important: Graphics are flat images.

Here's the general question. I need a Flash library that loads and is able to deal with 3D models, orient them and convert them in various ways to 2D BitmapDatas. Do you know anything that can do this? To elaborate, I was thinking of the best possible workflows for myself and artists' needs and there is one that I would really enjoy but need serious help to break through. Here it is: Import a textured 3D model from 3DS Max or other similar tools, into Flash At runtime, orient the model the way I want and draw it to BitmapData as a flat 2D colored image. This image is what is supposed to be displayed ultimately. Ideally there shouldn't be a need to display the model at all; just like you can draw MovieClips into BitmapDatas without adding them to the display list. The 3D model is non existent to the user, it's only a workflow convenience for developers, it's a data holder as well as a means to reduce file size.

- Still at runtime, I have to be able to generate a height map: Basically a BitmapData entirely black with, instead of the real texture, a gradient along the 3D Y axis that would have the same 2D shape as the model under its current orientation (i.e. it overlaps perfectly with the flat 2D colored image we made earlier; let's call colored images diffuse maps.) Remember it's along the 3D model's Y axis: If it's a character and its orientation makes the model's shoulder have the lowest Y 3D coordinate while his hips are the highest, the gradient will start from the shoulder. (i.e. it's not always "feet to head", depends on the model's orientation.)

View 7 Replies

Flex :: Use "textures" With Charts?

Apr 19, 2010

I'm new to Flex...I'm wondering if I can make a flex bar chart display a "texture" instead of a color?

View 1 Replies

Actionscript 3 :: Loading Lots Of Images And Its Done Asynchronous Which Make Browser To Frees During Loading

Feb 19, 2012

I have typical situation where big loop is loading lots of images and its done asynchronous which make browser to frees during loading and I want to make it synchronous but having big trouble doing it. I found this class synchronous loader and it work great but you cant add mouse event listener to loader. Here is sample code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Advanced Pre-loading Techniques - Reduce The Loading Time To The Minimum Possible?

Sep 21, 2010

I have a game built and I would like to reduce the loading time to the minimum possible.One of my ideas is to load the essential assets and some lower quality images the first time, leaving the higher quality images and some of the functionality out at first (for instance things like buttons that change the background color), and once the player enters the game, the rest of the functionality and its assets (images and sounds) will be loading in the background using the Loader class.So once the non-essential assets and the high quality images have loaded they will fade in and substitue the lower quality assets in the most subtle way possible.

Also... Would it be better to have various instances of a "Loader" class and try to load everything at once, or load stuff in order with a single instance of the "loader" class listening to the Event.COMPLETE event ?

View 1 Replies

ActionScript 3.0 :: Loading External Assets - Screen Stops Until The Loading Is Finished?

Oct 11, 2009

I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.

View 10 Replies

Actionscript 3 :: Prohibit Users From Loading Swf Files By Flash Loader.load() And Only Allow Loading Images?

Apr 1, 2010

I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.

So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?

View 1 Replies







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