[Papervision3D] 3dsmax model rendered through papervision3d (and AS3 Geom Class Exporter)
jerome birembaut
jerome.birembaut at gmail.com
Wed Aug 29 07:15:19 PDT 2007
select your model in 3ds max and press the export button :)
sorry i forgot to add and alert for this
2007/8/29, DragonOptical <mehdi.rana at pandora.be>:
>
>
> Hi,
>
> Hi, the model I am using at the moment is a free model I downloaded from a
> site (I attached it with the reply), but I have the same problem with any
> model I try to export...
> Here's the code I'm getting from 3dsmax after using the AS3 Geom Class
> Exporter (in other words, the code from the MyObject.as I generated):
>
> package
> {
> import org.papervision3d.core.*;
> import org.papervision3d.core.proto.*;
> import org.papervision3d.core.geom.*;
>
> import flash.display.BitmapData;
> public class MyObject extends Mesh3D
> {
> public var verts :Array;
> public var faceAr:Array;
> public var uvs :Array;
> private function v(x:Number,y:Number,z:Number):void
> {
> verts.push(new Vertex3D(x,y,z));
> }
> private function uv(u:Number,v:Number):void
> {
> uvs.push(new NumberUV(u,v));
> }
> private function f(vn0:int, vn1:int, vn2:int, uvn0:int,
> uvn1:int,uvn2:int):void
> {
> faceAr.push( new Face3D( [verts[vn0],verts[vn1],verts[vn2] ], null,
> [uvs[uvn0],uvs[uvn1],uvs[uvn2]] ) );
> }
> public function MyObject( material:MaterialObject3D=null,
> initObject:Object=null )
> {
> super( material, new Array(), new Array(), null, initObject );
> verts = this.geometry.vertices;
> faceAr= this.geometry.faces;
> uvs =new Array();
> this.geometry.ready = true;
> }
>
> }
> }
>
> So I guess something wrong's happening when I try to export, since there
> are
> no "verts.push(new Vertex3D(-284.589, 117.786, -6.25055));" lines in my
> code
> :/
>
> Any help is appreciated! http://www.nabble.com/file/p12387826/faceTS.max
> faceTS.max
>
>
> jerome birembaut wrote:
> >
> > HI
> > this is the kitty demo's files
> > can you post your model as files?
> >
> >
> > 2007/8/29, DragonOptical <mehdi.rana at pandora.be>:
> >>
> >>
> >> Hi,
> >>
> >> I'm trying to render one of my 3dsmax models with papervision3d,
> without
> >> any
> >> succes untill now :/
> >>
> >> For now I tried AS3 Geom Class Exporter, but when I export a class
> >> (MyObject.as) with it it seems that my class is missing the folowing
> >> lines
> >> (that are present in the MyObject.as that was in the papervision3d_demo
> >> directory of AS3GeomExporter, when I compile the given MyObject.as it
> >> works
> >> and the cat is rendered):
> >>
> >> verts.push(new Vertex3D(-284.589, 117.786, -6.25055));
> >> ...
> >>
> >> Is it because the option 'Export Vertex Normal' isn't checked? Because
> I
> >> can't check that option with the models I'm using...
> >>
> >> Is there any king of tutorial for the AS3 Geom Class Exporter?
> >>
> >> One last thing: if any of you could send me his MyObject.as (and
> texture)
> >> that would really help me out!
> >>
> >>
> >> Thx in advance!
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/3dsmax-model-rendered-through-papervision3d-%28and-AS3-Geom-Class-Exporter%29-tf4338700.html#a12358844
> >> Sent from the Papervision3D mailing list archive at Nabble.com.
> >>
> >>
> >> _______________________________________________
> >> Papervision3D mailing list
> >> Papervision3D at osflash.org
> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >>
> >
> >
> >
> > --
> > -------------------------------------------------------
> > http://www.shirotokoro.com
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/3dsmax-model-rendered-through-papervision3d-%28and-AS3-Geom-Class-Exporter%29-tf4338700.html#a12387826
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
--
-------------------------------------------------------
http://www.shirotokoro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070829/cd8cf690/attachment-0001.html
More information about the Papervision3D
mailing list