Lighting...

Nov 26, 2008 at 10:40 AM
Is the lighting in Kit3d "assumed" or is there a way for us to setup our own light source? I did a search through the object browser and didn't see any obvious objects that might represent light. If it is assumed, what type of light is being used? Ambient?
Nov 26, 2008 at 4:57 PM
AFAIK there is no lighting in Kit3D as yet.  The lighting effects in SilDev 3D Heads examples were added to Kit3D by their author.  Mark Dawson mentioned adding them himself, but apparently has not as yet.
Dec 24, 2008 at 10:49 AM
I added directional light to the sources. Visit my site at http://www.galawareconsulting.com and view the Silverlight samples. If you are interested, I'll be happy to share them with you.
Jan 6, 2009 at 3:37 PM
Can you post the your sample application it will help us.
Jan 6, 2009 at 6:46 PM
Please send an email that I can reply to, and I'll send you the sources and an example. My email address is rmgalante@galaware.com.
Feb 24, 2009 at 10:03 AM
If any body know how to create directional light using Kit3D application
May 28, 2009 at 2:24 AM

Hi Robert,

My name is Kyle and I am currently doing my master degree. 

I am very interested in your work and wondering can you please kindly send the modified Kit3D source (with directional light) to me. 

My email is yhua045@gmail.com and your help is so much appreciated.

 

Thank you so much

Kyle

May 28, 2009 at 10:36 AM
Hello,

Thanks for contacting me. Before you attempt to use the files that I've attached, let me describe in more detail what I've done.

I've added directional light, but it's effective only in the case where you are using solid colors in your meshes. If you are using textured maps, I don't have a solution for you. My simple solution only adjusts the solid color on the triangles of a mesh. It doesn't have the ability, and neither does Silverlight have the computational power, to calculate directional light shading of textured maps.

So if you are using textures to achieve an effect, my changes won't help you. But if you are using multiple meshes and solid colors, then it might help you.

I've attached a zip file to this email for your benefit. Install these files in the following Kit3d directory.

\Kit3D\Kit3D\Windows\Media\Media3D

Also, I've attached some helpful samples that you can plug into your test site. You'll find these in the second zip file attached to this email. They aren't pretty, but they illustrate how to integrate my changes to the Kit3D Media3D library.

Remember, I don't support texture coordinates. You need to add a collection of normal vectors to the mesh; it's a new collection that I added called Normals. Put these normal vectors in a Vector3DCollection, and add the collection to the mesh (mesh.Normals = yourNormalsCollection).

Think about each normal vector. The normal vector is perpendicular to the triangle. The directional light vector will intersect the normal vector and form an angle. So you have to be careful about the direction of the normal vectors.

Use a 3D program like Blender to create a simple 3D mesh and export it to XAML with one of the free XAML plugins that are available with Blender. Then look at the XAML results. You will see all the collections of points, triangles and normals. You need to feed these into the Point3DCollections and Vector3DCollections.

That should get you going.

I understand that Silverlight 3 will support a 3D library. Maybe that version will have a better solution.

Regards,

Rob Galante
Galaware Consulting LLC


--- On Wed, 5/27/09, yhua045 <notifications@codeplex.com> wrote:

> From: yhua045 <[email removed]>
> Subject: Re: Lighting... [Kit3D:40854]
> To: [email removed]
> Date: Wednesday, May 27, 2009, 10:24 PM
> #yiv548765244
> {font-family:Verdana;font-size:0.75em;}#yiv548765244
> #ThreadNotificationFooter{border-top:1px solid
> #ccc;color:gray;}#yiv548765244
> #ThreadNotificationPostBody{Margin-Bottom:2em;}
> #yiv548765244
> {font-family:Verdana;font-size:0.75em;}#yiv548765244
> #ThreadNotificationFooter{color:gray;border-top:1px solid
> #ccc;}#yiv548765244
> #ThreadNotificationPostBody{Margin-Bottom:2em;}From:
> yhua045 Hi
> Robert,
> My name is Kyle and I am currently doing my master
> degree. 
> I am very interested in your work and wondering can you
> please kindly send the modified Kit3D source (with
> directional light) to me. 
> My email is [email removed] and your help is so much
> appreciated.
>  
> Thank you so much
> Kyle
> Read the full
> discussion online. To add a post to this
> discussion, reply to this email ([email removed])
> To start a new discussion for this project, email [email removed]
> You are receiving this email because you subscribed to
> this discussion on CodePlex. You can unsubscribe
> on codePlex.com. Please note: Images and attachments
> will be removed from emails. Any posts to this discussion
> will also be available online at codeplex.com
>
Jun 2, 2009 at 3:17 AM

Thanks Rob,

The explanation is really helpful. Thanks so much for your time.

 

Kyle

Oct 30, 2009 at 2:58 PM

Hello,

I am using silverlight3+kit3d. I used blender to create an object. Then i've exported to XAML. How can I feed this data (positions, etc) to a PointCollection, Vector3DCollection, etc. ??

Since Kit3d doesn't have some of the WPF3d markup I find this difficult.

Please, Help!!

Thanks,

 

Regards, Jose

Oct 30, 2009 at 4:31 PM
Hello,

I'm busy at work at the moment. I will try to help you tomorrow morning via email. I'll send something to you around 5:30am EST US.

Regards,

Rob Galante

--- On Fri, 10/30/09, javpnunes <notifications@codeplex.com> wrote:

> From: javpnunes <[email removed]>
> Subject: Re: Lighting... [Kit3D:40854]
> To: [email removed]
> Date: Friday, October 30, 2009, 10:58 AM
> #yiv1191307616
> {font-family:Verdana;font-size:0.75em;}#yiv1191307616
> #ThreadNotificationFooter{border-top:1px solid
> #ccc;color:gray;}#yiv1191307616
> #ThreadNotificationPostBody{Margin-Bottom:2em;}#yiv1191307616
> pre {font-size:1.25em;}
> #yiv1191307616
> {font-family:Verdana;font-size:0.75em;}#yiv1191307616
> #ThreadNotificationFooter{color:gray;border-top:1px solid
> #ccc;}#yiv1191307616
> #ThreadNotificationPostBody{Margin-Bottom:2em;}From:
> javpnunes Hello,
> I am using silverlight3+kit3d. I used blender to create
> an object. Then i've exported to XAML. How can I feed
> this data (positions, etc) to a PointCollection,
> Vector3DCollection, etc. ??
> Since Kit3d doesn't have some of the WPF3d markup I
> find this difficult.
> Please, Help!!
> Thanks,
>  
> Regards, Jose Read the full
> discussion online. To add a post to this
> discussion, reply to this email ([email removed])
> To start a new discussion for this project, email [email removed]
> You are receiving this email because you subscribed to
> this discussion on CodePlex. You can unsubscribe
> on codePlex.com. Please note: Images and attachments
> will be removed from emails. Any posts to this discussion
> will also be available online at codeplex.com
>
Oct 30, 2009 at 4:34 PM

Thank you very much, for your time.

Good luck with your work.

 

Best regards, Jose

 

Oct 31, 2009 at 9:05 AM

Hey javpnunes,

You need to send me your email address.

Rob

Nov 1, 2009 at 4:58 PM

Hello,

 

please contact me to javpnunes at gmail dot com (javpnunes@gmail.com).

Thank you very much,

Best regards, Jose

Apr 20, 2010 at 10:01 PM
Edited Apr 28, 2010 at 6:38 PM

The version posted with 3D Monkey on SilverLight.net has the lighting modules in it. You can download it here: http://sildev.net/pub/3DMonkey.zip

Dec 13, 2010 at 12:59 AM

why dont you just upload the source to the patches section?