Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
134 user(s) are online (100 user(s) are browsing Forums)

Members: 1
Guests: 133

afxgroup, more...

Headlines

 
  Register To Post  

« 1 (2)
Re: 3D: another round of help need it with gl4s/ogles2/nova and shaders.
Home away from home
Home away from home


See User information
@Capehill
Created BZ for Nova : http://www.amiga.org/developer/bugreports/view.php?id=886

And added Daniel and you , so everyone can monitor it.

Will ask also Hans to have a look at that, maybe he will find some time for

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: 3D: another round of help need it with gl4s/ogles2/nova and shaders.
Home away from home
Home away from home


See User information
@Capehill

We start digging into issue with Monkey4 (black actors), and find out interesting detail.

See that shader: https://github.com/scummvm/scummvm/blo ... rs/emi_actorlights.vertex

(vertex one yes, not fragment one).

At the end of the shader we have that:

Color *= vec4(light, 1.0);

If we comment out this, we have such picture then:

https://kas1e.mikendezign.com/aos4/scu ... onkey4_no_color_light.jpg

And the same commented line, but this time picture from Win32:

https://kas1e.mikendezign.com/aos4/scu ... onkey4_win32_no_light.png

See, on our part, things go to the "blue/green" side, while should be none as on win32.

Also if we take a look on the door's knob, it's also BLUE, while should be YELLOW.

So all of this looks like the problem is somewhere in passing the fundamental color of the object ?

It just looks like something wrong in terms OF RGBA/ABGR or something. I.e. our "actor" are black because "full light on" from shader make them black, while should be other way around. And when we disable light, and can see colors going to "blue/green" side, mean something in terms of RGBA/BGRA or somethign wrong there ..


Edited by kas1e on 2022/3/28 17:16:05
Edited by kas1e on 2022/3/28 17:18:56
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: 3D: another round of help need it with gl4s/ogles2/nova and shaders.
Home away from home
Home away from home


See User information
@kas1e

endian issue perhaps?

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: 3D: another round of help need it with gl4s/ogles2/nova and shaders.
Home away from home
Home away from home


See User information
@Raziel
Yes, looks like this, and we found where, just we not very well understand if it issue in code, or in ogles2/nova.

And also it can be 2 bugs at once, but lephilousophe on it now, so soon should have something new about

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: 3D: another round of help need it with gl4s/ogles2/nova and shaders.
Home away from home
Home away from home


See User information
@Raziel
Turns out that this issue with "black actors" is in end indeed can be 2 different issues.

First one we find that there issues with colors when VBO with GL_UNSIGNED_BYTE is used, bug report created:

http://www.amiga.org/developer/bugreports/view.php?id=887

Second one (why actuall all actors are black): we didn't find wtf for now , but we know for sure at the moment that it something about "lighting" in vertex shader.


@Capehill
Btw, do you ever meeting with issues when VBO is used together with GL_UNSIGNED_BYTE ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: 3D: another round of help need it with gl4s/ogles2/nova and shaders.
Just can't stay away
Just can't stay away


See User information
@kas1e

Quote:

do you ever meeting with issues when VBO is used together with GL_UNSIGNED_BYTE


IIRC I have only used floats so I haven't experienced this issue.

Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project