ShadedMaterials not working with Collada model

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

ShadedMaterials not working with Collada model

by DanSearle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

If I understand SVN right I'm on revision 918.

I'm using the free version of Google SketchUp (v6.4.112) to make DAE files (using that hack to get the DAE from the KMZ it outputs), but I can't get the ShadedMaterials to work with it.

Here's a demo I've made:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.html
(Mouse Up/Down to move in and out, Mouse Left/Right to move the light source)

The paddling pool is meant to be shaded - the cube uses the same shaded materials as the pool to prove that the materials themselves are ok.

Is it maybe that the DAE created in this way isn't compatible with ShadedMaterials? Here's a link to the DAE file:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/paddling%20pond.dae

Or in case it's a code problem, here's the relevant code, or you can also get the AS file here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.as

(Note that I have the textures in the FLA library)

        public function DanWasHereWorld($mc:MovieClip) {
           
            mc = $mc;
           
            viewport = new Viewport3D(800, 600, true, true, true, true);
            mc.addChild(viewport);
           
            camera = new Camera3D(standardViewCameraFOV, 10, 5000, true);
            camera.x = standardViewCameraX;
            camera.y = standardViewCameraY;
            camera.z = standardViewCameraZ;
            camera.zoom = standardViewCameraZoom;
           
            renderer = new BasicRenderEngine();
            mc.addChild(viewport);

            scene = new Scene3D();
           
            light = new PointLight3D();
            scene.addChild(light);
            light.x = 0;
            light.y = 400;
            light.z = -100;
            light.showLight = true;
           
            var textureBottomRing:Class = ApplicationDomain.currentDomain.getDefinition("Texture_bottomring") as Class;
            var textureMidRing:Class = ApplicationDomain.currentDomain.getDefinition("Texture_midring") as Class;
            var textureTopRing:Class = ApplicationDomain.currentDomain.getDefinition("Texture_topring") as Class;
            var textureWater:Class = ApplicationDomain.currentDomain.getDefinition("Texture_water") as Class;
            var textureExtra1:Class = ApplicationDomain.currentDomain.getDefinition("Texture_extra_1") as Class;
            var textureExtra2:Class = ApplicationDomain.currentDomain.getDefinition("Texture_extra_2") as Class;
           
            // Not in a logical order here because that's how they came out in the Collada DAE file.
            mcTexture0 = new textureWater();
            mcTexture1 = new textureBottomRing();
            mcTexture2 = new textureTopRing();
            mcTexture3 = new textureMidRing();
           
            // Two extra textures to show the text cube.
            mcTexture4 = new textureExtra1();
            mcTexture5 = new textureExtra2();
           
            movieMaterial0 = new MovieMaterial(mcTexture0, false, true, false);
            movieMaterial1 = new MovieMaterial(mcTexture1, false, false, false);
            movieMaterial2 = new MovieMaterial(mcTexture2, false, false, false);
            movieMaterial3 = new MovieMaterial(mcTexture3, false, false, false);
            movieMaterial4 = new MovieMaterial(mcTexture4, false, false, false);
            movieMaterial5 = new MovieMaterial(mcTexture5, false, false, false);
           
            movieMaterial0.precise = true;
           
            movieMaterial0.doubleSided = false;
            movieMaterial1.doubleSided = false;
            movieMaterial2.doubleSided = false;
            movieMaterial3.doubleSided = false;
            movieMaterial4.doubleSided = false;
            movieMaterial5.doubleSided = false;
           
                       
            shadedMaterial0 = new ShadedMaterial(movieMaterial0, new FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial1 = new ShadedMaterial(movieMaterial1, new FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial2 = new ShadedMaterial(movieMaterial2, new FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial3 = new ShadedMaterial(movieMaterial3, new FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial4 = new ShadedMaterial(movieMaterial4, new FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial5 = new ShadedMaterial(movieMaterial5, new FlatShader(light, 0xFFFFFF, 0x555555));
           
           
            var mat:MaterialsList = new MaterialsList();
           
            mat.addMaterial(movieMaterial0,         "material0");
            mat.addMaterial(movieMaterial1,         "material1");
            mat.addMaterial(movieMaterial2,             "material2");
            mat.addMaterial(movieMaterial3,             "material3");
            mat.addMaterial(movieMaterial4,             "material4");
            mat.addMaterial(movieMaterial5,             "material5");
           
            island = new Collada("paddling pond.dae", mat, 0.0005);
            scene.addChild(island);
            island.x = -200;
            island.y = 0;
            island.z = 200;
           
            island.replaceMaterialByName(shadedMaterial0, "material0");
            island.replaceMaterialByName(shadedMaterial1, "material1");
            island.replaceMaterialByName(shadedMaterial2, "material2");
            island.replaceMaterialByName(shadedMaterial3, "material3");
           
            //island.rotationY = -180 + Math.random() * 360;
           
            camera.target = island;
           
            // Set up the cube.
            var matCube:MaterialsList = new MaterialsList();           
            matCube.addMaterial(shadedMaterial0,         "front");
            matCube.addMaterial(shadedMaterial1,         "back");
            matCube.addMaterial(shadedMaterial2,             "right");
            matCube.addMaterial(shadedMaterial3,             "left");
            matCube.addMaterial(shadedMaterial4,             "top");
            matCube.addMaterial(shadedMaterial5,             "bottom");

            testCube = new Cube(matCube, 100, 100, 100, 6, 6, 6);           
            scene.addChild(testCube);
            testCube.x = 0;
            testCube.y = 150;
            testCube.z = 50;

           
            mc.stage.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
        }



I'd love an explanation of how to do this if someone can help?

Many thanks,
Dan



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by andysk8er :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dan,

Why don't you try to simplify things in your code first. Simply create a simple flatshadedmaterial, add it to the materials list and do your replaceMaterialByName. See if you can get that working. Then, go back and add in your textures, shaders, etc...

I guess I'm not really sure why you are declaring your materials as Classes. Why not just create MovieAssetMaterials using the linkage name in the library? Anyway, if you strip all of that stuff out of your code and simply use a flatshaded material, you can see if that works. If so, you can begin adding your materials back in until it breaks.

-Andy


DanSearle wrote:
Hi list,

If I understand SVN right I'm on revision 918.

I'm using the free version of Google SketchUp (v6.4.112) to make DAE
files (using that hack to get the DAE from the KMZ it outputs), but I
can't get the ShadedMaterials to work with it.

Here's a demo I've made:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.html
(Mouse Up/Down to move in and out, Mouse Left/Right to move the light
source)

The paddling pool is meant to be shaded - the cube uses the same shaded
materials as the pool to prove that the materials themselves are ok.

Is it maybe that the DAE created in this way isn't compatible with
ShadedMaterials? Here's a link to the DAE file:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/paddling%20pond.dae

Or in case it's a code problem, here's the relevant code, or you can
also get the AS file here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.as

(Note that I have the textures in the FLA library)

        public function DanWasHereWorld($mc:MovieClip) {
           
            mc = $mc;
           
            viewport = new Viewport3D(800, 600, true, true, true, true);
            mc.addChild(viewport);
           
            camera = new Camera3D(standardViewCameraFOV, 10, 5000, true);
            camera.x = standardViewCameraX;
            camera.y = standardViewCameraY;
            camera.z = standardViewCameraZ;
            camera.zoom = standardViewCameraZoom;
           
            renderer = new BasicRenderEngine();
            mc.addChild(viewport);

            scene = new Scene3D();
           
            light = new PointLight3D();
            scene.addChild(light);
            light.x = 0;
            light.y = 400;
            light.z = -100;
            light.showLight = true;
           
            var textureBottomRing:Class =
ApplicationDomain.currentDomain.getDefinition("Texture_bottomring") as
Class;
            var textureMidRing:Class =
ApplicationDomain.currentDomain.getDefinition("Texture_midring") as Class;
            var textureTopRing:Class =
ApplicationDomain.currentDomain.getDefinition("Texture_topring") as Class;
            var textureWater:Class =
ApplicationDomain.currentDomain.getDefinition("Texture_water") as Class;
            var textureExtra1:Class =
ApplicationDomain.currentDomain.getDefinition("Texture_extra_1") as Class;
            var textureExtra2:Class =
ApplicationDomain.currentDomain.getDefinition("Texture_extra_2") as Class;
           
            // Not in a logical order here because that's how they came
out in the Collada DAE file.
            mcTexture0 = new textureWater();
            mcTexture1 = new textureBottomRing();
            mcTexture2 = new textureTopRing();
            mcTexture3 = new textureMidRing();
           
            // Two extra textures to show the text cube.
            mcTexture4 = new textureExtra1();
            mcTexture5 = new textureExtra2();
           
            movieMaterial0 = new MovieMaterial(mcTexture0, false, true,
false);
            movieMaterial1 = new MovieMaterial(mcTexture1, false, false,
false);
            movieMaterial2 = new MovieMaterial(mcTexture2, false, false,
false);
            movieMaterial3 = new MovieMaterial(mcTexture3, false, false,
false);
            movieMaterial4 = new MovieMaterial(mcTexture4, false, false,
false);
            movieMaterial5 = new MovieMaterial(mcTexture5, false, false,
false);
           
            movieMaterial0.precise = true;
           
            movieMaterial0.doubleSided = false;
            movieMaterial1.doubleSided = false;
            movieMaterial2.doubleSided = false;
            movieMaterial3.doubleSided = false;
            movieMaterial4.doubleSided = false;
            movieMaterial5.doubleSided = false;
           
                       
            shadedMaterial0 = new ShadedMaterial(movieMaterial0, new
FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial1 = new ShadedMaterial(movieMaterial1, new
FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial2 = new ShadedMaterial(movieMaterial2, new
FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial3 = new ShadedMaterial(movieMaterial3, new
FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial4 = new ShadedMaterial(movieMaterial4, new
FlatShader(light, 0xFFFFFF, 0x555555));
            shadedMaterial5 = new ShadedMaterial(movieMaterial5, new
FlatShader(light, 0xFFFFFF, 0x555555));
           
           
            var mat:MaterialsList = new MaterialsList();
           
            mat.addMaterial(movieMaterial0,         "material0");
            mat.addMaterial(movieMaterial1,         "material1");
            mat.addMaterial(movieMaterial2,             "material2");
            mat.addMaterial(movieMaterial3,             "material3");
            mat.addMaterial(movieMaterial4,             "material4");
            mat.addMaterial(movieMaterial5,             "material5");
           
            island = new Collada("paddling pond.dae", mat, 0.0005);
            scene.addChild(island);
            island.x = -200;
            island.y = 0;
            island.z = 200;
           
            island.replaceMaterialByName(shadedMaterial0, "material0");
            island.replaceMaterialByName(shadedMaterial1, "material1");
            island.replaceMaterialByName(shadedMaterial2, "material2");
            island.replaceMaterialByName(shadedMaterial3, "material3");
           
            //island.rotationY = -180 + Math.random() * 360;
           
            camera.target = island;
           
            // Set up the cube.
            var matCube:MaterialsList = new MaterialsList();          
            matCube.addMaterial(shadedMaterial0,         "front");
            matCube.addMaterial(shadedMaterial1,         "back");
            matCube.addMaterial(shadedMaterial2,             "right");
            matCube.addMaterial(shadedMaterial3,             "left");
            matCube.addMaterial(shadedMaterial4,             "top");
            matCube.addMaterial(shadedMaterial5,             "bottom");

            testCube = new Cube(matCube, 100, 100, 100, 6, 6, 6);        
   
            scene.addChild(testCube);
            testCube.x = 0;
            testCube.y = 150;
            testCube.z = 50;

           
            mc.stage.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
        }



I'd love an explanation of how to do this if someone can help?

Many thanks,
Dan



_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
===============================================
Check out my blog for Flash, AS3, and web development stuff:
http://www.wastedpotential.com

Re: ShadedMaterials not working with Collada model

by DanSearle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andy thanks for your reply. I've simplified the code and the model, but still I can't get it to work.

I have two problems:
  1. I can't get ShadedMaterials working with my Collada object.
  2. replaceMaterialByName is also not working with the Collada object.
See here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.html
Click anywhere to make it swap the materials (it also moves the object left and right so you know your click has worked) - it fails to swap the materials.

Here's the cut down code:

package {
   
// imports not included
   
    public class PV3DTest extends MovieClip {
       
        private var mc:MovieClip;
       
        private var basicView:BasicView;
       
        private var light:PointLight3D;
       
        private var testColladaObject:Collada;
        private var showingShadedMaterial:Boolean;
       
        private var flatShadeMaterial:FlatShadeMaterial;
        private var movieMaterial:MovieMaterial;
        private var shadedMaterial:ShadedMaterial;
       
        public function PV3DTest($mc:MovieClip) {
           
            mc = $mc;
           
            // Set up of BasicView and Light not included
           
            // Note: Texture_extra_1 is a library clip.
            movieMaterial = new MovieMaterial(new Texture_extra_1(), false, true, false);

            shadedMaterial = new ShadedMaterial(movieMaterial, new FlatShader(light, 0xFFFFFF, 0x555555));
           
            flatShadeMaterial = new FlatShadeMaterial(light, 0x8888ff, 0x111133);
           
            var mat:MaterialsList = new MaterialsList();
            // Initially use the flatShadeMaterial, which works ok.
            mat.addMaterial(flatShadeMaterial,    "material0");
            testColladaObject = new Collada("Simple.dae", mat, 0.00005);
            basicView.scene.addChild(testColladaObject);
            testColladaObject.x = -100;
           
            showingShadedMaterial = false;
           
            mc.stage.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
            mc.stage.addEventListener(MouseEvent.CLICK, handleMouseClick);
        }
       
        private function handleMouseClick($e:MouseEvent):void {
            // Toggle the material on mouse click.
            if (showingShadedMaterial) {
                // replaceMaterialByName seems to do nothing
                testColladaObject.replaceMaterialByName(flatShadeMaterial, "material0");
                testColladaObject.x = -100;
                showingShadedMaterial = false;
            } else {
                // I also tested this by swapping one flatShadeMaterial for
                //
another of a diff colour, that didn't work either.
                testColladaObject.replaceMaterialByName(shadedMaterial, "material0");
                testColladaObject.x = 100;
                showingShadedMaterial = true;
            }
        }

        private function handleEnterFrame($e:Event):void {           
            // Spin the object by mouse position
           
            basicView.singleRender();           
        }       
    }   
}


Are these known bugs in revision 918 maybe? I'm not sure where to look to find that out.

Or is it a problem in my Collada DAE file perhaps?
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/Simple.dae


Thanks,
Dan


andysk8er wrote:
Hi Dan,

Why don't you try to simplify things in your code first. Simply create a
simple flatshadedmaterial, add it to the materials list and do your
replaceMaterialByName. See if you can get that working. Then, go back and
add in your textures, shaders, etc...

I guess I'm not really sure why you are declaring your materials as Classes.
Why not just create MovieAssetMaterials using the linkage name in the
library? Anyway, if you strip all of that stuff out of your code and simply
use a flatshaded material, you can see if that works. If so, you can begin
adding your materials back in until it breaks. 

-Andy



DanSearle wrote:
  
Hi list,

If I understand SVN right I'm on revision 918.

I'm using the free version of Google SketchUp (v6.4.112) to make DAE 
files (using that hack to get the DAE from the KMZ it outputs), but I 
can't get the ShadedMaterials to work with it.

Here's a demo I've made:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.html
(Mouse Up/Down to move in and out, Mouse Left/Right to move the light 
source)

The paddling pool is meant to be shaded - the cube uses the same shaded 
materials as the pool to prove that the materials themselves are ok.

Is it maybe that the DAE created in this way isn't compatible with 
ShadedMaterials? Here's a link to the DAE file:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/paddling%20pond.dae

Or in case it's a code problem, here's the relevant code, or you can 
also get the AS file here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.as

(Note that I have the textures in the FLA library)

*** I've cut the code from this reply cos it wasn't useful ***

I'd love an explanation of how to do this if someone can help?

Many thanks,
Dan



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


    

  

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.2/2215 - Release Date: 07/02/09 18:06:00

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by andysk8er :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dan,
A few questions:
Have you tried adding the ShadedMAterial to the model first (instead of the FlatShadeMaterial)? Does that fail?

You say that you have tried doing replaceMAterialByName with another FlatShadeMAterial, but it failed. Have you tried tracing the model's materialsList each time you click to make sure that the material reference is still there? It may be a bug in the Collada class.

-Andy

DanSearle wrote:
Hi Andy thanks for your reply. I've simplified the code and the model,
but still I can't get it to work.

I have two problems:

   1. I can't get ShadedMaterials working with my Collada object.
   2. replaceMaterialByName is also not working with the Collada object.

See here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.html
Click anywhere to make it swap the materials (it also moves the object
left and right so you know your click has worked) - it fails to swap the
materials.

Here's the cut down code:

package {
   
// imports not included
   
    public class PV3DTest extends MovieClip {
       
        private var mc:MovieClip;
       
        private var basicView:BasicView;
       
        private var light:PointLight3D;
       
        private var testColladaObject:Collada;
        private var showingShadedMaterial:Boolean;
       
        private var flatShadeMaterial:FlatShadeMaterial;
        private var movieMaterial:MovieMaterial;
        private var shadedMaterial:ShadedMaterial;
       
        public function PV3DTest($mc:MovieClip) {
           
            mc = $mc;
           
            // Set up of BasicView and Light not included
           
            // Note: Texture_extra_1 is a library clip.
            movieMaterial = new MovieMaterial(new Texture_extra_1(),
false, true, false);

            shadedMaterial = new ShadedMaterial(movieMaterial, new
FlatShader(light, 0xFFFFFF, 0x555555));
           
            flatShadeMaterial = new FlatShadeMaterial(light, 0x8888ff,
0x111133);
           
            var mat:MaterialsList = new MaterialsList();
            // Initially use the flatShadeMaterial, which works ok.
            mat.addMaterial(flatShadeMaterial,    "material0");
            testColladaObject = new Collada("Simple.dae", mat, 0.00005);
            basicView.scene.addChild(testColladaObject);
            testColladaObject.x = -100;
           
            showingShadedMaterial = false;
           
            mc.stage.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
            mc.stage.addEventListener(MouseEvent.CLICK, handleMouseClick);
        }
       
        private function handleMouseClick($e:MouseEvent):void {
            // Toggle the material on mouse click.
            if (showingShadedMaterial) {
                // replaceMaterialByName seems to do nothing
               
testColladaObject.replaceMaterialByName(flatShadeMaterial, "material0");
                testColladaObject.x = -100;
                showingShadedMaterial = false;
            } else {
                // I also tested this by swapping one flatShadeMaterial for
                // another of a diff colour, that didn't work either.
                testColladaObject.replaceMaterialByName(shadedMaterial,
"material0");
                testColladaObject.x = 100;
                showingShadedMaterial = true;
            }
        }

        private function handleEnterFrame($e:Event):void {          
            // Spin the object by mouse position
           
            basicView.singleRender();          
        }      
    }  
}

Are these known bugs in revision 918 maybe? I'm not sure where to look
to find that out.

Or is it a problem in my Collada DAE file perhaps?
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/Simple.dae

Thanks,
Dan


andysk8er wrote:
> Hi Dan,
>
> Why don't you try to simplify things in your code first. Simply create a
> simple flatshadedmaterial, add it to the materials list and do your
> replaceMaterialByName. See if you can get that working. Then, go back and
> add in your textures, shaders, etc...
>
> I guess I'm not really sure why you are declaring your materials as Classes.
> Why not just create MovieAssetMaterials using the linkage name in the
> library? Anyway, if you strip all of that stuff out of your code and simply
> use a flatshaded material, you can see if that works. If so, you can begin
> adding your materials back in until it breaks.
>
> -Andy
>
>
>
> DanSearle wrote:
>  
>> Hi list,
>>
>> If I understand SVN right I'm on revision 918.
>>
>> I'm using the free version of Google SketchUp (v6.4.112) to make DAE
>> files (using that hack to get the DAE from the KMZ it outputs), but I
>> can't get the ShadedMaterials to work with it.
>>
>> Here's a demo I've made:
>> http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.html
>> (Mouse Up/Down to move in and out, Mouse Left/Right to move the light
>> source)
>>
>> The paddling pool is meant to be shaded - the cube uses the same shaded
>> materials as the pool to prove that the materials themselves are ok.
>>
>> Is it maybe that the DAE created in this way isn't compatible with
>> ShadedMaterials? Here's a link to the DAE file:
>> http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/paddling%20pond.dae
>>
>> Or in case it's a code problem, here's the relevant code, or you can
>> also get the AS file here:
>> http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.as
>>
>> (Note that I have the textures in the FLA library)
>>
>> *** I've cut the code from this reply cos it wasn't useful ***
>>
>> I'd love an explanation of how to do this if someone can help?
>>
>> Many thanks,
>> Dan
>>
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>>    
>
>  
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.375 / Virus Database: 270.13.2/2215 - Release Date: 07/02/09 18:06:00
>
>  

_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
===============================================
Check out my blog for Flash, AS3, and web development stuff:
http://www.wastedpotential.com

Re: ShadedMaterials not working with Collada model

by DanSearle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andy,

yes I've tried using my shadedMaterial first, e.g.
mat.addMaterial(shadedMaterial,    "material0");

see here for the result:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.2.html

And I've now traced out the materialsList() for the object, just before it gets changed in the mouse click handler, and it throws an null object error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.papervision3d.objects::DisplayObject3D/materialsList()
    at ShadingTest/handleMouseClick()


So I guess it's as you say - it loses the materials list. Is there a work around for this you know of?

Cheers,
Dan

andysk8er wrote:
Hi Dan,
A few questions:
Have you tried adding the ShadedMAterial to the model first (instead of the
FlatShadeMaterial)? Does that fail?

You say that you have tried doing replaceMAterialByName with another
FlatShadeMAterial, but it failed. Have you tried tracing the model's
materialsList each time you click to make sure that the material reference
is still there? It may be a bug in the Collada class. 

-Andy


DanSearle wrote:
  
Hi Andy thanks for your reply. I've simplified the code and the model, 
but still I can't get it to work.

I have two problems:

   1. I can't get ShadedMaterials working with my Collada object.
   2. replaceMaterialByName is also not working with the Collada object.

See here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.html
Click anywhere to make it swap the materials (it also moves the object 
left and right so you know your click has worked) - it fails to swap the 
materials.

Here's the cut down code:

package {
   
// imports not included
   
    public class PV3DTest extends MovieClip {
       
        private var mc:MovieClip;
       
        private var basicView:BasicView;
       
        private var light:PointLight3D;
       
        private var testColladaObject:Collada;
        private var showingShadedMaterial:Boolean;
       
        private var flatShadeMaterial:FlatShadeMaterial;
        private var movieMaterial:MovieMaterial;
        private var shadedMaterial:ShadedMaterial;
       
        public function PV3DTest($mc:MovieClip) {
           
            mc = $mc;
           
            // Set up of BasicView and Light not included
           
            // Note: Texture_extra_1 is a library clip.
            movieMaterial = new MovieMaterial(new Texture_extra_1(), 
false, true, false);

            shadedMaterial = new ShadedMaterial(movieMaterial, new 
FlatShader(light, 0xFFFFFF, 0x555555));
           
            flatShadeMaterial = new FlatShadeMaterial(light, 0x8888ff, 
0x111133);
           
            var mat:MaterialsList = new MaterialsList();
            // Initially use the flatShadeMaterial, which works ok.
            mat.addMaterial(flatShadeMaterial,    "material0");
            testColladaObject = new Collada("Simple.dae", mat, 0.00005);
            basicView.scene.addChild(testColladaObject);
            testColladaObject.x = -100;
           
            showingShadedMaterial = false;
           
            mc.stage.addEventListener(Event.ENTER_FRAME,
handleEnterFrame);
            mc.stage.addEventListener(MouseEvent.CLICK, handleMouseClick);
        }
       
        private function handleMouseClick($e:MouseEvent):void {
            // Toggle the material on mouse click.
            if (showingShadedMaterial) {
                // replaceMaterialByName seems to do nothing
                
testColladaObject.replaceMaterialByName(flatShadeMaterial, "material0");
                testColladaObject.x = -100;
                showingShadedMaterial = false;
            } else {
                // I also tested this by swapping one flatShadeMaterial
for
                // another of a diff colour, that didn't work either.
                testColladaObject.replaceMaterialByName(shadedMaterial, 
"material0");
                testColladaObject.x = 100;
                showingShadedMaterial = true;
            }
        }

        private function handleEnterFrame($e:Event):void {           
            // Spin the object by mouse position
           
            basicView.singleRender();           
        }       
    }   
}

Are these known bugs in revision 918 maybe? I'm not sure where to look 
to find that out.

Or is it a problem in my Collada DAE file perhaps?
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/Simple.dae

Thanks,
Dan


andysk8er wrote:
    
Hi Dan,

Why don't you try to simplify things in your code first. Simply create a
simple flatshadedmaterial, add it to the materials list and do your
replaceMaterialByName. See if you can get that working. Then, go back and
add in your textures, shaders, etc...

I guess I'm not really sure why you are declaring your materials as
Classes.
Why not just create MovieAssetMaterials using the linkage name in the
library? Anyway, if you strip all of that stuff out of your code and
simply
use a flatshaded material, you can see if that works. If so, you can
begin
adding your materials back in until it breaks. 

-Andy



DanSearle wrote:
  
      
Hi list,

If I understand SVN right I'm on revision 918.

I'm using the free version of Google SketchUp (v6.4.112) to make DAE 
files (using that hack to get the DAE from the KMZ it outputs), but I 
can't get the ShadedMaterials to work with it.

Here's a demo I've made:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.html
(Mouse Up/Down to move in and out, Mouse Left/Right to move the light 
source)

The paddling pool is meant to be shaded - the cube uses the same shaded 
materials as the pool to prove that the materials themselves are ok.

Is it maybe that the DAE created in this way isn't compatible with 
ShadedMaterials? Here's a link to the DAE file:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/paddling%20pond.dae

Or in case it's a code problem, here's the relevant code, or you can 
also get the AS file here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.as

(Note that I have the textures in the FLA library)

*** I've cut the code from this reply cos it wasn't useful ***

I'd love an explanation of how to do this if someone can help?

Many thanks,
Dan



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


    
        
  
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.13.2/2215 - Release Date: 07/02/09
18:06:00

  
      
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


    

  

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date: 07/07/09 17:54:00

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by John Brookes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

testColladaObject.getChildByName("mesh1", true).material = new ColorMaterial(); //or whatever

2009/7/8 Dan <dan_maillists@...>
Hi Andy,

yes I've tried using my shadedMaterial first, e.g.
mat.addMaterial(shadedMaterial,    "material0");

see here for the result:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.2.html

And I've now traced out the materialsList() for the object, just before it gets changed in the mouse click handler, and it throws an null object error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.papervision3d.objects::DisplayObject3D/materialsList()
    at ShadingTest/handleMouseClick()


So I guess it's as you say - it loses the materials list. Is there a work around for this you know of?

Cheers,
Dan

andysk8er wrote:
Hi Dan,
A few questions:
Have you tried adding the ShadedMAterial to the model first (instead of the
FlatShadeMaterial)? Does that fail?

You say that you have tried doing replaceMAterialByName with another
FlatShadeMAterial, but it failed. Have you tried tracing the model's
materialsList each time you click to make sure that the material reference
is still there? It may be a bug in the Collada class. 

-Andy


DanSearle wrote:
  
Hi Andy thanks for your reply. I've simplified the code and the model, 
but still I can't get it to work.

I have two problems:

   1. I can't get ShadedMaterials working with my Collada object.
   2. replaceMaterialByName is also not working with the Collada object.

See here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.html
Click anywhere to make it swap the materials (it also moves the object 
left and right so you know your click has worked) - it fails to swap the 
materials.

Here's the cut down code:

package {
   
// imports not included
   
    public class PV3DTest extends MovieClip {
       
        private var mc:MovieClip;
       
        private var basicView:BasicView;
       
        private var light:PointLight3D;
       
        private var testColladaObject:Collada;
        private var showingShadedMaterial:Boolean;
       
        private var flatShadeMaterial:FlatShadeMaterial;
        private var movieMaterial:MovieMaterial;
        private var shadedMaterial:ShadedMaterial;
       
        public function PV3DTest($mc:MovieClip) {
           
            mc = $mc;
           
            // Set up of BasicView and Light not included
           
            // Note: Texture_extra_1 is a library clip.
            movieMaterial = new MovieMaterial(new Texture_extra_1(), 
false, true, false);

            shadedMaterial = new ShadedMaterial(movieMaterial, new 
FlatShader(light, 0xFFFFFF, 0x555555));
           
            flatShadeMaterial = new FlatShadeMaterial(light, 0x8888ff, 
0x111133);
           
            var mat:MaterialsList = new MaterialsList();
            // Initially use the flatShadeMaterial, which works ok.
            mat.addMaterial(flatShadeMaterial,    "material0");
            testColladaObject = new Collada("Simple.dae", mat, 0.00005);
            basicView.scene.addChild(testColladaObject);
            testColladaObject.x = -100;
           
            showingShadedMaterial = false;
           
            mc.stage.addEventListener(Event.ENTER_FRAME,
handleEnterFrame);
            mc.stage.addEventListener(MouseEvent.CLICK, handleMouseClick);
        }
       
        private function handleMouseClick($e:MouseEvent):void {
            // Toggle the material on mouse click.
            if (showingShadedMaterial) {
                // replaceMaterialByName seems to do nothing
                
testColladaObject.replaceMaterialByName(flatShadeMaterial, "material0");
                testColladaObject.x = -100;
                showingShadedMaterial = false;
            } else {
                // I also tested this by swapping one flatShadeMaterial
for
                // another of a diff colour, that didn't work either.
                testColladaObject.replaceMaterialByName(shadedMaterial, 
"material0");
                testColladaObject.x = 100;
                showingShadedMaterial = true;
            }
        }

        private function handleEnterFrame($e:Event):void {           
            // Spin the object by mouse position
           
            basicView.singleRender();           
        }       
    }   
}

Are these known bugs in revision 918 maybe? I'm not sure where to look 
to find that out.

Or is it a problem in my Collada DAE file perhaps?
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/Simple.dae

Thanks,
Dan


andysk8er wrote:
    
Hi Dan,

Why don't you try to simplify things in your code first. Simply create a
simple flatshadedmaterial, add it to the materials list and do your
replaceMaterialByName. See if you can get that working. Then, go back and
add in your textures, shaders, etc...

I guess I'm not really sure why you are declaring your materials as
Classes.
Why not just create MovieAssetMaterials using the linkage name in the
library? Anyway, if you strip all of that stuff out of your code and
simply
use a flatshaded material, you can see if that works. If so, you can
begin
adding your materials back in until it breaks. 

-Andy



DanSearle wrote:
  
      
Hi list,

If I understand SVN right I'm on revision 918.

I'm using the free version of Google SketchUp (v6.4.112) to make DAE 
files (using that hack to get the DAE from the KMZ it outputs), but I 
can't get the ShadedMaterials to work with it.

Here's a demo I've made:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.html
(Mouse Up/Down to move in and out, Mouse Left/Right to move the light 
source)

The paddling pool is meant to be shaded - the cube uses the same shaded 
materials as the pool to prove that the materials themselves are ok.

Is it maybe that the DAE created in this way isn't compatible with 
ShadedMaterials? Here's a link to the DAE file:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/paddling%20pond.dae

Or in case it's a code problem, here's the relevant code, or you can 
also get the AS file here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.as

(Note that I have the textures in the FLA library)

*** I've cut the code from this reply cos it wasn't useful ***

I'd love an explanation of how to do this if someone can help?

Many thanks,
Dan



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


    
        
  
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.13.2/2215 - Release Date: 07/02/09
18:06:00

  
      
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


    
  

No virus found in this incoming message. Checked by AVG - www.avg.com
Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date: 07/07/09 17:54:00

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by DanSearle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks John, that trick let me swap the materials at runtime:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.3.html


I still can't get my ShadedMaterial to work properly with the Collada object though - any thoughts on that? Here's the relevant code taken from the above test:

            // Note: Texture_extra_1 is a library clip.
            movieMaterial = new MovieMaterial(new Texture_extra_1(), false, true, false);

            shadedMaterial = new ShadedMaterial(movieMaterial, new FlatShader(light, 0xFFFFFF, 0x555555));
           
            flatShadeMaterial = new FlatShadeMaterial(light, 0x8888ff, 0x111133);
           
            var mat:MaterialsList = new MaterialsList();
            mat.addMaterial(flatShadeMaterial,    "material0");
            showingShadedMaterial = false;
            testColladaObject = new Collada("Simple.dae", mat, 0.00005);
            testColladaObject.addEventListener(FileLoadEvent.LOAD_COMPLETE, handleColladaReady);           
        }
       
        private function handleColladaReady($e:FileLoadEvent):void {
            testColladaObject.removeEventListener(FileLoadEvent.LOAD_COMPLETE, handleColladaReady);
            toggleMaterial();
            basicView.scene.addChild(testColladaObject);
           
            mc.stage.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
            mc.stage.addEventListener(MouseEvent.CLICK, handleMouseClick);
        }
       
        private function handleMouseClick($e:MouseEvent):void {
            // Toggle the material on mouse click.
            toggleMaterial();
        }
       
        private function toggleMaterial():void {
            mc.msgFlatShadeMaterial.visible = false;
            mc.msgShadedMaterial.visible = false;
            try{
                if (showingShadedMaterial) {
                    testColladaObject.getChildByName("mesh1", true).material = flatShadeMaterial;
                    showingShadedMaterial = false;
                    mc.msgFlatShadeMaterial.visible = true;
                } else {
                    testColladaObject.getChildByName("mesh1", true).material = shadedMaterial;
                    showingShadedMaterial = true;
                    mc.msgShadedMaterial.visible = true;
                }
            }catch ($e:Error) {
                trace("ERROR SWAPPING MATERIAL: " + $e.toString());
            }
        }



Thanks,
Dan


John Brookes wrote:
testColladaObject.getChildByName("mesh1", true).material = new ColorMaterial(); //or whatever

2009/7/8 Dan <dan_maillists@...>
Hi Andy,

yes I've tried using my shadedMaterial first, e.g.
mat.addMaterial(shadedMaterial,    "material0");

see here for the result:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.2.html

And I've now traced out the materialsList() for the object, just before it gets changed in the mouse click handler, and it throws an null object error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.papervision3d.objects::DisplayObject3D/materialsList()
    at ShadingTest/handleMouseClick()


So I guess it's as you say - it loses the materials list. Is there a work around for this you know of?

Cheers,
Dan

andysk8er wrote:
Hi Dan,
A few questions:
Have you tried adding the ShadedMAterial to the model first (instead of the
FlatShadeMaterial)? Does that fail?

You say that you have tried doing replaceMAterialByName with another
FlatShadeMAterial, but it failed. Have you tried tracing the model's
materialsList each time you click to make sure that the material reference
is still there? It may be a bug in the Collada class. 

-Andy


DanSearle wrote:
  
Hi Andy thanks for your reply. I've simplified the code and the model, 
but still I can't get it to work.

I have two problems:

   1. I can't get ShadedMaterials working with my Collada object.
   2. replaceMaterialByName is also not working with the Collada object.

See here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/ShadingTest.html
Click anywhere to make it swap the materials (it also moves the object 
left and right so you know your click has worked) - it fails to swap the 
materials.

Here's the cut down code:

package {
   
// imports not included
   
    public class PV3DTest extends MovieClip {
       
        private var mc:MovieClip;
       
        private var basicView:BasicView;
       
        private var light:PointLight3D;
       
        private var testColladaObject:Collada;
        private var showingShadedMaterial:Boolean;
       
        private var flatShadeMaterial:FlatShadeMaterial;
        private var movieMaterial:MovieMaterial;
        private var shadedMaterial:ShadedMaterial;
       
        public function PV3DTest($mc:MovieClip) {
           
            mc = $mc;
           
            // Set up of BasicView and Light not included
           
            // Note: Texture_extra_1 is a library clip.
            movieMaterial = new MovieMaterial(new Texture_extra_1(), 
false, true, false);

            shadedMaterial = new ShadedMaterial(movieMaterial, new 
FlatShader(light, 0xFFFFFF, 0x555555));
           
            flatShadeMaterial = new FlatShadeMaterial(light, 0x8888ff, 
0x111133);
           
            var mat:MaterialsList = new MaterialsList();
            // Initially use the flatShadeMaterial, which works ok.
            mat.addMaterial(flatShadeMaterial,    "material0");
            testColladaObject = new Collada("Simple.dae", mat, 0.00005);
            basicView.scene.addChild(testColladaObject);
            testColladaObject.x = -100;
           
            showingShadedMaterial = false;
           
            mc.stage.addEventListener(Event.ENTER_FRAME,
handleEnterFrame);
            mc.stage.addEventListener(MouseEvent.CLICK, handleMouseClick);
        }
       
        private function handleMouseClick($e:MouseEvent):void {
            // Toggle the material on mouse click.
            if (showingShadedMaterial) {
                // replaceMaterialByName seems to do nothing
                
testColladaObject.replaceMaterialByName(flatShadeMaterial, "material0");
                testColladaObject.x = -100;
                showingShadedMaterial = false;
            } else {
                // I also tested this by swapping one flatShadeMaterial
for
                // another of a diff colour, that didn't work either.
                testColladaObject.replaceMaterialByName(shadedMaterial, 
"material0");
                testColladaObject.x = 100;
                showingShadedMaterial = true;
            }
        }

        private function handleEnterFrame($e:Event):void {           
            // Spin the object by mouse position
           
            basicView.singleRender();           
        }       
    }   
}

Are these known bugs in revision 918 maybe? I'm not sure where to look 
to find that out.

Or is it a problem in my Collada DAE file perhaps?
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/Simple.dae

Thanks,
Dan


andysk8er wrote:
    
Hi Dan,

Why don't you try to simplify things in your code first. Simply create a
simple flatshadedmaterial, add it to the materials list and do your
replaceMaterialByName. See if you can get that working. Then, go back and
add in your textures, shaders, etc...

I guess I'm not really sure why you are declaring your materials as
Classes.
Why not just create MovieAssetMaterials using the linkage name in the
library? Anyway, if you strip all of that stuff out of your code and
simply
use a flatshaded material, you can see if that works. If so, you can
begin
adding your materials back in until it breaks. 

-Andy



DanSearle wrote:
  
      
Hi list,

If I understand SVN right I'm on revision 918.

I'm using the free version of Google SketchUp (v6.4.112) to make DAE 
files (using that hack to get the DAE from the KMZ it outputs), but I 
can't get the ShadedMaterials to work with it.

Here's a demo I've made:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.html
(Mouse Up/Down to move in and out, Mouse Left/Right to move the light 
source)

The paddling pool is meant to be shaded - the cube uses the same shaded 
materials as the pool to prove that the materials themselves are ok.

Is it maybe that the DAE created in this way isn't compatible with 
ShadedMaterials? Here's a link to the DAE file:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/paddling%20pond.dae

Or in case it's a code problem, here's the relevant code, or you can 
also get the AS file here:
http://www.danwashere.com/dev/papervision/shadedtextures_and_collada_problem/DanWasHereWorld.as

(Note that I have the textures in the FLA library)

*** I've cut the code from this reply cos it wasn't useful ***

I'd love an explanation of how to do this if someone can help?

Many thanks,
Dan



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


    
        
  
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.13.2/2215 - Release Date: 07/02/09
18:06:00

  
      
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


    
  

No virus found in this incoming message. Checked by AVG - www.avg.com
Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date: 07/07/09 17:54:00

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



_______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date: 07/07/09 17:54:00

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by John Brookes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sometimes problems acn be fixed by expanding out
var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
Although I didn't try with a moviematerial I used a bitmapmaterial.

I think there's also something wrong with that dae file. Just tried another dae and that works ok.


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by DanSearle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

nope, that didn't make any difference.

I thought the DAE might be at fault, but I wouldn't know where to start looking to fix that.

I'm using Google Sketchup (free version) to produce the .dae files - are there any known issues to look out for there? I'm very new to making 3D models too, so I guess I might have made some error when building it?


John Brookes wrote:
Sometimes problems acn be fixed by expanding out
var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
Although I didn't try with a moviematerial I used a bitmapmaterial.

I think there's also something wrong with that dae file. Just tried another dae and that works ok.


_______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date: 07/07/09 17:54:00

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by John Brookes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I know nothing about ketchup if I had to use free I'd go with blender.


2009/7/8 Dan <dan_maillists@...>
nope, that didn't make any difference.

I thought the DAE might be at fault, but I wouldn't know where to start looking to fix that.

I'm using Google Sketchup (free version) to produce the .dae files - are there any known issues to look out for there? I'm very new to making 3D models too, so I guess I might have made some error when building it?


John Brookes wrote:
Sometimes problems acn be fixed by expanding out
var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
Although I didn't try with a moviematerial I used a bitmapmaterial.

I think there's also something wrong with that dae file. Just tried another dae and that works ok.


_______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date: 07/07/09 17:54:00

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by andysk8er :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ugh, I hate Blender. I hear a lot of good things about it, but it has one of the worst user interfaces I have ever seen. It's like being transported back to the 80's when your computer had a C:> prompt and you had to know what to type to get it to do anything. Maybe if I could find some good tutorials, I'd change my mind.

Dan,
Your model did look a little weird to me. Did you move individual vertices around to get that shape? Try making an object by simply combining a few primitives like a cylinder and some cubes. Add your textures. Don't move any edges or vertices and then save the KMZ. Unzip it and try to import that Collada. I have had good luck with Sketchup collada files. I can send you one that I know will import correctly if you need it.

Thanks,
Andy

John Brookes-2 wrote:
I know nothing about ketchup if I had to use free I'd go with blender.


2009/7/8 Dan <dan_maillists@danwashere.com>

>  nope, that didn't make any difference.
>
> I thought the DAE might be at fault, but I wouldn't know where to start
> looking to fix that.
>
> I'm using Google Sketchup (free version) to produce the .dae files - are
> there any known issues to look out for there? I'm very new to making 3D
> models too, so I guess I might have made some error when building it?
>
>
> John Brookes wrote:
>
> Sometimes problems acn be fixed by expanding out
> var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
> shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
> Although I didn't try with a moviematerial I used a bitmapmaterial.
>
> I think there's also something wrong with that dae file. Just tried another
> dae and that works ok.
>
> ------------------------------
>
> _______________________________________________
> Papervision3D mailing listPapervision3D@osflash.orghttp://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
> ------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date: 07/07/09 17:54:00
>
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>

_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
===============================================
Check out my blog for Flash, AS3, and web development stuff:
http://www.wastedpotential.com

Re: ShadedMaterials not working with Collada model

by Merrill, Jason-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

>> I'm using Google Sketchup (free version) to produce the .dae files –

>>are there any known issues to look out for there?

>>I'm very new to making 3D models too, so I guess I might have made some error when building it?

 

I tried some models with Google Sketchup about 18 months ago and, maybe it has changed since then, but at the time, the COLLADA file it exported had to be modified to make it compatible with Papervision – seems they used a slightly different or even wrong implementation of the COLLADA spec.  Probably fixed by now, but something to watch out for.

 

For free, besides Blender, check out Vizualpv3d:  http://www.juxtinteractive.com/work/vizualpv3d/

 

Not free, but fairly cheap, check out Swift3D  - has great PV3D support and they just released a new version (6) with enhanced modeling features.

 

Jason Merrill

Bank of  America smallLogo  Global Learning

Shared Services Solutions Development


Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community

 

 



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by Mark I. Ross :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I needed to model something real quick one time, but the only software I
could find at the time that was free was Blender.  I knew it was gonna be
ugly when it prompted me to install Python.
As a guy who has only ever really used 3DS Max, after I launched Blender I
was lost.  Couldn't do even the simplest of things.  I gave up in short
order and ended up using 3DS Max 2010 trial version.

I guess that probably says more about me, than about Blender  :-/

Cheers,
mark


>
> Ugh, I hate Blender. I hear a lot of good things about it, but it has one
> of
> the worst user interfaces I have ever seen. It's like being transported
> back
> to the 80's when your computer had a C:> prompt and you had to know what
> to
> type to get it to do anything. Maybe if I could find some good tutorials,
> I'd change my mind.
>
> Dan,
> Your model did look a little weird to me. Did you move individual vertices
> around to get that shape? Try making an object by simply combining a few
> primitives like a cylinder and some cubes. Add your textures. Don't move
> any
> edges or vertices and then save the KMZ. Unzip it and try to import that
> Collada. I have had good luck with Sketchup collada files. I can send you
> one that I know will import correctly if you need it.
>
> Thanks,
> Andy
>
>
> John Brookes-2 wrote:
>>
>> I know nothing about ketchup if I had to use free I'd go with blender.
>>
>>
>> 2009/7/8 Dan <dan_maillists@...>
>>
>>>  nope, that didn't make any difference.
>>>
>>> I thought the DAE might be at fault, but I wouldn't know where to start
>>> looking to fix that.
>>>
>>> I'm using Google Sketchup (free version) to produce the .dae files -
>>> are
>>> there any known issues to look out for there? I'm very new to making 3D
>>> models too, so I guess I might have made some error when building it?
>>>
>>>
>>> John Brookes wrote:
>>>
>>> Sometimes problems acn be fixed by expanding out
>>> var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
>>> shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
>>> Although I didn't try with a moviematerial I used a bitmapmaterial.
>>>
>>> I think there's also something wrong with that dae file. Just tried
>>> another
>>> dae and that works ok.
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Papervision3D mailing
>>> listPapervision3D@...://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>> ------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com
>>> Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
>>> 07/07/09
>>> 17:54:00
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D@...
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>
>
> -----
> ===============================================
> Check out my blog for Flash, AS3, and web development stuff:
> http://www.wastedpotential.com
> --
> View this message in context:
> http://www.nabble.com/ShadedMaterials-not-working-with-Collada-model-tp24324585p24409899.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by John Brookes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sweeet jebus where did the blender hate come from.

Sounds like a lot of, 'its too hard and I'm too lazy, me want pretty icons'

Hugs maya :p

2009/7/9 <nospam@...>

I needed to model something real quick one time, but the only software I
could find at the time that was free was Blender.  I knew it was gonna be
ugly when it prompted me to install Python.
As a guy who has only ever really used 3DS Max, after I launched Blender I
was lost.  Couldn't do even the simplest of things.  I gave up in short
order and ended up using 3DS Max 2010 trial version.

I guess that probably says more about me, than about Blender  :-/

Cheers,
mark


>
> Ugh, I hate Blender. I hear a lot of good things about it, but it has one
> of
> the worst user interfaces I have ever seen. It's like being transported
> back
> to the 80's when your computer had a C:> prompt and you had to know what
> to
> type to get it to do anything. Maybe if I could find some good tutorials,
> I'd change my mind.
>
> Dan,
> Your model did look a little weird to me. Did you move individual vertices
> around to get that shape? Try making an object by simply combining a few
> primitives like a cylinder and some cubes. Add your textures. Don't move
> any
> edges or vertices and then save the KMZ. Unzip it and try to import that
> Collada. I have had good luck with Sketchup collada files. I can send you
> one that I know will import correctly if you need it.
>
> Thanks,
> Andy
>
>
> John Brookes-2 wrote:
>>
>> I know nothing about ketchup if I had to use free I'd go with blender.
>>
>>
>> 2009/7/8 Dan <dan_maillists@...>
>>
>>>  nope, that didn't make any difference.
>>>
>>> I thought the DAE might be at fault, but I wouldn't know where to start
>>> looking to fix that.
>>>
>>> I'm using Google Sketchup (free version) to produce the .dae files -
>>> are
>>> there any known issues to look out for there? I'm very new to making 3D
>>> models too, so I guess I might have made some error when building it?
>>>
>>>
>>> John Brookes wrote:
>>>
>>> Sometimes problems acn be fixed by expanding out
>>> var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
>>> shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
>>> Although I didn't try with a moviematerial I used a bitmapmaterial.
>>>
>>> I think there's also something wrong with that dae file. Just tried
>>> another
>>> dae and that works ok.
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Papervision3D mailing
>>> listPapervision3D@...://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>> ------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com
>>> Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
>>> 07/07/09
>>> 17:54:00
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D@...
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>
>
> -----
> ===============================================
> Check out my blog for Flash, AS3, and web development stuff:
> http://www.wastedpotential.com
> --
> View this message in context:
> http://www.nabble.com/ShadedMaterials-not-working-with-Collada-model-tp24324585p24409899.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by Mark I. Ross :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


3DS has "pretty" icons???  I think we're using different software!  :D


> sweeet jebus where did the blender hate come from.
>
> Sounds like a lot of, 'its too hard and I'm too lazy, me want pretty
> icons'
>
> Hugs maya :p
>
> 2009/7/9 <nospam@...>
>
>>
>> I needed to model something real quick one time, but the only software I
>> could find at the time that was free was Blender.  I knew it was gonna
>> be
>> ugly when it prompted me to install Python.
>> As a guy who has only ever really used 3DS Max, after I launched Blender
>> I
>> was lost.  Couldn't do even the simplest of things.  I gave up in short
>> order and ended up using 3DS Max 2010 trial version.
>>
>> I guess that probably says more about me, than about Blender  :-/
>>
>> Cheers,
>> mark
>>
>>
>> >
>> > Ugh, I hate Blender. I hear a lot of good things about it, but it has
>> one
>> > of
>> > the worst user interfaces I have ever seen. It's like being
>> transported
>> > back
>> > to the 80's when your computer had a C:> prompt and you had to know
>> what
>> > to
>> > type to get it to do anything. Maybe if I could find some good
>> tutorials,
>> > I'd change my mind.
>> >
>> > Dan,
>> > Your model did look a little weird to me. Did you move individual
>> vertices
>> > around to get that shape? Try making an object by simply combining a
>> few
>> > primitives like a cylinder and some cubes. Add your textures. Don't
>> move
>> > any
>> > edges or vertices and then save the KMZ. Unzip it and try to import
>> that
>> > Collada. I have had good luck with Sketchup collada files. I can send
>> you
>> > one that I know will import correctly if you need it.
>> >
>> > Thanks,
>> > Andy
>> >
>> >
>> > John Brookes-2 wrote:
>> >>
>> >> I know nothing about ketchup if I had to use free I'd go with
>> blender.
>> >>
>> >>
>> >> 2009/7/8 Dan <dan_maillists@...>
>> >>
>> >>>  nope, that didn't make any difference.
>> >>>
>> >>> I thought the DAE might be at fault, but I wouldn't know where to
>> start
>> >>> looking to fix that.
>> >>>
>> >>> I'm using Google Sketchup (free version) to produce the .dae files -
>> >>> are
>> >>> there any known issues to look out for there? I'm very new to making
>> 3D
>> >>> models too, so I guess I might have made some error when building
>> it?
>> >>>
>> >>>
>> >>> John Brookes wrote:
>> >>>
>> >>> Sometimes problems acn be fixed by expanding out
>> >>> var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
>> >>> shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
>> >>> Although I didn't try with a moviematerial I used a bitmapmaterial.
>> >>>
>> >>> I think there's also something wrong with that dae file. Just tried
>> >>> another
>> >>> dae and that works ok.
>> >>>
>> >>> ------------------------------
>> >>>
>> >>> _______________________________________________
>> >>> Papervision3D mailing
>> >>> listPapervision3D@...://
>> osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >>>
>> >>> ------------------------------
>> >>>
>> >>>
>> >>> No virus found in this incoming message.
>> >>> Checked by AVG - www.avg.com
>> >>> Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
>> >>> 07/07/09
>> >>> 17:54:00
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> Papervision3D mailing list
>> >>> Papervision3D@...
>> >>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >>>
>> >>>
>> >>
>> >> _______________________________________________
>> >> Papervision3D mailing list
>> >> Papervision3D@...
>> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >>
>> >>
>> >
>> >
>> > -----
>> > ===============================================
>> > Check out my blog for Flash, AS3, and web development stuff:
>> > http://www.wastedpotential.com
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/ShadedMaterials-not-working-with-Collada-model-tp24324585p24409899.html
>> > Sent from the Papervision3D mailing list archive at Nabble.com.
>> >
>> >
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D@...
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >
>>
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by Merrill, Jason-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

>> sweeet jebus where did the blender hate come from.
>>Sounds like a lot of, 'its too hard and I'm too lazy, me want pretty icons'\
>>Hugs maya

 

For me it’s not laziness anyway, I came from a job where I had and used Maya 6 (loved Maya despite some UI quirks and hidden-menus) to a job where I didn’t, but tried Blender – after a lot of attempts, I couldn’t figure out how to do the simplest things in Blender either and the documentation sucked (at least at the time, haven’t looked at it in a year or so).  I gave up on it and am using Swft3D meanwhile, but would like to give Blender a second chance if I could figure out the workflow.  I would like to get good at Blender someday, if you have any good tutorial links, please post them.

 

 

Jason Merrill

Bank of  America smallLogo  Global Learning

Shared Services Solutions Development


Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community

 

 

 

 

From: papervision3d-bounces@... [mailto:papervision3d-bounces@...] On Behalf Of John Brookes
Sent: Thursday, July 09, 2009 10:53 AM
To: papervision3d@...
Subject: Re: [Papervision3D] ShadedMaterials not working with Collada model

 

sweeet jebus where did the blender hate come from.

Sounds like a lot of, 'its too hard and I'm too lazy, me want pretty icons'

Hugs maya :p

2009/7/9 <nospam@...>


I needed to model something real quick one time, but the only software I
could find at the time that was free was Blender.  I knew it was gonna be
ugly when it prompted me to install Python.
As a guy who has only ever really used 3DS Max, after I launched Blender I
was lost.  Couldn't do even the simplest of things.  I gave up in short
order and ended up using 3DS Max 2010 trial version.

I guess that probably says more about me, than about Blender  :-/

Cheers,
mark



>
> Ugh, I hate Blender. I hear a lot of good things about it, but it has one
> of
> the worst user interfaces I have ever seen. It's like being transported
> back
> to the 80's when your computer had a C:> prompt and you had to know what
> to
> type to get it to do anything. Maybe if I could find some good tutorials,
> I'd change my mind.
>
> Dan,
> Your model did look a little weird to me. Did you move individual vertices
> around to get that shape? Try making an object by simply combining a few
> primitives like a cylinder and some cubes. Add your textures. Don't move
> any
> edges or vertices and then save the KMZ. Unzip it and try to import that
> Collada. I have had good luck with Sketchup collada files. I can send you
> one that I know will import correctly if you need it.
>
> Thanks,
> Andy
>
>
> John Brookes-2 wrote:
>>
>> I know nothing about ketchup if I had to use free I'd go with blender.
>>
>>
>> 2009/7/8 Dan <dan_maillists@...>
>>
>>>  nope, that didn't make any difference.
>>>
>>> I thought the DAE might be at fault, but I wouldn't know where to start
>>> looking to fix that.
>>>
>>> I'm using Google Sketchup (free version) to produce the .dae files -
>>> are
>>> there any known issues to look out for there? I'm very new to making 3D
>>> models too, so I guess I might have made some error when building it?
>>>
>>>
>>> John Brookes wrote:
>>>
>>> Sometimes problems acn be fixed by expanding out
>>> var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
>>> shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
>>> Although I didn't try with a moviematerial I used a bitmapmaterial.
>>>
>>> I think there's also something wrong with that dae file. Just tried
>>> another
>>> dae and that works ok.
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Papervision3D mailing
>>> listPapervision3D@...://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>> ------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com
>>> Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
>>> 07/07/09
>>> 17:54:00
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D@...
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>
>
> -----
> ===============================================
> Check out my blog for Flash, AS3, and web development stuff:
> http://www.wastedpotential.com
> --
> View this message in context:
> http://www.nabble.com/ShadedMaterials-not-working-with-Collada-model-tp24324585p24409899.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by Ross Sclafani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maya has pretty icons, but also an amazing UI and internal logic.
This is why it is the greatest 3D app on the market, as was  
PowerAnimator before it.
3D design is such a complex art and science, making an editor as user  
friendly as possible is
a real acheivement, obviously the Academy agrees:
  http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=6898133&linkID=10235884
but being free is also pretty awesome. i can't figure out Blender for  
the life of me, but i'd like to.

On Jul 9, 2009, at 11:06 AM, nospam@... wrote:

>
> 3DS has "pretty" icons???  I think we're using different software!  :D
>
>
>> sweeet jebus where did the blender hate come from.
>>
>> Sounds like a lot of, 'its too hard and I'm too lazy, me want pretty
>> icons'
>>
>> Hugs maya :p
>>
>> 2009/7/9 <nospam@...>
>>
>>>
>>> I needed to model something real quick one time, but the only  
>>> software I
>>> could find at the time that was free was Blender.  I knew it was  
>>> gonna
>>> be
>>> ugly when it prompted me to install Python.
>>> As a guy who has only ever really used 3DS Max, after I launched  
>>> Blender
>>> I
>>> was lost.  Couldn't do even the simplest of things.  I gave up in  
>>> short
>>> order and ended up using 3DS Max 2010 trial version.
>>>
>>> I guess that probably says more about me, than about Blender  :-/
>>>
>>> Cheers,
>>> mark
>>>
>>>
>>>>
>>>> Ugh, I hate Blender. I hear a lot of good things about it, but it  
>>>> has
>>> one
>>>> of
>>>> the worst user interfaces I have ever seen. It's like being
>>> transported
>>>> back
>>>> to the 80's when your computer had a C:> prompt and you had to know
>>> what
>>>> to
>>>> type to get it to do anything. Maybe if I could find some good
>>> tutorials,
>>>> I'd change my mind.
>>>>
>>>> Dan,
>>>> Your model did look a little weird to me. Did you move individual
>>> vertices
>>>> around to get that shape? Try making an object by simply  
>>>> combining a
>>> few
>>>> primitives like a cylinder and some cubes. Add your textures. Don't
>>> move
>>>> any
>>>> edges or vertices and then save the KMZ. Unzip it and try to import
>>> that
>>>> Collada. I have had good luck with Sketchup collada files. I can  
>>>> send
>>> you
>>>> one that I know will import correctly if you need it.
>>>>
>>>> Thanks,
>>>> Andy
>>>>
>>>>
>>>> John Brookes-2 wrote:
>>>>>
>>>>> I know nothing about ketchup if I had to use free I'd go with
>>> blender.
>>>>>
>>>>>
>>>>> 2009/7/8 Dan <dan_maillists@...>
>>>>>
>>>>>> nope, that didn't make any difference.
>>>>>>
>>>>>> I thought the DAE might be at fault, but I wouldn't know where to
>>> start
>>>>>> looking to fix that.
>>>>>>
>>>>>> I'm using Google Sketchup (free version) to produce the .dae  
>>>>>> files -
>>>>>> are
>>>>>> there any known issues to look out for there? I'm very new to  
>>>>>> making
>>> 3D
>>>>>> models too, so I guess I might have made some error when building
>>> it?
>>>>>>
>>>>>>
>>>>>> John Brookes wrote:
>>>>>>
>>>>>> Sometimes problems acn be fixed by expanding out
>>>>>> var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
>>>>>> shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
>>>>>> Although I didn't try with a moviematerial I used a  
>>>>>> bitmapmaterial.
>>>>>>
>>>>>> I think there's also something wrong with that dae file. Just  
>>>>>> tried
>>>>>> another
>>>>>> dae and that works ok.
>>>>>>
>>>>>> ------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Papervision3D mailing
>>>>>> listPapervision3D@...://
>>> osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>>>
>>>>>> ------------------------------
>>>>>>
>>>>>>
>>>>>> No virus found in this incoming message.
>>>>>> Checked by AVG - www.avg.com
>>>>>> Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
>>>>>> 07/07/09
>>>>>> 17:54:00
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Papervision3D mailing list
>>>>>> Papervision3D@...
>>>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Papervision3D mailing list
>>>>> Papervision3D@...
>>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>>
>>>>>
>>>>
>>>>
>>>> -----
>>>> ===============================================
>>>> Check out my blog for Flash, AS3, and web development stuff:
>>>> http://www.wastedpotential.com
>>>> --
>>>> View this message in context:
>>>>
>>> http://www.nabble.com/ShadedMaterials-not-working-with-Collada-model-tp24324585p24409899.html
>>>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>>>
>>>>
>>>> _______________________________________________
>>>> Papervision3D mailing list
>>>> Papervision3D@...
>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D@...
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by Merrill, Jason-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I see there are updated tutorials on Blender, looks promising:

 

http://www.blender.org/education-help/tutorials/tutorial-folder/blender-user-interface-tutorial/

 

Quote:

If you are reading this tutorial, you are probably feeling like I did exactly one year ago. I had found this extremely interesting looking 3D application (which other users were raving about), but the user interface completely baffled me. I couldn't find the quit function (I had to kill the application instead of exiting it), I saw buttons that seemed to react differently each time I clicked on them and every time something interesting happened, I could not reproduce it...”

 

 

Jason Merrill

Bank of  America smallLogo  Global Learning

Shared Services Solutions Development


Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community

 

 

 

 

From: papervision3d-bounces@... [mailto:papervision3d-bounces@...] On Behalf Of Merrill, Jason
Sent: Thursday, July 09, 2009 11:18 AM
To: papervision3d@...
Subject: Re: [Papervision3D] ShadedMaterials not working with Collada model

 

>> sweeet jebus where did the blender hate come from.
>>Sounds like a lot of, 'its too hard and I'm too lazy, me want pretty icons'\
>>Hugs maya

 

For me it’s not laziness anyway, I came from a job where I had and used Maya 6 (loved Maya despite some UI quirks and hidden-menus) to a job where I didn’t, but tried Blender – after a lot of attempts, I couldn’t figure out how to do the simplest things in Blender either and the documentation sucked (at least at the time, haven’t looked at it in a year or so).  I gave up on it and am using Swft3D meanwhile, but would like to give Blender a second chance if I could figure out the workflow.  I would like to get good at Blender someday, if you have any good tutorial links, please post them.

 

 

Jason Merrill

Bank of  America smallLogo  Global Learning

Shared Services Solutions Development


Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community

 

 

 

 

From: papervision3d-bounces@... [mailto:papervision3d-bounces@...] On Behalf Of John Brookes
Sent: Thursday, July 09, 2009 10:53 AM
To: papervision3d@...
Subject: Re: [Papervision3D] ShadedMaterials not working with Collada model

 

sweeet jebus where did the blender hate come from.

Sounds like a lot of, 'its too hard and I'm too lazy, me want pretty icons'

Hugs maya :p

2009/7/9 <nospam@...>


I needed to model something real quick one time, but the only software I
could find at the time that was free was Blender.  I knew it was gonna be
ugly when it prompted me to install Python.
As a guy who has only ever really used 3DS Max, after I launched Blender I
was lost.  Couldn't do even the simplest of things.  I gave up in short
order and ended up using 3DS Max 2010 trial version.

I guess that probably says more about me, than about Blender  :-/

Cheers,
mark



>
> Ugh, I hate Blender. I hear a lot of good things about it, but it has one
> of
> the worst user interfaces I have ever seen. It's like being transported
> back
> to the 80's when your computer had a C:> prompt and you had to know what
> to
> type to get it to do anything. Maybe if I could find some good tutorials,
> I'd change my mind.
>
> Dan,
> Your model did look a little weird to me. Did you move individual vertices
> around to get that shape? Try making an object by simply combining a few
> primitives like a cylinder and some cubes. Add your textures. Don't move
> any
> edges or vertices and then save the KMZ. Unzip it and try to import that
> Collada. I have had good luck with Sketchup collada files. I can send you
> one that I know will import correctly if you need it.
>
> Thanks,
> Andy
>
>
> John Brookes-2 wrote:
>>
>> I know nothing about ketchup if I had to use free I'd go with blender.
>>
>>
>> 2009/7/8 Dan <dan_maillists@...>
>>
>>>  nope, that didn't make any difference.
>>>
>>> I thought the DAE might be at fault, but I wouldn't know where to start
>>> looking to fix that.
>>>
>>> I'm using Google Sketchup (free version) to produce the .dae files -
>>> are
>>> there any known issues to look out for there? I'm very new to making 3D
>>> models too, so I guess I might have made some error when building it?
>>>
>>>
>>> John Brookes wrote:
>>>
>>> Sometimes problems acn be fixed by expanding out
>>> var fsm: FlatShader = new FlatShader(light, 0xFFFFFF, 0x555555)
>>> shadedMaterial = new ShadedMaterial(movieMaterial, fsm);
>>> Although I didn't try with a moviematerial I used a bitmapmaterial.
>>>
>>> I think there's also something wrong with that dae file. Just tried
>>> another
>>> dae and that works ok.
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Papervision3D mailing
>>> listPapervision3D@...://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>> ------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com
>>> Version: 8.5.375 / Virus Database: 270.13.8/2223 - Release Date:
>>> 07/07/09
>>> 17:54:00
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D@...
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>
>
> -----
> ===============================================
> Check out my blog for Flash, AS3, and web development stuff:
> http://www.wastedpotential.com
> --
> View this message in context:
> http://www.nabble.com/ShadedMaterials-not-working-with-Collada-model-tp24324585p24409899.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: ShadedMaterials not working with Collada model

by andysk8er :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cool, thanks for the tutorial tip.

I also tried to get into Blender about a year ago and found the learning curve to be too steep. I am familiar with modeling in 3DS Max, Sketchup and Swift3D, but Blender totally baffled me. Couldn't find any good tutorials... couldn't make even a simple textured object. I spent hours fooling around with it and got nowhere. Plus it took a while to get Python installed just to get it working at all. Anyway, I hear that Blender has an awesome workflow, but my big problem with it is that it is not friendly to newbies. I think that Blender is going to need an interface overhaul before it represents a viable threat to any other 3D program. A program like Blender needs a good user base to help create the tutorials and answer questions, but Blender's interface is so daunting, that it's user base is still very small.

I really wanted to like Blender, but I just didn't. I've never used Maya, but I think Max has pretty good workflow.

I know that a Blender BOOK recently came out, but I haven't looked at it to see if it's any good.



I see there are updated tutorials on Blender, looks promising:

 

http://www.blender.org/education-help/tutorials/tutorial-folder/blender-user-interface-tutorial/

 
===============================================
Check out my blog for Flash, AS3, and web development stuff:
http://www.wastedpotential.com

Re: ShadedMaterials not working with Collada model

by John Brookes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just on the 'free'
Blender is like linux, there's a huge hill to climb before you see its power.
If you spend the 'time' doing the tutorials on blender.org and still can't work it out... well you know ;)

Blender does stiil use the older collada spec (1.4), but new stuff is comming
http://www.blender.org/development/current-projects/changes-since-249/ yay full collada support :)

ketchup is great if thats all you want, but sometimes ms paint isn't enough.

still hugging Maya

2009/7/9 andysk8er <elbarto37@...>

Cool, thanks for the tutorial tip.

I also tried to get into Blender about a year ago and found the learning
curve to be too steep. I am familiar with modeling in 3DS Max, Sketchup and
Swift3D, but Blender totally baffled me. Couldn't find any good tutorials...
couldn't make even a simple textured object. I spent hours fooling around
with it and got nowhere. Plus it took a while to get Python installed just
to get it working at all. Anyway, I hear that Blender has an awesome
workflow, but my big problem with it is that it is not friendly to newbies.
I think that Blender is going to need an interface overhaul before it
represents a viable threat to any other 3D program. A program like Blender
needs a good user base to help create the tutorials and answer questions,
but Blender's interface is so daunting, that it's user base is still very
small.

I really wanted to like Blender, but I just didn't. I've never used Maya,
but I think Max has pretty good workflow.

I know that a Blender BOOK recently came out, but I haven't looked at it to
see if it's any good.



I see there are updated tutorials on Blender, looks promising:



http://www.blender.org/education-help/tutorials/tutorial-folder/blender-user-interface-tutorial/



-----
===============================================
Check out my blog for Flash, AS3, and web development stuff:
http://www.wastedpotential.com
--
View this message in context: http://www.nabble.com/ShadedMaterials-not-working-with-Collada-model-tp24324585p24414008.html
Sent from the Papervision3D mailing list archive at Nabble.com.


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
< Prev | 1 - 2 | Next >