Commit Graph

1030 Commits

Author SHA1 Message Date
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
kearwood
283460acc7 Fixed bug in material loader that resulted in corrupted displays for materials with > 64 characters in the name
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4099
2012-09-13 23:59:28 +00:00
kearwood
fc1216ffa2 Updated framework reference paths for OSX framework target
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4098
2012-09-13 20:53:12 +00:00
kearwood
70478d87ca Updated project settings to target OSX 10.7
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4097
2012-09-13 20:28:03 +00:00
kearwood
917c4221ea Added debugging macro for GL calls
Activated octree culling logic as a default
Wide spread bug fixes related to occlusion culling and GPU resource management
Implemented logic to automatically enable alpha blending for materials that do not contain an alpha blending statement but have a material-level opacity value set less than 1.0
Extended the krobject file format to 256 characters for material names.
Added logic to prevent exported krobject files from being corrupted when long material names are used.

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4096
2012-09-13 20:09:19 +00:00
kearwood
763e8b8fe7 Fixed bug causing incorrect specular value to be assigned to a material when a mesh is rendered using the same shader as the previously rendered material.
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4095
2012-09-11 08:50:25 +00:00
kearwood
c6417c151d Performance improvement in the deferred lighting pipeline, utilizing hardware occlusion queries to avoid rendering objects in 3rd pass (Final Render) or loading their textures when they have been determined to be occluded in the 1st pass. (GBuffer populate)
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4094
2012-09-11 08:15:05 +00:00
kearwood
b802d22dc0 Implemented Deferred Point light visualization
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4093
2012-09-11 07:23:54 +00:00
kearwood
377fd8e6b5 Point lights no longer disappear when the camera is too close (within their sphere of influence)
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4092
2012-09-11 06:45:02 +00:00
kearwood
754496fe06 Implemented texture and VBO swapping system that keeps GPU memory utilization within limits
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4091
2012-09-11 04:32:04 +00:00
kearwood
34c7dc7b53 Implemented KRBundle's
Implementation of logic to allow dynamic loading and unloading of meshes and models for scenes larger than RAM in progress

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4090
2012-09-11 03:06:35 +00:00
mike
c7b7c20310 moved shader
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4089
2012-09-06 21:24:41 +00:00
mike
eb912256ab Disabled octree visualization
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4088
2012-09-06 20:25:49 +00:00
kearwood
527bcb33c3 Implemented visualization of octrees for debugging occlusion culling algorithms.
Corrected project settings to allow objpack to compile again.

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4087
2012-09-05 18:14:08 +00:00
mike
c74a85d931 Added texture loading and mapping to KRSkybox
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4086
2012-08-30 23:23:28 +00:00
kearwood
04e7a7e83c Implemented KRAABB class.
Occlusion culling in progress

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4085
2012-08-30 22:37:44 +00:00
kearwood
cee504408a Now iterating through the octree rather than the scene graph structure during render, in preparation for occlusion culling
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4084
2012-08-30 19:31:38 +00:00
kearwood
99b6d6771d Occlusion testing implementation in progress
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4083
2012-08-29 22:29:18 +00:00