Page 1 of 1

Acces to light related parameters

Posted: 22 May 2019, 08:49
by Boris
Hi,

To more faithfully recreate the V-REP scene in the VR Interface I also read the lights from V-REP. To that end, it would be useful if I can access more parameters.

- Spot cutoff (vtk method)
- Spot exponent (vtk method)
- Attenuation factors (vtk method)

A related question. In VTK I have to set the Ambient/Diffuse/Specular coƫfficients. Does anybody have suggestions as to what these values might be in V-REP? I don't seem to find the correct parameters (this is also related to lighting which can be off).

Kind regards,
Boris Bogaerts

Re: Acces to light related parameters

Posted: 24 May 2019, 08:05
by Boris
Hi copelia,

Thanks

Kind regards,
Boris

Re: Acces to light related parameters

Posted: 24 May 2019, 15:21
by coppelia
Hi Boris,

rev.4 was uploaded. There you can use:
  • sim_lightfloatparam_spot_exponent
    sim_lightfloatparam_spot_cutoff
    sim_lightfloatparam_const_attenuation
    sim_lightfloatparam_lin_attenuation
    sim_lightfloatparam_quad_attenuation
with simGetObjectFloatParameter for instance.

As to the ambient, diffuse, specular values: you can get/set them with
  • sim_colorcomponent_ambient
    sim_colorcomponent_diffuse
    sim_colorcomponent_specular
Cheers

Re: Acces to light related parameters

Posted: 04 Jun 2019, 12:15
by Boris
Hi,

Thanks again for making these parameters available so quickly.

Dynamic lights are now available in the V-REP VR Interface. A video demonstrating this is available here. The interface itself can be downloaded here.

Kind regards,
Boris