Code covered by the BSD License
-
add_light(lights, light_type,...
function LIGHTS = ADD_LIGHT(LIGHTS, LIGHT_TYPE, TAG, POSITION_FCN, ORIENTATION_FCN, SIZE_FCN, COLOR_FCN)
-
add_material(materials, mater...
function MATERIALS = ADD_MATERIAL(MATERIALS, MATERIAL_TYPE, TAG, MAPPING_STYLE, TEXTURE)
-
add_object(objects, obj_type,...
function OBJECTS = ADD_OBJECT(OBJECTS, OBJ_TYPE, TAG, POSITION_FCN, ORIENTATION_FCN, SIZE_FCN, MATERIAL_ID, COLOR)
-
add_object_faces(faces, obj, ...
-
init_camera(tag, pos, res, f,...
-
map_materials(materials, obje...
function OBJECTS = MAP_MATERIALS(MATERIALS, OBJECTS)
-
rotation_matrix_3d(a)
function R = ROTATION_MATRIX_3D(A)
-
select_visible_faces(faces, c...
-
trace_rays(scene, camera_ID, ...
function VARARGOUT = TRACE_RAYS(SCENE, CAMERA_ID, MODE, ANTIALIASING, BLEND)
-
update_camera(cam, dont_move)
cam = update_camera(cam)
-
update_cameras(obj, cameras_l...
-
update_light(light, time)
function LIGHT = UPDATE_LIGHT(LIGHT, TIME)
-
update_lights(scene, time)
function SCENE = UPDATE_LIGHTS(SCENE, TIME)
-
update_object(obj, time, mode...
function OBJ = UPDATE_OBJECT(OBJ, MODE)
-
update_objects(scene, mode)
function SCENE = UPDATE_OBJECTS(SCENE, MODE)
-
update_scene_to_next_frame(sc...
function SCENE = UPDATE_SCENE_TO_NEXT_FRAME(SCENE)
-
demo1.m
-
demo2.m
-
View all files
|
|
| File Information |
| Description |
The proposed raytracer allows to create simple synthetic scenes and render them from different camera positions. Some properties of the objects (position, orientation, size) can be defined as constants or as functions of time. The actual engine supports texture mapping and antialiasing (shadows, reflections and refractions are not supported yet).
The raytracer might be useful for researchers working in the computer vision domain, because it not only renders images but also can compute ray hit point's absolute and relative (wrt objects) positions and indices (which face of which object has been hit). This feature allows estimation of disparity (horizontal and vertical) map and motion field.
Few videos, demonstrating some properties of the raytracer can be found on my web-site: http://sites.google.com/site/chumerin/projects/myraytracer |
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 30 Nov 2009 |
Added a link to demo videos. |
| 30 Nov 2009 |
Updated tags. |
| 03 Dec 2009 |
added missed m-file rotation_matrix_3d.m (thanks to Christian Bouville) |
| 03 Dec 2009 |
Added function showimage.m which shows an image even if the Image Processing Toolbox is not available (thanks to Chuck Rino). |
| 04 Dec 2009 |
description updated (added link to demo videos). |
|
Contact us