AzaezelX
d766348867
1) bumped bytesPerTexel on up to 8 and got rid of the explicit fillin
...
2) fed glTexSubImage3D GL_RGBA instead of a second GFXGLTextureType[mFormat]. this tells it what order colors come in, not what size
3)for safeties sake, skipped out on updatetexture if the fed cubemap isn't initialized yet
2019-04-26 13:32:23 -05:00
Areloch
175f0eebb7
ongoing WIP of openGL cubemap arrays.
...
Got the initialization of the arrays to work, but currently fill the supplied cubemaps with flat 1 values(effectively filling with garbage) as sampling from the cubemap to feed to the array leads to memory/heap corruption.
2019-04-26 01:57:07 -05:00
AzaezelX
a0d1a076d5
Merge branch 'PBR_ProbeArrayForward' into PBR_ProbeArrayGLWIP
...
# Conflicts:
# Engine/source/renderInstance/renderProbeMgr.cpp
2019-04-16 09:34:01 -05:00
Areloch
000c7b2263
GL work
2019-04-15 23:11:18 -05:00
AzaezelX
b9c2db28e4
enhanced stage check
2019-04-10 11:43:45 -05:00
Areloch
2977fc1415
Merge pull request #2144 from RichardsGameStudio/development
...
Allow correct display of widescreen resolutions (16:9 and 16:10 ratio) on a 4:3 ratio display
2019-03-31 12:22:09 -05:00
Areloch
669bfc24d8
Merge pull request #2315 from Azaezel/wireFrameFix
...
corrects a parity flaw between wireframe and non wireframe box display
2019-03-30 15:09:32 -05:00
Areloch
1627cbabe6
ongoing WIP to sort out init'ing issues as well as correcting values so the probes actually correctly update data into the arrays
...
Additional sanity checks on the updateTexture calls added by timmy
2019-03-25 00:06:08 -05:00
Areloch
26471aaa77
WIP of timmy's changes merged in. Not properly initializing the probes/array slots just yet.
2019-03-24 18:18:44 -05:00
Areloch
87ee749801
(Mostly) updated verve implementation.
2019-03-07 16:23:41 -06:00
Azaezel
727dbbfd8d
rolled in more of https://github.com/GarageGames/Torque3D/pull/2315 + set the mProbeShapeType(s) for the two derivative classes
2019-02-19 16:34:30 -06:00
Azaezel
46624cc95a
wireframe capsule set to the contents of the solid capsule for corrections and backwards compatibility
2019-02-19 16:30:39 -06:00
Azaezel
110d815b39
solid capsule renderfix. +/- halfhieght, not full, and need to do vector, not point-multiplication for the verts
2019-02-19 16:10:33 -06:00
Azaezel
cf50803e72
swap over to wireframe, plus a few misc cleanups
2019-02-19 13:58:29 -06:00
Azaezel
05f8d8b5f1
corrects a parity flaw between wireframe and non wireframe box display
2019-02-19 13:13:23 -06:00
suncaller
31d0eb16f8
Clean up MSVC warning [C4312] conversion from type to type * of greater size
2019-02-02 23:09:55 -05:00
Azaezel
26a89882c7
tracks wether or not a cubemap has been fully intitialised (as well as defautls for other shared entries). skips out including an uninitialized cuebmap in probe array (inthoery. in practice, need to root arround a bit more)
2019-01-22 02:03:14 -06:00
Azaezel
1eed979a9c
Merge branch 'method_Unmangle' into PBR_PR
2018-12-12 14:54:22 -06:00
Azaezel
a9cb78b67f
straight convert of RGBA16F saving support for probes. should note gl side seems to be having an issue with loading probes thats resulting in color channel swapping.
2018-12-09 18:09:45 -06:00
Areloch
6cf0c9e360
Merge branch 'development' into EngineAPI-Refactor
2018-12-09 14:48:50 -06:00
Tim Barnes
6937989d61
RGBA16F saving support for probes
2018-12-05 20:01:58 +10:00
Tim Barnes
ab10cc0c87
timmy merge work
2018-11-28 17:51:52 +10:00
Azaezel
96101a0e56
correction for folks supporting older codebases outside of this engine: don't try and include the older directx library unless youre also deliberately using the older directsound end of things, and for dx11, reference the #include <d3d11_1.h> lib instead of the <d3d11.h> one to pair with the reference used by SDL2
2018-11-23 00:30:23 -06:00
Tim Barnes
9e65e940d0
lighting single buffer
2018-11-21 15:53:02 +10:00
Azaezel
b19fe23473
from timmy: fix for seperated out RGB and A blends
2018-11-10 00:32:24 -06:00
Tim Barnes
6e17475f86
WIP shader work - not complete!
2018-11-02 09:08:45 +10:00
Areloch
e72f04648a
Adjusts the lightbin manager to be a regular bin, and shifts ownership of both lighting targets to the deferred manager. Probes now render ahead of lights to make the additive order jive.
...
Also reordered the probe targets used so they match lights for consistency.
2018-10-24 23:43:12 -05:00
Azaezel
d484a1a46e
apply consistent colorspace to cubemaps
2018-10-17 21:04:41 -05:00
Areloch
f31445751f
Updates and fixes to probe and lighting logic.
2018-09-17 01:52:18 -05:00
Areloch
b19a4b22c8
Implementation of reflection and skylight probes.
...
Moves lighting math to the diffuse/specular two-channel logic.
2018-09-16 22:15:07 -05:00
Areloch
1f7cf55204
Add cubemap arrays, as well as control for generation of MIPs on texture targets.
2018-09-16 18:19:04 -05:00
Areloch
0c3fc59ccc
Image format code tweaks.
2018-09-16 17:54:21 -05:00
Areloch
b4a1d18f42
Core implementation of Physical Based Rendering.
2018-09-15 20:19:57 -05:00
Azaezel
ae5fce6169
alternative to #2268 : remove secondary profiling
2018-07-27 22:00:49 -05:00
Areloch
4cb701b0c3
Merge pull request #2247 from rextimmy/d3d11_tex_lock_fix
...
Corrects a problem with the D3D11 texture lock/unlock mechanism
2018-07-12 15:17:49 -05:00
rextimmy
a48b70d5b1
d3d11 copyToBmp fix for new lock/unlock function
2018-07-10 14:13:22 +10:00
Areloch
703ac27cf2
Merge pull request #2265 from OTHGMars/vmParseFromString
...
Fix for bug in GFXVideoMode::parseFromString()
2018-07-09 13:56:12 -05:00
OTHGMars
bab3d9d5f3
Fix for bug in GFXVideoMode::parseFromString()
...
When testing PR #2264 I discovered that GFXVideoMode::parseFromString() will never assign false to the fullScreen value. That value must be initialized to false going in. I found it hard to believe that that could be the case and not have caused a problem before now, so I dropped:
```c++
GFXVideoMode vmTest = GFXInit::getDesktopResolution();
vmTest.fullScreen = true;
vmTest.parseFromString("800 600 false 32 60");
Con::printf("%s becomes %s", "800 600 false 32 60", vmTest.toString().c_str());
```
into the end of _GFXInitGetInitialRes() and the output string is:
800 600 false 32 60 becomes 800 600 true 32 60 0
None of the values get assigned by the macro [here](https://github.com/GarageGames/Torque3D/blob/development/Engine/source/gfx/gfxStructs.cpp#L46-L48 ) if their function evaluates to zero or the token is missing from the string. This commit corrects that for the boolean case to only skip the assignment if the string token is not found.
2018-07-07 02:23:59 -04:00
chaigler
38237bfb62
_GFXInitGetInitialRes() cleanup
...
Removes unnecessary code that sets default video mode params. This is
already handled by the GFXVideoMode constructor. The settings are also
immediately overwritten by vm.parseFromString().
Resolves #740
2018-07-05 14:19:05 -04:00
Areloch
5a1af9ccd7
Merge pull request #2236 from Azaezel/memberMess
...
cleans up all 'hides' warnings (at time of writing)
2018-05-30 20:36:43 -05:00
rextimmy
96c71a4d5d
Corrects a problem with the D3D11 texture lock/unlock mechanism
2018-04-21 18:19:17 +10:00
Lukas Joergensen
2bbc716db6
Eliminate unnecessary uses of ConsoleFunction
2018-04-17 21:41:29 +02:00
Lukas Joergensen
6be736ff85
Eliminate DefineConsoleStaticMethod
2018-04-17 21:03:16 +02:00
Lukas Joergensen
76908eae3c
Eliminate DefineConsoleMethod
2018-04-17 21:01:50 +02:00
Lukas Joergensen
e718841467
Eliminate DefineConsoleFunction
2018-04-17 20:54:08 +02:00
Azaezel
cbce2ee805
Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
...
# Conflicts:
# Engine/source/console/consoleFunctions.cpp
2018-03-28 15:42:34 -05:00
Azaezel
96093bd3ec
augmentation to drawArrow to allow one to explicitly define a radius.
2018-03-27 14:57:23 -05:00
Azaezel
2580e3329c
gfxDrawutil, gizmo shadowvar cleanups
2018-03-15 20:44:13 -05:00
Glenn Smith
47d5b6ead7
As suggested, extract strlen calls from sizes into variables so it isn't called twice
2018-03-08 20:59:40 -05:00
Glenn Smith
79c34c68db
Use strncpy instead of strcpy because again, buffer overflows
2018-03-06 02:35:33 -05:00