Acces to light related parameters

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

Acces to light related parameters

Post 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

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

Re: Acces to light related parameters

Post by Boris »

Hi copelia,

Thanks

Kind regards,
Boris

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

Re: Acces to light related parameters

Post 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

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

Re: Acces to light related parameters

Post 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

Post Reply