[EFFECT]- webglSphere+Glsl version

Share your Construct 2 effect files

Post » Thu May 05, 2016 4:31 am

@justifun
The webglsphere was started by chrisbrobs, i ve just helped him a bit.
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
61
S
20
G
29
Posts: 815
Reputation: 22,093

Post » Sat May 07, 2016 3:49 pm

@Gigatron
@justifun
@delgado
@purplemonkey

I added a GLSL version to the first post..please test.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Mon May 09, 2016 4:59 pm

@chrisbrobs - Still does that texture stretching error after it rotates once
B
87
S
44
G
16
Posts: 1,002
Reputation: 17,932

Post » Thu May 12, 2016 6:56 am

justifun wrote:@chrisbrobs - Still does that texture stretching error after it rotates once

Same here.

This one works fine on my end http://gigatron3k.free.fr/html5/C2/FX/sph/
B
42
S
23
G
18
Posts: 154
Reputation: 12,475

Post » Sat Jun 25, 2016 3:00 pm

For @chrisbrobs friend, and others C2 users;
It's overwrited to chris xml and fx file ;

This glsl fx is definitely done now raymarching technique is used ;
Status : finished at 99%
tested on chrome firefox etc...

Image

example : http://gigatron3k.free.fr/html5/C2/FX/sph/

http://gigatron3k.free.fr/html5/C2/FX/glsphere.rar
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
61
S
20
G
29
Posts: 815
Reputation: 22,093

Post » Mon Oct 17, 2016 2:49 pm

Gigatron wrote:For @chrisbrobs friend, and others C2 users;
It's overwrited to chris xml and fx file ;

This glsl fx is definitely done now raymarching technique is used ;
Status : finished at 99%
tested on chrome firefox etc...

Image

example : http://gigatron3k.free.fr/html5/C2/FX/sph/

http://gigatron3k.free.fr/html5/C2/FX/glsphere.rar

The shader is awesome but its missing some features before I can use it.
X/Y/Z Offset

The automatic rotation feature is nice but I would prefer to be able to control the rotation via variables. And to make something like this:
Image

Basically, I would like the player(and myself) to be able to rotate the sphere any direction I want. Think Mass Effect where you hover around the orbit. Like this:
https://youtu.be/VwdzmK35Sk4?t=30s

Or a spherical version of 2.5d Shader
effect-2-5d-platformer_t168932?&start=50&hilit=25d

This would really make my day :)
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

Post » Mon Oct 17, 2016 8:01 pm

@irbis

Wait 5 minutes... i will add x,y,z rotation flags quickly ....

OK ... now : http://gigatron3k.free.fr/html5/C2/FX/glsphere.rar

So x rotation to 1 or -1 to rotate left right etc...
y rotation to 1 or -1 .... etc ...
Have fun ;
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
61
S
20
G
29
Posts: 815
Reputation: 22,093

Post » Mon Oct 17, 2016 8:38 pm

Gigatron wrote:@irbis

Wait 5 minutes... i will add x,y,z rotation flags quickly ....

OK ... now : http://gigatron3k.free.fr/html5/C2/FX/glsphere.rar

So x rotation to 1 or -1 to rotate left right etc...
y rotation to 1 or -1 .... etc ...
Have fun ;


WOW! So it IS possible?!?! Great! :D
Gigatron, but one request from me. The effect is great and everything, but I would like to get rid of the automatic rotation. Would it be possible for this effect to be handled/have parameters like your 2.5D Effect?
Image

The effect I am trying to achieve is the planet rotatation on X axis, but when being tilted a bit.
Like Tthis over here, but rotating. But I would like to handle the rotation on my own, via parameters+variables:
Image

Would it be possible for the Effect to have all those?
X offset/roll
Y offset/roll
Z offset/roll
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

Post » Mon Oct 17, 2016 8:57 pm

If you try to combine x rotation and y rotation to 1 you can obtain roll style fx;
This fx is animated so, if you change glsl timer while main loop is running, this will redraw the scene..
But i will make some change to do what you want...
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
61
S
20
G
29
Posts: 815
Reputation: 22,093

Post » Mon Oct 17, 2016 9:13 pm

Gigatron wrote:If you try to combine x rotation and y rotation to 1 you can obtain roll style fx;
This fx is animated so, if you change glsl timer while main loop is running, this will redraw the scene..
But i will make some change to do what you want...

Thats the thing. I want the planet to rotate on X axis, but be only a bit tilted (without the actual rotation) on Y axis. Like that picture I've posted above, where the planet have that angle on Y axis.

If I could have full control over the X/Y/Z angle/roll/offset - I could make it rotate on my own via variables and behaviours. Or make it stop. Or rotate any angle or direction I want.

Thats how I could do THIS via your 2.5D Platform Effect
Image
I need the same, just as a sphere instead of cube :P

Bottomline:
just enable me to control and edit the X/Y/Z angles and I'll be the happies hippo around hehe
Also, sorry for troubles Giga :( My english might be a bit vague today.
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

PreviousNext

Return to Effects

Who is online

Users browsing this forum: Lof and 0 guests