Can't see my objects?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't see my objects?

MrSteve
Hi Guys, I just starting out with papervision and after following  many not very helpful tutorials, I finally got a swf to pop up without any errors,

This is the code I am using:
package
{
        import flash.display.Sprite;
        import org.papervision3d.cameras.Camera3D;
        import org.papervision3d.scenes.Scene3D;
        import org.papervision3d.view.Viewport3D;
        import org.papervision3d.render.BasicRenderEngine;
        import org.papervision3d.objects.primitives.Sphere;

        public class exampleClass extends Sprite
        {
                public var cam:Camera3D = new Camera3D();
                public var obj:Sphere = new Sphere();
                public var rend:BasicRenderEngine = new BasicRenderEngine();
                public var scene:Scene3D = new Scene3D();
                public var view:Viewport3D = new Viewport3D();
                public function pv3d()
                {
                        addChild(view);
                        scene.addChild(obj);
                        rend.renderScene(scene, cam, view);
                }
        }
}

Very simple, but I get no compiler errors or warnings, just says somethign about Great White, but my SWF is completely empty, no sphere or anything,

Does anyone have any ideas?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Can't see my objects?

Ross Sclafani
you might want to name your constructor the same as your class name.

On Jul 29, 2011, at 6:04 AM, MrSteve wrote:

public class exampleClass extends Sprite
{
public var cam:Camera3D = new Camera3D();
public var obj:Sphere = new Sphere();
public var rend:BasicRenderEngine = new BasicRenderEngine();
public var scene:Scene3D = new Scene3D();
public var view:Viewport3D = new Viewport3D();
public function pv3d()
{
addChild(view);
scene.addChild(obj);
rend.renderScene(scene, cam, view);
}


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Reply | Threaded
Open this post in threaded view
|

Re: Can't see my objects?

MrSteve
Thank you so much, it worked straight away!
Reply | Threaded
Open this post in threaded view
|

Re: Can't see my objects?

Ross Sclafani
thats basic OOP, man.

 make sure you know your as3 before trying to delve too deep into papervision.

good luck

cheers.

On Jul 29, 2011, at 6:15 AM, MrSteve wrote:

> Thank you so much, it worked straight away!
>
> --
> View this message in context: http://papervision3d.758870.n4.nabble.com/Can-t-see-my-objects-tp3703583p3703611.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Reply | Threaded
Open this post in threaded view
|

Re: Can't see my objects?

Merrill, Jason
>> thats basic OOP, man. make sure you know your as3 before trying to delve too deep into papervision.

Rude!  It was a simple mistake, leave the man alone.  

Just ignore him MrSteve. ;)

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning





_______________________

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Ross Sclafani
Sent: Friday, July 29, 2011 6:19 AM
To: [hidden email]
Subject: Re: [Papervision3D] Can't see my objects?

thats basic OOP, man.

 make sure you know your as3 before trying to delve too deep into papervision.

good luck

cheers.

On Jul 29, 2011, at 6:15 AM, MrSteve wrote:

> Thank you so much, it worked straight away!
>
> --
> View this message in context:
> http://papervision3d.758870.n4.nabble.com/Can-t-see-my-objects-tp37035
> 83p3703611.html Sent from the Papervision3D mailing list archive at
> Nabble.com.
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

----------------------------------------------------------------------
This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Reply | Threaded
Open this post in threaded view
|

Re: Can't see my objects?

Ross Sclafani
not rude.

its sound advice. pv3d is a pretty sophisticated package and i just happen to think he'll do better if he goes into it with his shoes tied.

i am the guy that fixed his code by the way, so yeah maybe he can ignore the only person that responded to his mail (within minutes mind you)



On Jul 29, 2011, at 11:08 AM, Merrill, Jason wrote:

>>> thats basic OOP, man. make sure you know your as3 before trying to delve too deep into papervision.
>
> Rude!  It was a simple mistake, leave the man alone.  
>
> Just ignore him MrSteve. ;)
>
> Jason Merrill
> Instructional Technology Architect
> Bank of America  Global Learning
>
>
>
>
>
> _______________________
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Ross Sclafani
> Sent: Friday, July 29, 2011 6:19 AM
> To: [hidden email]
> Subject: Re: [Papervision3D] Can't see my objects?
>
> thats basic OOP, man.
>
> make sure you know your as3 before trying to delve too deep into papervision.
>
> good luck
>
> cheers.
>
> On Jul 29, 2011, at 6:15 AM, MrSteve wrote:
>
>> Thank you so much, it worked straight away!
>>
>> --
>> View this message in context:
>> http://papervision3d.758870.n4.nabble.com/Can-t-see-my-objects-tp37035
>> 83p3703611.html Sent from the Papervision3D mailing list archive at
>> Nabble.com.
>>
>> _______________________________________________
>> Papervision3D mailing list
>> [hidden email]
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
> ----------------------------------------------------------------------
> This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
> Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
> The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.
>
> References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Reply | Threaded
Open this post in threaded view
|

Re: Can't see my objects?

Merrill, Jason
WOW.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning


_______________________

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Ross Sclafani
Sent: Friday, July 29, 2011 2:18 PM
To: [hidden email]
Subject: Re: [Papervision3D] Can't see my objects?

not rude.

its sound advice. pv3d is a pretty sophisticated package and i just happen to think he'll do better if he goes into it with his shoes tied.

i am the guy that fixed his code by the way, so yeah maybe he can ignore the only person that responded to his mail (within minutes mind you)



On Jul 29, 2011, at 11:08 AM, Merrill, Jason wrote:

>>> thats basic OOP, man. make sure you know your as3 before trying to delve too deep into papervision.
>
> Rude!  It was a simple mistake, leave the man alone.  
>
> Just ignore him MrSteve. ;)
>
> Jason Merrill
> Instructional Technology Architect
> Bank of America  Global Learning
>
>
>
>
>
> _______________________
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Ross Sclafani
> Sent: Friday, July 29, 2011 6:19 AM
> To: [hidden email]
> Subject: Re: [Papervision3D] Can't see my objects?
>
> thats basic OOP, man.
>
> make sure you know your as3 before trying to delve too deep into papervision.
>
> good luck
>
> cheers.
>
> On Jul 29, 2011, at 6:15 AM, MrSteve wrote:
>
>> Thank you so much, it worked straight away!
>>
>> --
>> View this message in context:
>> http://papervision3d.758870.n4.nabble.com/Can-t-see-my-objects-tp3703
>> 5 83p3703611.html Sent from the Papervision3D mailing list archive at
>> Nabble.com.
>>
>> _______________________________________________
>> Papervision3D mailing list
>> [hidden email]
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
> ----------------------------------------------------------------------
> This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
> Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
> The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.
>
> References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

----------------------------------------------------------------------
This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Reply | Threaded
Open this post in threaded view
|

Re: Can't see my objects?

Ross Sclafani
don't worry, he already thanked me enthusiastically.

no need for you to praise me in all caps.


On Jul 29, 2011, at 2:42 PM, Merrill, Jason wrote:

> WOW.
>
> Jason Merrill
> Instructional Technology Architect
> Bank of America  Global Learning
>
>
> _______________________
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Ross Sclafani
> Sent: Friday, July 29, 2011 2:18 PM
> To: [hidden email]
> Subject: Re: [Papervision3D] Can't see my objects?
>
> not rude.
>
> its sound advice. pv3d is a pretty sophisticated package and i just happen to think he'll do better if he goes into it with his shoes tied.
>
> i am the guy that fixed his code by the way, so yeah maybe he can ignore the only person that responded to his mail (within minutes mind you)
>
>
>
> On Jul 29, 2011, at 11:08 AM, Merrill, Jason wrote:
>
>>>> thats basic OOP, man. make sure you know your as3 before trying to delve too deep into papervision.
>>
>> Rude!  It was a simple mistake, leave the man alone.  
>>
>> Just ignore him MrSteve. ;)
>>
>> Jason Merrill
>> Instructional Technology Architect
>> Bank of America  Global Learning
>>
>>
>>
>>
>>
>> _______________________
>>
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]] On Behalf Of Ross Sclafani
>> Sent: Friday, July 29, 2011 6:19 AM
>> To: [hidden email]
>> Subject: Re: [Papervision3D] Can't see my objects?
>>
>> thats basic OOP, man.
>>
>> make sure you know your as3 before trying to delve too deep into papervision.
>>
>> good luck
>>
>> cheers.
>>
>> On Jul 29, 2011, at 6:15 AM, MrSteve wrote:
>>
>>> Thank you so much, it worked straight away!
>>>
>>> --
>>> View this message in context:
>>> http://papervision3d.758870.n4.nabble.com/Can-t-see-my-objects-tp3703
>>> 5 83p3703611.html Sent from the Papervision3D mailing list archive at
>>> Nabble.com.
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> [hidden email]
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> [hidden email]
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>> ----------------------------------------------------------------------
>> This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
>> Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
>> The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.
>>
>> References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
>> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.
>>
>> _______________________________________________
>> Papervision3D mailing list
>> [hidden email]
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
> ----------------------------------------------------------------------
> This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
> Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
> The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.
>
> References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org