summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
AgeCommit message (Collapse)Author
2019-05-22Fix #848Wilhem Barbier
2019-05-20Review glTF implementation formattingRay
Added comments for the future
2019-05-18Load glTFWilhem Barbier
2019-05-15Corrected issue with multi-mesh obj modelsRay
Note that all meshes are loaded as a single one at this moment, loading should be improved!
2019-05-09Make code a bit clearer for beginnersRay
2019-05-09Add comment in CheckCollisionSpheres()Ray
2019-05-08Update models.cProfJski
2019-05-08Update CheckCollisionSpheres() to avoid sqrtProfJski
Square root calls are computationally expensive. In this case, they can be avoided. Instead of checking distance<RadA+RadB, check distance squared against (RadA+RadB) squared. The dot product of Vector3Subtract(B,A) with itself gives distance squared, so I used this code instead of an element-by-element computation of distance squared. The only downside is that your geometric code is very readable, whereas this is less so.
2019-04-23Support custom memory management macrosRay
Users can define their custom memory management macros. NOTE: Most external libraries support custom macros in the same way, raylib should redefine those macros to raylib ones, to unify custom memory loading. That redefinition is only implemented as example for stb_image.h in [textures] module.
2019-04-14Check buffer overflowRay
2019-04-10Set default white texture for diffuse matRay
2019-04-10Check textures available before loadingRay
2019-04-09Start working on glTF loading...Ray
2019-04-08Review creation yearsRay
2019-04-07Happy new year 2019ChillerDragon
2019-04-05Review PBR shadersRay
Issue was related to vertex tangent attibutes not uploaded to GPU, a quick solution was implemented for new vertex attributes loading for already existing meshes... I don't like it specially but it will work for now.
2019-04-05BIG UPDATE: New models functions for animations!Ray
Multiple functions added and some reviewed to adapt to the new multi-mesh, multi-material and animated models.
2019-04-04Removed trail spacesRay
2019-04-04BIG UPDATE: Support model animations!Ray
2019-04-01Corrected some issuesRay
- Support compiling for OpenGL 1.1 - Free meshes/materials memory after usage...
2019-04-01Support material loading from OBJ/MTLRay
2019-04-01Reviewed OBJ loading implementation -WIP-Ray
One mesh files can be loaded correctly MISSING: - Multimesh OBJ loading - Materials loading
2019-04-01Implementing LoadOBJ() -WIP-Ray
It seems obj loading is working ok but there is some problem with drawing...
2019-03-29Default to white cube mesh if not loadedRay
2019-03-29Review some warningsRay
2019-03-29Replace custom OBJ/MTL implementations by tinyobj_loader -WIP-Ray
2019-03-29WARNING: Redesigned model struct for multi-meshesRay
This is quite a big change, Model struct has been redesigned to support multiple meshes and multiple materials, most 3d fileformats contain multiple meshes and reference multiple materials. Consequently, multiple functions have been reviewed. LoadOBJ(), LoadIQM(), LoadGLFT() now return a Model. Current LoadOBJ() is not valid anymore, actually, tinyobj_loader_c library is considered for replacement.
2019-03-08Adding DrawCubeWiresV for convenienceRafael Sachetto
2019-02-22Change ternary operator formattingRay
2019-02-21Remove end-line spacesRay
2019-02-18Update cgltf libraryRay
Added some comments to loader function...
2019-02-14Fix config.h flagsJens Pitkanen
2019-02-06Review ExportMesh() headerRay
2019-01-11Some security checks addedRay
2018-12-19Corrected issue on plane drawingRay
2018-12-18Support externally provided compilation flagsRay
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
2018-12-15ADDED: GenMeshPoly()Ray
To generate 2D polygonal shape
2018-12-03Comments removedRay
2018-09-17Improved data export capabilities!Ray
REVIEWED: ExportImage() REVIEWED: ExportMesh() ADDED: ExportWave() REMOVED: Internal funcs: SavePNG(), SaveBMP() NOTE: These changes break the API (parameters order)
2018-09-14Removed TABSRay
2018-09-14Update mini_al to v0.8.8Ray
Some minor tweaks around
2018-09-06Update models.cF.H
fix bug with GenMeshPlane() creating too many vertices/texcoords/normals for the plane mesh
2018-09-05Started working on IQM/glTF loadersRay
2018-08-04Fix compiler warnings, first partKim Kulling
2018-05-28fabsf() not working with TCCRay
Replaced by fabs() that seem to work ok
2018-05-17Header tweak and commentsRay
2018-04-30Added tangent computation alternative methodraysan5
As stated in the note, I'm not sure if math is right, just followed a reference implementation...
2018-04-30Implemented MeshTangents()raysan5
- Added Vector3OrthoNormalize() to raymath.h - not sure if it is correct - Implemented MeshBinormals() - Mesh struct has not a place for them... - Updated model_material_pbr example - tested but not working on my GPU (old Intel HD), actually, it never worked on it...
2018-04-19Implemented default meshRay
In case mesh loading fails, a cube is generated instead!
2018-04-08Merge pull request #522 from a3f/masterRay
Refactor all #define SUPPORT_* into a config.h