Commit Graph

847 Commits

Author SHA1 Message Date
kearwood
87b7877958 Fixed LOD mesh selection bugs
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40149
2012-11-01 22:16:59 +00:00
kearwood
37ebc89c2c Lightmaps now working again
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40148
2012-10-31 20:04:25 +00:00
kearwood
ad53aa78cc Corrected major octree generation bug, which resulted in incorrect culling
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40147
2012-10-27 01:29:05 +00:00
kearwood
db43a1468e Fixed bug that caused octree visualization to intermittently display opaque visuals
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40146
2012-10-27 00:50:17 +00:00
kearwood
b2c13a1281 Fixed bug that caused imports to skip over FBX files.
Updated build target for KRImport so it can run on OSX 10.6

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40145
2012-10-26 23:13:31 +00:00
kearwood
9137919cd0 Enabled procedural texture loading
Fixed build settings so KREngine_osx can be used as an embedded framework

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40144
2012-10-26 22:10:28 +00:00
kearwood
0e174d99ba Performance optimizations, reducing repeated matrix calculations
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40143
2012-10-26 19:31:27 +00:00
kearwood
2c429b8579 Implemented KRViewport object, which reduces redundant KRMat4 calculations and paves the way for upcoming rendering features.
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40142
2012-10-26 01:17:35 +00:00
kearwood
17ce0fd05a Fixed bug that caused transparent objects to intermittently become opaque
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40141
2012-10-25 18:48:25 +00:00
kearwood
15ebea1533 Now using VAO's (OES_vertex_array_object extension) to improve performance of scenes with many materials and objects
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40140
2012-10-25 18:28:30 +00:00
kearwood
825c78ab80 Implemented non-compressed (tga file) 24-bit and 32-bit textures
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40139
2012-10-25 03:15:28 +00:00
kearwood
29b6004b2e Refectoring in preparation for non-compressed texture support
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40138
2012-10-24 06:57:34 +00:00
kearwood
fa91aafb5b - Performance optimization - Eliminating extra matrix calculations for shaders that do not use the results
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40137
2012-10-20 02:15:48 +00:00
kearwood
1f512462b7 - Fixed specular bug affecting rotated, translated and scaled objects
- Cleanup and performance optimizations

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40136
2012-10-20 01:10:57 +00:00
kearwood
2097664c0a - Implemented device detection and automatic selection of KREngine memory management parameters
- Now detecting iPad 3 and adjusting parameters to utilize the greater RAM capacity

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40135
2012-10-19 23:17:43 +00:00
kearwood
9e96e765c4 - Material manager now matches material names in a case-insensitive manner
- KREngine object is now a singleton
- Removed temporary test harnesses for cubemap reflections

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40134
2012-10-19 18:28:18 +00:00
kearwood
6ad15ea510 Mtl file parser now scans for tokens case-insensitive
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40133
2012-10-19 02:17:22 +00:00
kearwood
689596629d No longer crashes for scenes that don't have a skybox
Removed excessive NSLog messages

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40132
2012-10-18 21:20:38 +00:00
kearwood
2aded76722 Now using setUniform methods of KRMat4, KRVector3, and KRVector2 instead of direct glUniform calls
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40131
2012-10-18 08:37:19 +00:00
kearwood
6358f7fcb9 Added setUniform method to KRMat4, KRVector2, and KRVector3
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40130
2012-10-18 08:25:47 +00:00
kearwood
89b273f2ce Added new convenience functions to KRMat4
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40129
2012-10-18 07:32:21 +00:00
kearwood
736ca4fc4b Implemented KRMat4::LookAt
KREngine object no longer requires a width and height passed into init.
KRCamera no longer requires a width and height passed into the constructor; it now automatically resizes its buffers to match the active render target.

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40128
2012-10-17 19:43:15 +00:00
kearwood
a884f4fcd2 Completed implementation and debugging of cube map reflections, including cube map reflections for normal mapped textures
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40127
2012-10-12 02:27:59 +00:00
kearwood
40c4f4c897 Debugging cubemap reflections
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40126
2012-10-12 00:02:24 +00:00
kearwood
278c6d5926 Completed implementation of skyboxes, enabled by setting the "skybox" attribute of the "scene" node. Once the camera is moved to the scene graph, this "skybox" attribute will be moved to the "camera" nodes.
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40125
2012-10-10 22:09:28 +00:00
kearwood
fcd58bb373 Implementation of reflections in progress
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40124
2012-10-06 01:43:11 +00:00
kearwood
586285856d Implementation of reflections in progress
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40123
2012-10-06 01:35:41 +00:00
kearwood
906598e97f Fixed krengine_osx build issue
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40122
2012-10-05 21:50:47 +00:00
kearwood
8d47e0bdb9 KRTextureCube implementation in progress
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40121
2012-10-05 21:22:47 +00:00
kearwood
a46bfaf489 Reversed meaning of m_tr attribute in KRMaterial so that it matches the alpha without needing inversion
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40120
2012-10-05 20:46:24 +00:00
kearwood
63cee5de79 Updated fbx import for compatibility with recent runtime engine refactoring
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40119
2012-10-05 20:41:25 +00:00
kearwood
c034a4dfe2 Fixed bug that caused KRImport to incorrectly tag opaque materials as transparent
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40118
2012-10-05 20:34:39 +00:00
kearwood
7f7651efbd Completed implementation of Model LOD system
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40117
2012-10-05 02:23:00 +00:00
kearwood
2fd05171b7 Fixed colour temperature and intensity engine parameters, which were not calculating r,g,b correctly
Refactoring in preparation for LOD and geometric reflections

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40116
2012-10-04 22:29:01 +00:00
kearwood
4ea621c2cd Removed hard coded 90 degree view matrix rotation from
- (void)renderScene: (KRScene *)pScene WithViewMatrix: (KRMat4)viewMatrix

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40115
2012-10-03 21:05:29 +00:00
kearwood
1f00f86225 Added rotationMatrix method to KRQuaternion
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40114
2012-10-03 21:00:05 +00:00
kearwood
b13de25a4c Merged KRMesh into KRModel
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40113
2012-10-03 19:55:34 +00:00
kearwood
e6e90c1945 Now compatible with GLKView's
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40112
2012-10-03 19:29:37 +00:00
mike
a6dcbaaca4 Scaled ambient intensity to 10.0 and removed all RGB references.
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40111
2012-09-27 18:57:56 +00:00
kearwood
b05ef5248d Increased maximum sun intensity
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40110
2012-09-27 18:20:56 +00:00
kearwood
faec06833e Increased minimum texture LOD dimension to 64x64
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40109
2012-09-27 18:18:11 +00:00
kearwood
63fb848da5 Implemented global dynamic texture LOD selection to constrain texture memory usage within bounds
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40108
2012-09-26 20:07:48 +00:00
kearwood
a39610a292 Now drawing geometry in front-to-back order for opaque surfaces and back-to-front order for transparent surfaces. This solves some sorting issues with transparent blended textures stacking. Additionally, it improves the efficiency of the occlusion culling algorithm.
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40107
2012-09-21 08:24:55 +00:00
kearwood
d4903c1d84 Fixed inaccurate view frustum culling
Implemented smarter octree visibility query batching algorithm

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40106
2012-09-21 07:31:18 +00:00
mike
d23fe9a700 Added sliders for temperature and intensity
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40105
2012-09-21 05:59:24 +00:00
kearwood
0dcd2d19f4 Added additional validation logic for debugging
Corrected memory corruption in VBO's!  No longer have random visual artifacts when models with > 65535 triangles are displayed.

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40104
2012-09-20 10:51:28 +00:00
kearwood
57fd737955 Corrected shader link status validation
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40103
2012-09-20 09:32:20 +00:00
kearwood
ba14fc2b8c Added missing GLDEBUG() macros
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40102
2012-09-20 08:27:25 +00:00
kearwood
96c5b62e26 Updated for XCode 4.5
Cleanup and removal of redundant shader compiling and validation code

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40101
2012-09-20 08:16:59 +00:00
kearwood
9f4608a888 Moved the post processing shader to KRShaderManager / KRShader
Changed many vertex buffers to VBO's

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40100
2012-09-19 20:26:30 +00:00