Search the Community

Showing results for tags 'webgl'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 433 results

  1. ian

    New Level
  2. mircodj

    Pixi v4 and webgl code effect

    Hi, I wold like to implements one effect that I found in codepen: this is the link of the effects: codepen My question is : Is there one way to implements it in pixi.js. I'm new with this framwork, i tried to search somethink on google but I don't found nothink. Thanks in advanced
  3. mikhluz

    Verge3D for 3ds Max RELEASE!

    We are excited to announce that Verge3D, the complete, artist-friendly suite for creating interactive 3D web experiences, is now available for Autodesk 3ds Max users! Read the full article here!
  4. ian

    Added now
  5. mikhluz

    From 3ds Max to Webgl

    We will soon release a new product called Verge3D for Autodesk 3ds Max. Support for both Blender and 3ds Max can significantly expand the audience of 3D Web. Both versions will be compatible with each other so that you can use assets from different packages in one application. Follow the news, the release is expected very soon! Video Teaser
  6. FunFetched

    Watch out for gl.clear()!

    Hello, everyone! I just wanted to pass along some very important information that I just discovered regarding optimization that has been completely overlooked in optimization articles that I've read, and can have a huge impact on your apps! I have a game that pushes a pretty similar number of triangles and commands as the Sponza demo, but I wasn't enjoying anywhere near the same frame rate on slower systems. I fired up SpectorJS, cleaned up as much as I could in terms of draw calls and such, and wound up with a game that had fewer calls, fewer commands, and yet STILL ran a good deal slower than Sponza. However, there was one more metric that I had yet to take a close look at, and that was "clear()". I had 6 of them, while Sponza was using only 1. My game is a first-person-shooter that uses an additional camera to draw UI components, and on a different layer, so game geometry doesn't interfere with it. The player's hands and weapons are also drawn in a different rendering group for the same reason. It turns out, however, that for every new layer and group, Babylon kicks off a gl.clear() (which makes sense), and on systems with poor fill rates, this can absolutely wipe you out. In my case, the engine was clearing various buffers 6 times per frame, including multiple times per group/layer. Disabling Babylon's engine.prototype.clear() entirely made a world of difference in terms of FPS, though I do need at least 1 or 2 gl.clear() calls to accommodate my layering requirements. 6 is excessive and unnecessary, however, and I'm currently investigating ways to minimize that. Hopefully, I can do it all by simply modifying my code, but I suspect I might have to make some small engine modifications as well so I have greater control over when gl.clear() gets called, and just how many times. Edit: Just discovered scene.autoClear and scene.autoClearDepthAndStencil. Setting both to false takes care of... well... one of them!
  7. xoxxxoxooxox

    State of WebGL

    Two different WebGL implementations (chrome on the left, firefox on the right) working side by side on Linux x64. Note the subtle difference in colors.
  8. m9dfukc

    Progressive texture upload

    Hi, I am building a media installation (with Pixi.js v4) which requires to load my textures while the system is running (ideally with a constant 60fps). Therefore I am using createImageBitmap in a Webworker instance and then transfer the ImageBitmap via transferable object to the "main thread". In the main thread I am using this approach to pass the ImageBitmap to Pixi's Texture Loader which then ultimately uploads the texture to the GPU via gl.textImage2d. This all works fine as long as I am using small textures but now I wanna load bigger textures (1920x6000px) and the texture upload starts to take a decent amount of time (70ms). Now to my question: Has anybody created a progressive texture upload for pixi.js similar to this threejs library? If not, what would be the best approach to tackle this? Basically I have similar requirements as the poster in this thread (again unfortunately wrong framework Thanks, Andreas p.s.: I've started to look into pixi.js v5 ... seems like createImageBitmap is coming, yeah!!!
  9. louisAtome

    WebGL resize stage blinking on iOS

    Hello, On my iOS devices (iPhone 4S, iPad Mini) when I resize the WebGL renderer, the elements of my stage are briefly scaled with the new size of the stage before being re-render with their original size. I just want to resize the drawing zone without changing the size of the children. The behaviour only occur on iOS with the WebGL renderer. I've made a jsFiddle to show the problem : . To reproduce, just click several times on the resize button from an iOS device and you will see the red square changing size. Thanks in advance, Louis
  10. Ohayo! Description: Currently in my free time i'm working on crysis-like 2D shooter game prototype about aliens invasion (events between Crysis 2 and Crysis 3) and specialy trained humans in new version of nanosuit (less power of Prophet suit but more soldiers gets it). It will be multiplayer arena shooter, but for now i'm focusing on singleplayer training mission gameplay, and after i complete with fixing prototype with players feedback i'll start working on the core of the game which is multiplayer arena part. Game works smoothly on Google Chrome (game optimisation for Firefox is on future todo list) and was designed for gamepads (PlayStation and Xbox), but you can play with mouse and keyboard too. Right now aliens are very strong so gameplay is focused on tactics and hide&seek more than just running around and shooting everything you see ;P It runs on mobile too but there is no virtual controls (it's on future todo list) so don't ask me for it now Right now i'm asking you guys to tell me how does controls feels and how much time you had to play to destroy all 4 alien bases (big green dots on minimap, you can kill them only with 2 grenade shots per base :P). Play Online (please, use Chrome): Tech used: - Oxygen Core (my html5 game engine toolset based on best Unity and Godot concepts mixed with latest best html5 apis); - ES7 with babel transpiler; - Webpack for game bundling and live development; I don't know what i should say more about techs, because everything that is there, it is those 3 things If you're interrested in something more about tech, and i will be happy to tell everything you ask ------ BTW. I want to publish topic/article about game engine used here - which subforum should i use to place that kind of topic?
  11. Calling all HTML5 game developers! Here at Goodboy Digital we are looking for developers with a passion for HTML5 game making to come and join a team who really love what they do. If you want to kick out some of the best HTML5 games going with us and help work on cool R&D projects like Pixi.js (and some secret ones too!) then please apply and show us what you got Apply here: Merry Christmas! Mat
  12. I've been working with PIXI filters recently. If I apply the filter to a sprite with alpha, I've noticed that somewhere along the line the alpha gets premultiplied. For example, I have a test texture with a pixel saved as [255, 255, 255, 128]. When I sample the texture, in a filter Instead of [1.0, 1.0, 1.0, 0.5] the result is [0.5, 0.5, 0.5, 0.5]. How can I turn off this premultiplying behaviour? I've tried 'transparent: false' and 'transparent: "notMultiplied" ' in the webGL renderer settings, but neither of those seemed to make any difference?
  13. Hi, I want to create a PIXI.Texture from a WebGL texture. Unfortunately, I have not managed this yet. My WebGL texture is created in the same WebGL renderer context as Pixi with "", this works. Then I tried to hang the texture on an existing PIXI.Texture: sprite.texture.baseTexture._glTextures[app.renderer.CONTEXT_UID].texture = myWebglTexture Even without the above line of code, my WebGL texture is inserted into the canvas element and always swaps the texture of the last sprite loaded in Pixi (Change-Texture.mp4). Unfortunately I cannot swap my WebGL Texture with a texture of a specific sprite :-( This approach has unfortunately not worked: Does anyone have an idea? Thank you for your support!
  14. Helo i have a list of element populated form user database and i want to make their 3d representation in webgl or babylon.js I want to changing the object color depending to the user data from list I mean to set color green for object were there id or name are present in this list and set red for those absent How can i make this please ?
  15. Sentinel

    Habbo WebGL Game Engine

    This is strictly for educational purposes only Since Flash is pretty much being deprecated in most browsers so is Habbo. Since there's retro versions, most of Habbo's assets are available on the internet. I've been using Pixi for now to create a 2D loading screen, which I did successfully. Then it occurred to me that Pixi is mostly just a renderer, and doesn't support 3D the same way as Three or Babylon does. Problem is that, I found coding of 2D UI elements in both Three and Babylon really difficult compared to Pixi. In Habbo it's really minimal what is going to be 2.5D / 3D as only the rooms, avatars and furni are, the rest is basically 2D GUI. So this is how I've done it for now Some questions: Is Habbo; 2D with projecting, 2.5D or 3D, and would it be enough to use Pixi only? If no: Would it be possible to extend Pixi with Three or Babylon when there's going to be rendered 2.5D /3D objects? If it's truly 2D with projecting, should I just use Phaser instead? What would be best to do?
  16. scofieldly

    webgl debug by firefox

    Hi all, currently I'm read master RICH's tutorial for improve performance by batch texture. when I use the firefox dev tools canvas capture in the article it works when I use canvas renderer, but when I change to webgl, it can not capture the analysis. FF shows error and break the app. TypeError: methodSignatureEnums is not a function-----------------call-watcher.js:168:34 I tried many version of FF and phaser. none of them can work. is there anyone tried this before and works. please give me a workable FF version, many thanks
  17. mikhluz

    The Verge3D engine First Release!

    The first version of Verge3D is out! With Verge3D you can publish your 3D models on the Internet, create high-quality and smart 3D configurators, product presentations, e-learning applications and games. Use PBR-materials and the shader node editor to impress your audience with photoreal graphics. Design interactive scenarios with Puzzles, a next-gen visual programming tool. It is time to create interactive visuals for your online projects! Press release: #verge3d #3dweb #webgl #javascript #b3d #soft8soft #puzzles
  18. The best way to learn is to practice as much as possible. Share your examples here. What browsers WebGL is supported, you can see here: WebGL 1.0: WebGL 2.0: A brief description of what WebGL is, and references to the specifications: Tutorials: WebGL 1.0 Fundamentals WebGL 2.0 Fundamentals This book is about WebGL 1.0: WebGL Programming Guide Source Code for the book: Source Code for the book on JSFiddle: Chapter 02. Your First Step with WebGL ch02/HelloCanvas: ch02/HelloPoint1: ch02/HelloPoint2: ch02/ClickedPoints: ch02/ColoredPoints: Chapter 03. Drawing and Transforming Triangles ch03/MultiPoint: ch03/HelloTriangle: ch03/HelloQuad: ch03/HelloQuad_FAN: ch03/HelloTriangle_LINES: ch03/HelloTriangle_LINE_STRIP: ch03/HelloTriangle_LINE_LOOP: ch03/TranslatedTriangle: ch03/RotatedTriangle: ch03/RotatedTriangle_Matrix: ch03/ScaledTriangle_Matrix: Chapter 04. More Transformations and Basic Animation ch04/RotatedTriangle_Matrix4: ch04/RotatedTranslatedTriangle: ch04/TranslatedRotatedTriangle: ch04/RotatingTriangle: ch04/RotatingTranslatedTriangle: ch04/RotatingTriangle_withButtons: Chapter 05. Using Colors and Texture Images ch05/MultiAttributeSize: ch05/MultiAttributeSize_Interleaved: ch05/MultiAttributeColor: ch05/ColoredTriangle: ch05/HelloTriangle_FragCoord: ch05/TexturedQuad: ch05/TexturedQuad_Repeat: ch05/TexturedQuad_Clamp_Mirror: ch05/MultiTexture: Chapter 07. Toward the 3D World ch07/LookAtTriangles: ch07/LookAtRotatedTriangles: ch07/LookAtRotatedTriangles_modelViewMatrix: ch07/LookAtTrianglesWithKeys: ch07/OrthoView: ch07/LookAtTrianglesWithKey_ViewVolume: ch07/OrthoView_halfSize: ch07/OrthoView_halfWidth: ch07/PerspectiveView: ch07/PerspectiveView_mvp: ch07/PerspectiveView_mvpMatrix: ch07/DepthBuffer: ch07/Zfighting: ch07/HelloCube: ch07/ColoredCube: ch07/ColoredCube_singleColor: Chapter 08. Lighting Objects ch08/LightedCube: ch08/LightedCube_animation: ch08/LightedCube_ambient: ch08/LightedTranslatedRotatedCube: ch08/PointLightedCube: ch08/PointLightedCube_animation: ch08/PointLightedSphere: ch08/PointLightedSphere_perFragment: ch08/PointLightedCube_perFragment: ch08/LightedCube_perFragment: Chapter 09. Hierarchical Objects ch09/JointModel: ch09/MultiJointModel: ch09/MultiJointModel_segment: Chapter 10. Advanced Techniques ch10/RotateObject: ch10/PickObject: ch10/PickFace: ch10/HUD: ch10/3DoverWeb: ch10/Fog: ch10/Fog_w: ch10/RoundedPoints: ch10/LookAtBlendedTriangles: ch10/BlendedCube: ch10/ProgramObject: ch10/FramebufferObject: ch10/Shadow: ch10/Shadow_highp: ch10/Shadow_highp_sphere: ch10/OBJViewer: ch10/RotatingTriangle_contextLost: Gifts gifts/Particle: gifts/Printf: gifts/SpecularCube: gifts/TextTexture: gifts/ThreeDUI: gifts/Wave: gifts/WorldCoordinateSystem: appendix/CoordinateSystem: Appendix appendix/CoordinateSystem_viewVolume: appendix/LoadShaderFromFiles:
  19. flerokoo

    [WEBGL] 3D Solitaire

    Wanted to show you a game i've just finished! Nothing unusual — just a classic klondike solitaire. Little bit too enthusiastic description from famobi catalog: Immerse yourself in this classic solitaire card game featuring stunning 3D graphics! Set in a mysterious ancient temple, your task is to move all cards onto the four foundation piles, sorted by suit and rank in ascending order from Ace to King. On the field, cards can only be sorted in descending order alternating colors. Choose between two card designs, a 1 and 3 card mode and the position of your deck for your convenience. Can you achieve a high score? Here's the link:
  20. louisAtome

    WebGL filter texture overlapping

    I use a custom filter in pixi.js for blur but when I use the filter on different objects, the texture of my biggest object overlaps on smaller objects. After some research, I think it's linked to the temporary RenderTarget I use to apply my filter on the 2 axis. First, it seems that the clear parameter of the function filterManager.getRenderTarget() is ignored when I read the source code of the method. But anyway, even if I manually call the clear() method of the RenderTarget at the end of the filter application the result is the same. But if my 3 objects have different dimensions (let say 100x100, 200x200 and 400x400) in order to get a different RenderTarget for each, the rendering is OK. Any idea ? Thanks
  21. PlayingInCanvas

    Tiled Terrain Manager

    Hi! This is a template project, for PlayCanvas, that provides a complete tiled terrain system based on heightmaps and colormaps. Example build: Some of its features:- Terrain generator from tiled heightmaps. The heightmaps and colormaps (splatmaps) have to be provided in a specific named notion. Included there are two sample terrain projects created with WorldMachine.- Texture generator from tiled colormaps (splatmaps). The user can provide up to 4 textures and the shader mixes them on the terrain based on the channels of the colormap (R,G,B and Alpha).- All methods included in the generators are run using an async loop, which splits them between the frames. This allows generation, rendering and texturing to be done during run-time creating only momentary pauses.- A special collision mesh can be created if required with a smaller subdivision count than the rendered model for physics/collisions.- Normals are fixed and re-calculated on border, during generation to avoid seams between the tiles.- A visibility manager can be configured to render only a specific number of tiles based on the active camera. The tiles get visible/hidden based on the position of the camera on the terrain. If memory is managed correctly this allows for infinite terrain size/tiles.- A sample actor is provided in the project (named Aj), with a simple 3rd person controller.- A random terrain distribution script is provided based on distribution maps which can be painted per tile or per the complete terrain. PlayCanvas has a batching API in the works which will allow combining multiple meshes to reduce draw calls, this will increase greatly performance especially when objects like flora are distributed on the terrain. Current version is v1.15 and the project can be found here. A tutorial on how to use this can be studied here.
  22. Instanced Particles with Dynamic refraction mapping and scripted path, water surface reflection mapping with noise height map, sprite replication with scripted positioning, all composited into one animation scene. Enjoy the magic of manipulating water.
  23. charlie_says


    I updated my iPhone to the new ios and immediately, my game's performance dropped... It was still ok, but noticeably not as smooth (I have an iphone SE which I appreciate is an older/weaker spec device.) What I found was that forcing the game to run on canvas fixed the issue (it also removed the flickering that I'd noticed on my kid's Kindles which are definitely older and very much weaker in spec.) For this game, it's fine, there's nothing that needs to be WebGL, but moving forward (i.e. next game) I was interested in using filters &c. So, is there anything I should be looking at from a code point of view to avoid poorer performance on older devices? Or, have we got to the point where trying to support legacy devices is impossible? Any other thoughts?
  24. Instanced particles with dynamic refraction and heat distortion effects. More showcase videos can be found here.