IrrNaCl - Irrlicht port for Google Native Client

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

@Hybrid
I tried printing the complete shaders that are loaded. And I didn't see any problem in the shader data loaded. I also compared the string printed with shader files and they were identical.

My guess: was there a problem in shaders in build 4073? I see some recent updates to OpenGL ES 2.0 driver and shader related files.
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by Nadro »

Yep, OGL ES2 builtin shaders are bugged, eg. precision of the same uniform was different in vertex and fragment shaders, but there are others issues too. On my iOS platform only fixed pipeline vertex shader seems to work, so all objects are white. Currently i'm working on other stuff related to Irrlicht, but in the next week I'll fix OGL ES2 shaders.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

@Nadro
I tried the build 4073 on my PC with OGLES 2.0 emulator and it worked perfect.

Do you mean, even the latest build version has this issue? I am wondering if I should update to the latest build...
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by Nadro »

I mean iOS simulator, which has got more rigorous requirments to a GLSL specification, both older and the latest version of OGL ES2 fixed pipeline shaders have minor bugs, but on some emulators works fine. As I know AMD cards support OGL ES2 just require some trick with a loading EGL methods. In future will be nice to have support for it in a Irrlicht.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

I just updated all code to the latest build OpenGL ES branch. I still have the same problem with shaders.
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

Now, am ready with everything else, other than fixing the white washed texture bug in shaders.

I've also fixed animation problem. Stupid me... forgot to call device->run(). :)
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by Nadro »

Nice, as I said bug in a shader will be fixed soon. To be sure that Your problem is caused by a shaders bug, please change an output fragment color to an other color than white.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

@Nadro
Am a beginner shader programming (wrote Normal Mapping shader support for iSGL3D engine sometime back). With my knowledge am trying to fix the shader myself, however, I'll post my progress updates so it might help you when you fix it.

1) I tried gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); in the last line of the shader and the mesh looked red. So like you guessed, the problem is with shaders.
2) I also tried gl_FragColor = texture2D(uTextureUnit0, varTexCoord[0].xy); but all that I got is a grey mesh. Which means the texture is not correctly passed to the shader.

Further investigation, am trying to check the texture passing code.
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

Hi everybody,
I could finally fix the shader problem that did not pass the texture coords to the fragment shader properly. The shader fix is just Temporary, I'll discuss with Nadro to decide on the final fix in couple of days. Finally, I saw Sydney waving her hands after months of struggle.

Now Irrlicht is on a new platform. Am happy that I could finally contribute something to my favorite Open Source 3D Engine. :)

The source is updated in my source rep. You can check the github link in the first post. If you need help in setting up IrrNaCl, you can contact me. Also if are looking for a team to port your game and help you take it to Chrome Web Store, you can hire our team (Smackall Game Pvt Ltd).

Anyway, contact me here or nharishankar at gmail.

:D :D :D :D :D :D :D :D :D :D :D :D
Image
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by Nadro »

What can I say... really great job :)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
link3rn3l
Posts: 81
Joined: Wed Nov 15, 2006 5:51 pm

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by link3rn3l »

thx excellent work..
Bennu (Best 2d and 3D dev-tool)
http://bennupack.blogspot.com

Pixtudio (Best 2D development tool)
http://pixtudiopack.blogspot.com

Bennu3D(3D Libs for bennu)
http://3dm8ee.blogspot.com/

Colombian Developers - Blog:
http://coldev.blogspot.com/
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

I've just uploaded the 32-bit demo in the server. You can check the link here.

Irrlicht Demo #1
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
link3rn3l
Posts: 81
Joined: Wed Nov 15, 2006 5:51 pm

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by link3rn3l »

NEW NATIVE CLIENT - beginners pack - newbies pack - only install and use.. +++ easy

only to beginners users - only install and ready..

http://bennugdweb.googlecode.com/files/ ... 120920.zip

http://code.google.com/p/bennugdweb/



----------------------------------------------------------------

Steps to use this KIT:
*--------------------------*
1. install
2. restart PC
3. Enjoy ...



aVAILable a new NATIVE CLIENT - Beginners Pack...

includes:
- nacl-mounts
- irrlicht example by codetiger + irrlicht all ready to use ...
- others libs
* python 2.7

soon:
- SDL library
- SDLMIXER and others
- SDL examples
Bennu (Best 2d and 3D dev-tool)
http://bennupack.blogspot.com

Pixtudio (Best 2D development tool)
http://pixtudiopack.blogspot.com

Bennu3D(3D Libs for bennu)
http://3dm8ee.blogspot.com/

Colombian Developers - Blog:
http://coldev.blogspot.com/
codetiger
Posts: 103
Joined: Wed May 02, 2012 9:24 am
Location: Chennai, India
Contact:

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by codetiger »

Happy to see my work is useful for someone. Meanwhile, am planning to release new version which will remove many changes I made to Irrlicht filesystem. I tried adding Posix style filesystem implementation wrapper and Irrlicht was happy to load without any trouble. Planning to update latest Irrlicht svn changes. :)
IrrNaCl - Irrlicht Port for Google Chrome Native Client - Demo

Iyan 3D - Make your own 3d animation using your iOS Device
Mequa
Posts: 13
Joined: Fri Jul 07, 2006 7:39 pm

Re: IrrNaCl - Irrlicht port for Google Native Client

Post by Mequa »

Hi, is it possible for IrrNaCl to grab the mouse from a Chrome window/tab, such as when using the built-in Irrlicht FPS camera or similar user-defined cameras?
Post Reply