API Functions

 

 


   This API was replaced by the STATE_light2_ API 
   This API can still be used for non dynamic light (light that is constant and not changing)
   In short: if you are now just starting adding light. Ignore this API and go straight to the light2 API
   If you have some code written using this API you can leave it but we suggest that you try the light2 which is much better.

  This API is using software light calcualtions while the light2 is using the 3D card hardware which is many times faster
  This is why the light API is good for one time light calculations but when it comes
  to updating the light every render we need to use the light2 API (hardware light rendering)


  This API deals with making light. It supports dynamic colored Gouraud shading light !
   while the light API is using Gouraud shading technique. Both methods
   could be mixed together to create great effects.
   Please also note that Gouraud shading is using vertex lighting.
   This means that the effects will be much better if there are more vertexes (this means more polygons)
   Note that in order to improve the graphic quality dramatically one need to create lightmaps
   (after defining the light sources) for more details please see STATE_polygon_create_lightmap()
   see also STATE_engine_create_shadow() which uses projection method techniques for creating light

   

1. STATE_light_create

2. STATE_light_activate

3. STATE_light_get_using_name

4. STATE_light_get_first_light

5. STATE_light_get_next_light

6. STATE_light_set_location

7. STATE_light_get_location

8. STATE_light_point_at

9. STATE_light_set_direction

10. STATE_light_get_direction

11. STATE_light_set_color

12. STATE_light_get_color

13. STATE_light_remove_light

14. STATE_light_set_type_of_light

15. STATE_light_get_type_of_light

16. STATE_light_set_ray_tracing

17. STATE_light_is_ray_tracing

18. STATE_light_set_distance_reach

19. STATE_light_get_distance_reach

20. STATE_light_set_entity_to_light

21. STATE_light_get_entity_to_light

22. STATE_light_activate_before_each_render

23. STATE_light_is_activated_before_render

24. STATE_light_set_ambient

25. STATE_light_set_diffuse

26. STATE_light_set_specular

27. STATE_light_get_ambient

28. STATE_light_get_diffuse

29. STATE_light_get_specular

30. STATE_light_set_specular_shining

31. STATE_light_get_specular_shining

32. STATE_light_is_light

33. STATE_light_delete_all

34. STATE_light_delete

35. STATE_light_get_name

36. STATE_light_set_name

37. STATE_light_disable

38. STATE_light_is_disabled

39. STATE_light_set_save_flag

40. STATE_light_get_save_flag

41. STATE_light_calcualte_vertices_normals_automatically

 

 

Go to page 1     Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com