17 Commits

Author SHA1 Message Date
Sha..rd
cac820803b * Better checking for MRT in renderer (first against max color attachments then against draw buffers)
* Now uses only OpenGL2 draw buffers instead of relying on GL_ARB_draw_buffers existing
 * copyFrameBuffer() was non-functional when used against the main framebuffer because the width/height were set to zero erroneously, now it uses the current viewport parameters.
 * Added TestRenderToCubemap to demonstrate render to cubemap functionality, it also uses MRT to render to all the cube sides

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9378 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-12 18:38:31 +00:00
rem..om
311242b6d9 - Framebuffer can now render to a cube map face, thanks to dflemstr
http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/how-do-i-render-to-a-face-of-a-texturecubemap/?#post-171990

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9363 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-08 19:51:08 +00:00
ShA..Rd
807a3e6fc5 * Fix incorrect format for DepthStencil in TextureUtil (fix potential GL issue)
* Fix tex3DThumb.frag compile error (implicit int -> float conversion)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9339 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-01 14:15:39 +00:00
Sha..rd
f68475319a * Added new image format: Depth24Stencil8, for framebuffers and textures that need stencil data
* Renderer now uses getArray() to access mesh's buffers
 * GL image format data now stored in a special data structure for easier management (instead of huge switch/case statement)
 * Android texture loading: If the format is not supported by GLES spec, the texture upload will fail

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9298 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:26:22 +00:00
rem..om
544e1f6342 Shaders : The line numbers on error now correctly takes the version line added to the shader into account
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9295 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 11:13:34 +00:00
rem..om
3a0e1f50ac Shaders : The line number is now printed for each line of shader code in the standard error output when a shader fail to compile.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9294 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-12 20:08:38 +00:00
sky..ok
533fb86c50 Down to 260 Javadoc warnings from 324
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-22 00:22:09 +00:00
Sha..rd
db4188c797 * InputManager will throw exception if joysticks are disabled instead of returning null
* Allow use of negative program IDs in LwjglRenderer (will continue instead of crashing for "Invalid ID received from driver" errors)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9116 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-28 06:19:51 +00:00
Sha..om
d6af43a5cb * Removed yet another check for "unknown" joystick type
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9105 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-21 04:52:57 +00:00
Sha..rd
ed1fd4a253 * Try to fix the guys problem with the joystick
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9104 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-20 03:09:22 +00:00
Sha..rd
96bde02de6 * Fix compile error in FrameBuffer, setRefreshNeeded() -> setUpdateNeeded()
* LwjglRenderer - Will only upload buffers that are used by a shader 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9066 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 21:01:41 +00:00
rem..om
70782dd431 removed typo in lwjglCanvas preventing the engine to build
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9022 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 10:33:18 +00:00
Sha..rd
bd828d629c * Fixed issue with default samples value causing "No support for WGL_ARB_multisample" error
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9021 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 06:02:06 +00:00
rem..om
cbd1248302 Mesh bufferList is now a SafeArrayList instead of an ArrayList
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8869 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-05 20:27:28 +00:00
Sha..om
28a10e239c * Moved framebuffer exception INSIDE NPOT check instead of outside where it made no sense
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8858 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-04 21:34:44 +00:00
nor..67
3cdaf0e051 jme3:
- fix imports in all classes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8843 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 14:06:48 +00:00
nor..67
1cc957e7e9 - big refactoring of engine build and cleaning of sources, totally breaking SDK build for now
- separate jar files for engine components
- resolve dependencies between code parts
- remove Nifty dependency from Cinematics
- remove Physics dependency from TerrainGrid
- add public accessors to Natives Extraction
- remove RenderHint serialization from networking

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8838 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 01:19:18 +00:00