gh_object LibraryDescriptiongh_object is the module that manages all renderable nodes, in other terms the objects. A mesh or a camera is an object while a texture is not an object (it's a resource). Number of functions: 42
gh_object.createDescriptionCreate a minimal object that can be rendered with a tripod (its local space). LanguagesLua - Python ParametersThis function has no input parameter(s). Return ValuesCode sample
gh_object.set_positionDescriptionSets the relative position of an object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.get_positionDescriptionGets the relative position of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_absolute_positionDescriptionGets the absolute position of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.set_euler_anglesDescriptionSets the relative orientation of an object using the Euler's angles. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_transform_orderDescriptionSets the tranformation order to build the internal tranformation matrix. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_orientationDescriptionSets the relative orientation of an object using a quaternion. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.get_orientation_euler_anglesDescriptionGets the relative orientation of an object using the Euler's angles. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_absolute_orientation_euler_anglesDescriptionGets the absolute orientation of an object using the Euler's angles. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_orientation_vectorsDescriptionGets the 3 axis that describe the relative orientation of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_orientation_vector_zDescriptionGets the Z axis of the relative orientation of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_absolute_orientation_vectorsDescriptionGets the 3 axis that describe the absolute orientation of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_absolute_orientation_vector_zDescriptionGets the Z axis of the absolute orientation of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.transform_update_scaleDescriptionHandy function to update the scale of the relative transformation matrix. Position is also updated. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_scaleDescriptionSets the relative scale of an object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_scale_vertices_positionDescriptionScale the position of all vertices. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.copy_transformDescriptionCopies the local transformation from one object to another one. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.flip_facesDescriptionFlip the faces of a triangular object (a mesh). LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.flip_vertex_normalsDescriptionFlip the normals of all vertices. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.use_fixed_mvp_matricesDescriptionTells GLSL Hacker to update OpenGL fixed matrices (modelview) with the object transform matrice when this object is rendered. By default GLSL Hacker expects an OpenGL 3+ (full shader) rendering. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.use_opengl21DescriptionSpecifies if an object (usually a mesh) uses the old OpenGL (with built-in vertex attributes, etc...) or not for the rendering. If built-in vertex attributes are used, a GLSL shader is not required for the rendering (old OpenGL style). LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.renderDescriptionRenders an object. This function supposes that gh_camera.bind() has been called. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.render_geometryDescriptionRenders only the object geometry. Transformation matrix or material/textures/gpu program are not bound, you have to manually bind them before calling render_geometry(). LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.display_tripodDescriptionDisplays (renders) the tripod of an object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_display_tripod_stateDescriptionSets the display state of the object tripod. This function has a meaning when the render() function is used to render an object. If you use render_geometry(), you have to use display_tripod() to draw the tripod. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_tripod_sizeDescriptionSets the size (length) of object tripod axis. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.display_gridDescriptionDisplays (renders) the a reference grid linked to the object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_grid_paramsDescriptionSets the parameters of the object reference grid. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.set_display_grid_stateDescriptionSets the display state of the object grid. This function has a meaning when the render() function is used to render an object. If you use render_geometry(), you have to use display_grid() to draw the grid. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.get_num_verticesDescriptionGets the number of vertices of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_num_facesDescriptionGets the number of triangular faces of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.set_tessellation_stateDescriptionEnables the rendering with hardware tessellation (OpenGL 4+). A tessellation GPU program is also required. This function works with meshes and models. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.compute_faces_normalDescriptionComputes the normal vector of all faces. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.compute_vertices_normalDescriptionComputes the normal vector of all vertices. LanguagesLua ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.average_vertices_normalDescriptionAverage the normal vector of all vertices. LanguagesLua ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.get_num_materialsDescriptionGets the number of materials of an object. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.get_materialDescriptionGets a material from its index (0 ; get_num_materials()-1). LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.add_materialDescriptionAdds a material to an object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.remove_materialDescriptionRemoves a material from an object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.remove_all_materialsDescriptionRemoves all materials from an object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_object.get_distanceDescriptionReturns the distance between two objects. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_object.set_automatic_uniform_stateDescriptionSet the state (enabled or disabled) of automatic uniforms. If state is 0, the automatic uniforms specified by the mask are no longer send to the current GPU program. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
2013-2015 Geeks3D. All Rights Reserved. .:- G3D Network -:. |