Acces to light related parameters

Requests or suggestions for new features
Post Reply
Boris
Posts: 34
Joined: 14 Jun 2017, 12:40

Acces to light related parameters

Post by Boris » 22 May 2019, 08:49

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

Boris
Posts: 34
Joined: 14 Jun 2017, 12:40

Re: Acces to light related parameters

Post by Boris » 24 May 2019, 08:05

Hi copelia,

Thanks

Kind regards,
Boris

coppelia
Site Admin
Posts: 7150
Joined: 14 Dec 2012, 00:25

Re: Acces to light related parameters

Post by coppelia » 24 May 2019, 15:21

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

Boris
Posts: 34
Joined: 14 Jun 2017, 12:40

Re: Acces to light related parameters

Post by Boris » 04 Jun 2019, 12:15

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

Post Reply