Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
497 views

How to add a texture inside a specific area in a canvas in javascript?

How could I draw a texture between the bottom of the canvas and below the green line, in javascript? I dynamically add coordinates in a canvas, then draw lines between these points. EDIT : Solution: ...
Leo_xfh's user avatar
  • 11
0 votes
0 answers
11 views

Converting single number to tileatlas coordinates [duplicate]

I'm trying to make a 2d tilemap based platformer, but I don't know how to convert single numbers to a tilemap coordinate. Imagine a map: map = [[10, 12, 24],[12, 14, 5],[13, 011, 19]] (numbers are ...
Coenicorn's user avatar
0 votes
1 answer
2k views

Implement spherical mapping for texture coordinates

I am using a texture of a world map and I am trying to put that image on a sphere made up of many triangles. Each triangle has points a,b,c with their own (x,y,z) coordinates. I am trying to use the ...
prodigystyle's user avatar
0 votes
0 answers
81 views

Making a radial gradient visual range

I am currently working on a project in p5JS. So lets say i've got a texture and top of it, i've got a radial gradient that is overlapping on the texture. I want to make this like a cool vision range ...
Molesz's user avatar
  • 11
1 vote
1 answer
5k views

"RENDER WARNING: there is no texture bound to the unit 0" When not Rendering Texture

I have a webgl program that sometimes renders textures, but mostly renders triangles or lines. When I am not rendering a texture, webgl gives the warning, "...
lmat - Reinstate Monica's user avatar
3 votes
2 answers
566 views

Diamond square texture: too-diamond-ish?

I wrote a small JavaScript implementation of the Diamond-Square height map/texture algorithm and the result is much more industrial-looking than I expected. I can trace a diamond pattern throughout (...
Ben Wiley's user avatar
2 votes
4 answers
3k views

How can I scale up sprites but maintain visual quality?

I am using WebGL. I have an isometric grid which contains tiles. Some have 'tree' sprites on them. If I have my tree sprite loaded from a texture with a fixed resolution, when I zoom into the grid (...
Jordan's user avatar
  • 123
1 vote
2 answers
973 views

Dynamic Textures

I am pretty new to this 3D designing and animating, and as an indie developer I need to do everything on my own I have created this simple box character And I want to texture it, have looked around ...
SAFAD's user avatar
  • 215
7 votes
2 answers
3k views

UV texture mapping with perspective correct interpolation

I am working on a software rasterizer for educational purposes and I am having issues with the texturing. The problem is, only one face of the cube gets correctly textured. The rest are stretched ...
Spectraljump's user avatar
2 votes
0 answers
84 views

How to work with edge Texture [duplicate]

Im not sure if i use the right terms, but im not able to find something to start with. Im trying to develop a little HTML5 game. I have a ground with a texture and now I want to make a surrounding ...
fehrlich's user avatar
  • 121