Esenthel
Administrator
|
RE: Playing around with Windows Universal Apps
Have no idea,
When it's done
|
|
03-03-2016 12:27 PM |
|
Marbasoft
Member
|
RE: Playing around with Windows Universal Apps
I have a lumia 1020, can't wait to test it
|
|
03-04-2016 08:36 AM |
|
Esenthel
Administrator
|
RE: Playing around with Windows Universal Apps
|
|
03-04-2016 10:58 AM |
|
Esenthel
Administrator
|
RE: Playing around with Windows Universal Apps
Actually this is not glow
It's specially crafted textures + glow-like particle effects.
This gives very good performance on mobile, compared to a full post process shader.
|
|
03-06-2016 12:05 AM |
|
Esenthel
Administrator
|
RE: Playing around with Windows Universal Apps
Hi,
It's very simple, just draw a single particle:
You can use code similar to that:
Code:
class Glow
{
static ImagePtr image;
static Color color(255, 192, 64);
static flt radius=0.4;
static void Init()
{
image=UID(3007031556, 1137099648, 934413987, 3085159623);
}
static void Begin()
{
DrawParticleBegin(*Glow.image, 0, false);
}
static bool Test(C Vec &pos)
{
return Frustum(Ball(radius, pos));
}
static void Add(C Vec &pos, flt power)
{
Vec p=pos, delta=p-Cam.matrix.pos; flt d=delta.normalize(); p-=delta*(radius*0.5);
d/=D.viewRange(); d=1-Cube(Sqr(d));
DrawParticleAdd(color, power*d, radius, 0, p, VecZero);
}
static void End()
{
DrawParticleEnd();
}
Vec pos=VecZero;
flt power=0.35;
void draw()
{
if(Test(pos))Add(pos, power);
}
// io
bool save(File &f)C
{
f.cmpUIntV(0);
f<<pos<<power;
return f.ok();
}
bool load(File &f)
{
switch(f.decUIntV())
{
case 0:
{
f>>pos>>power;
if(f.ok())return true;
}break;
}
return false;
}
}
Memc<Glow> Glows;
void Render()
{
switch(Renderer())
{
case RM_BLEND:
{
if(Glows.elms())
{
Glow.Begin();
FREPAO(Glows).draw();
Glow.End();
}
}break;
}
}
|
|
03-06-2016 10:46 PM |
|
Esenthel
Administrator
|
RE: Playing around with Windows Universal Apps
All major issues have been fixed!
I need to do last bit of testing, and I will release the new engine update within a couple days
|
|
03-09-2016 10:59 AM |
|
Tottel
Member
|
RE: Playing around with Windows Universal Apps
Yayyy! Nice work, Esenthel.
Can't wait to try out all that new stuf!
|
|
03-09-2016 11:05 AM |
|
Esenthel
Administrator
|
RE: Playing around with Windows Universal Apps
|
|
03-16-2016 11:47 PM |
|
Houge
Member
|
RE: Playing around with Windows Universal Apps
|
|
03-31-2016 07:45 AM |
|
Alexsee
Member
|
RE: Playing around with Windows Universal Apps
Is this sufficient for Hololens development?
My understanding is that Hololens applications are Universal Apps but I'm a bit vague on whether there is need for extensions specific to the device.
|
|
06-03-2016 02:29 PM |
|
Esenthel
Administrator
|
RE: Playing around with Windows Universal Apps
Hi,
I have no idea, but my guess is that it'll work.
Although the idea for Hololens is to draw 3D on top of existing things that you see, so probably you'd have to add some extra work on the source code for that, and also to detect device input sensors.
|
|
06-04-2016 12:39 AM |
|