Commit graph

2428 commits

Author SHA1 Message Date
Branimir Karadžić
5cbc5d55f4 Cleanup. 2015-06-10 13:21:59 -07:00
Branimir Karadžić
a2716a3fe6 Cleanup. 2015-06-10 09:53:09 -07:00
Branimir Karadžić
cf6bcfa307 Merge pull request #432 from ocornut/imgui_scintilla_fixes
ocornut-imgui integrations: mouse wheel, render callbacks, keyboard
2015-06-10 09:20:57 -07:00
Branimir Karadžić
284b8ef65b Merge pull request #431 from attilaz/glimport
added iOS GL extension function import
2015-06-10 09:20:02 -07:00
ocornut
a3fd7b7132 Fixes for ocornut-imgui integration: keyboard keys, modifiers 2015-06-10 09:03:17 -06:00
ocornut
eccbae09b1 Fixes for ocornut-imgui integrations: mouse wheel, render callbacks 2015-06-10 08:53:50 -06:00
Kocsis Attila
e97be61a75 added iOS GL extension function import 2015-06-10 15:52:12 +02:00
Branimir Karadžić
f0b76697c5 Fixing GCC warnings. 2015-06-09 23:56:30 -07:00
Branimir Karadžić
6e6e16e2ba Pass thread exit code from app thread as process exit code. Issue #430. 2015-06-09 22:34:10 -07:00
Branimir Karadžić
b2bc9238d0 Pass thread exit code from app thread as process exit code. 2015-06-09 22:24:49 -07:00
Branimir Karadžić
ef143a1bb6 Fixed issue #429. 2015-06-09 19:57:10 -07:00
Branimir Karadžić
33de71efbd Merge pull request #428 from ocornut/imgui_scintilla_fixes
Fixes for ocornut-imgui integration
2015-06-09 16:00:29 -07:00
ocornut
4f19cdc436 Fixes for ocornut-imgui integration, handling negative scissor inputs, removed unnecessary vertex count calculation 2015-06-09 15:31:53 -06:00
Branimir Karadžić
efaa26db2a Merge pull request #427 from ocornut/imgui_scintilla_fixes
Scintilla: build with lexer enabled.
2015-06-09 14:28:07 -07:00
ocornut
cf4f43b9f5 Scintilla: build with lexer enabled. 2015-06-09 15:05:26 -06:00
Branimir Karadžić
85e6bea936 Updated script. 2015-06-08 21:16:23 -07:00
Branimir Karadžić
a510b8f347 Added Scintilla imgui. 2015-06-08 17:07:35 -07:00
Branimir Karadžić
c165fb20db Cleanup. 2015-06-08 10:41:48 -07:00
Branimir Karadžić
9ebcfab447 Cleanup. 2015-06-07 21:28:36 -07:00
Branimir Karadžić
ddf0959d35 Cleanup. 2015-06-07 21:20:55 -07:00
Branimir Karadžić
72454acc8e Cleanup. 2015-06-06 17:12:29 -07:00
Branimir Karadžić
67997930e3 Cleanup. 2015-06-06 17:13:52 -07:00
Branimir Karadžić
acfab2a171 Cleanup. 2015-06-06 16:57:43 -07:00
Branimir Karadžić
466c76071a Cleanup. 2015-06-05 10:43:43 -07:00
Branimir Karadžić
f81dadd9b8 Fixed shadowing variable warning. 2015-06-05 09:54:14 -07:00
Branimir Karadžić
d2204e5cf2 Merge pull request #423 from mendsley/vr_viewportfix
VR: Fix skewed viewports with buffered eye textures
2015-06-05 09:14:19 -07:00
Branimir Karadžić
fd8cad8672 Merge pull request #421 from mendsley/vr_msaa
VR: Properly support MSAA in OVR builds
2015-06-05 09:11:29 -07:00
Matthew Endsley
05d70ea99d VR: Fix skewed viewports with buffered eye textures
Bug fix for #419

Viewport calculations need to take VR eye buffer size into
account. Noticable at the older 100px boundary. Skewing still
exists at newer 8px buffer, but is harder to notice.
Eventually causes pretty bad eye strain, though.

Easily reproduced by setting the buffer to something obscenely
large, such as 2048.
2015-06-05 02:12:24 -07:00
Matthew Endsley
9a1b1f892c VR: Properly support MSAA in OVR builds
Fixes #338

Create the swap chain without MSAA, and the eye textures
with MSAA. The core issue was using the surface description
for the backbuffer for the DSV on the eye textures which did
not match.

This meethod follows both the oculus and openvr guidance on MSAA -
MSAA is configured on the eye render targets, but not on the swap
chain.
2015-06-05 00:30:05 -07:00
Branimir Karadžić
ad4b2f134f Merge branch 'master' of github.com:bkaradzic/bgfx 2015-06-04 22:26:09 -07:00
Branimir Karadžić
132b0c9a1b Cleanup. 2015-06-04 22:24:45 -07:00
Branimir Karadžić
66ad074f90 Merge pull request #420 from mendsley/vr_eye_bleeding
VR: Add buffer between left/right eye textures
2015-06-04 19:23:59 -07:00
Branimir Karadžić
607bc780f1 Merge pull request #419 from mendsley/ovr_version_fix
VR: Fix OVR_VERSION macro.
2015-06-04 19:22:56 -07:00
Matthew Endsley
9020994470 VR: Add buffer between left/right eye textures
This prevents bleeding across the individual viewports
when the oculus SDK applies distortion mapping. The current
reccommended values are 100px for SDK <= 0.5 and 8px for > 0.5

See: http://static.oculus.com/sdk-downloads/documents/0.6.0/Oculus_Developer_Guide.pdf
  in the "Bugs Fixed Since the Last Release" section.

For an example of this artifact, see the correct scene render:
![Imgur](http://i.imgur.com/fZZExg8.jpg)

followed by a scene that bleeds the left eye into the right eye:
![Imgur](http://i.imgur.com/dZalmPS.jpg)
2015-06-04 18:44:31 -07:00
Matthew Endsley
acdaefb161 VR: Fix OVR_VERSION macro.
Was previously supplying (major,minor,build) when it is
actuall (product,major,minor).

For example, the 0.5.0 SDK has the following:
```
 #define OVR_PRODUCT_VERSION 0
 #define OVR_MAJOR_VERSION   5
 #define OVR_MINOR_VERSION   0
 #define OVR_PATCH_VERSION   1
 #define OVR_BUILD_NUMBER    0
```
2015-06-04 18:41:35 -07:00
Branimir Karadžić
58fae36870 input: Added ability to retrieve modifiers state. 2015-06-04 18:26:09 -07:00
Branimir Karadžić
3813b28e9b Merge pull request #418 from mendsley/hmd_device_resolution
VR: Add device resolution to HMD. Init at startup.
2015-06-03 16:56:45 -07:00
Matthew Endsley
1e604e8f38 VR: Add device resolution to HMD. Init at startup.
BREAKING: bgfx::getHMD() now returns a valid pointer
if the VR runtime was initialized. This is different
from existing behavior where getHMD returned NULL until
a bgfx::reset(... BGFX_RESET_HMD) was issued. Applications
must now check HMD::flags for the current state of the VR
runtime. The following code has the code change required:

`const bgfx::HMD* hmd = bgfx::getHMD()
if (NULL != hmd)`
becomes:
`const bgfx::HMD* hmd = bgfx::getHMD()
if (NULL != hmd && 0 != (hmd->flags & BGFX_HMD_RENDRERING))
{
	// rendering logic
}`

See the updated examples for details.

This allows applications to create the appropriately
sized back buffer for the HMD device by using the new device
resolution fields HMD::deviceHeight and HMD::deviceWidth.
These values report the pixel resolution of the attached
HMD hardware.

This also allows applications to query the reported HMD
resolution immediately after bgfx::init. This prevents
the device from being cycled which generates rendring
artifacts on startup - namely flashing back to a black
screen and reseting the Health+Warning disaply.

This involves initialization the ovrHmd device on
initialization, but deferring rendering until
postReset has been called. This adds an addiional
memory overhead of 32k to builds defining BGFX_CONFIG_USE_OVR.
The overhead for current builds is ~1.9MB for calls to
ovr_Initialize, so the additional overhead is pretty
trivial (+1.8%)
2015-06-03 15:39:09 -07:00
Branimir Karadžić
ce3eded6a3 Fixed imgui font pixel center. 2015-06-03 14:38:00 -07:00
Branimir Karadžić
8155b139f6 Merge branch 'master' of cane:bkaradzic/bgfx 2015-06-02 23:29:37 -07:00
Branimir Karadžić
e1a564ca72 Fixed noop renderer. 2015-06-02 23:29:26 -07:00
Branimir Karadžić
32750a6824 Removed imgui dependency on input. 2015-06-02 19:25:37 -07:00
Branimir Karadžić
54c5c6b428 Merge pull request #412 from Nodrev/master
Fixing geometryc for meshes exported without uv coordinates
2015-06-02 14:29:46 -07:00
Branimir Karadžić
aa99fe1313 Added ocornut-imgui key mapping. 2015-06-02 14:28:22 -07:00
Nodrev
4df0cca212 Fixing geometryc for meshes exported without uv coordinates 2015-06-02 22:37:22 +02:00
Branimir Karadžić
51d41041b7 Cleanup. 2015-06-01 17:45:40 -07:00
Branimir Karadžić
801207ffa7 Cleanup. 2015-05-31 16:02:59 -07:00
Branimir Karadžić
cc5606a731 Added toggle fullscreen key. 2015-05-31 15:57:52 -07:00
Branimir Karadžić
e710926579 Updated imgui. 2015-05-31 15:33:01 -07:00
Branimir Karadžić
5188958326 Updated imgui. 2015-05-31 11:31:56 -07:00