www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: dear_stephen on May 23, 2007, 12:36:46 pm

Title: Shinnyness
Post by: dear_stephen on May 23, 2007, 12:36:46 pm
Is it possible to set how shiny an object is?

cheers,
Stephen
Title: Re: Shinnyness
Post by: Mr.Marbles on May 23, 2007, 03:09:32 pm
You can try this:
Code: [Select]
myObject3D.setSpecularLighting(true);
If this doesn't work you may need to apply a material with specular lighting to your 3D model via a modeling program (e.g. 3D Max, blender, etc.). Unfortunately, I don't believe jPCT supports the creation of material objects that can be applied to your object through the code.
Title: Re: Shinnyness
Post by: dear_stephen on May 23, 2007, 04:52:40 pm
Hi

Thanks for the responce. I tried it out and did see a difference.

Unfortunatly it is not quite what I am after. I am trying to create a wood material and would like to reduce the shinyness so that the object appears more mat. i.e. unpollished wood


Stephen
Title: Re: Shinnyness
Post by: dear_stephen on May 23, 2007, 05:03:45 pm
I got what I was after by moving the light further away and lightening its color.

cheers!
Title: Re: Shinnyness
Post by: Mr.Marbles on May 23, 2007, 05:34:46 pm
You can also turn lighting off and use textures instead.
Title: Re: Shinnyness
Post by: Melssj5 on May 24, 2007, 04:31:53 am
I guess that if you see your objects too shinny (nothing real) if for a shinny ambient light, try reducing it and using some lights to get the correct effect of ilumination and shinnyness.

Can you post a pic of the actual render and a render of what are you expecting.
Title: Re: Shinnyness
Post by: dear_stephen on June 01, 2007, 06:14:44 pm
Hi

In the mean time I've got more or less what I was after, by lowering the light and rasing the ambient light.

Have a look at: http://www.fluidforms.at/shop/catalog/product_info-products_id-77.html (http://www.fluidforms.at/shop/catalog/product_info-products_id-77.html)
Title: Re: Shinnyness
Post by: EgonOlsen on June 01, 2007, 06:45:58 pm
I would like to add this to the projects page if you don't mind!?
Title: Re: Shinnyness
Post by: dear_stephen on June 01, 2007, 08:27:14 pm
I don't mind at all, quite the opposite :-)
Title: Re: Shinnyness
Post by: EgonOlsen on June 01, 2007, 10:48:05 pm
I don't mind at all, quite the opposite :-)
Added!