Questions tagged [decal]

39 questions
1
vote
1 answer

The depth buffer is ignored depending the X/Y position using an orthographic projection

Using libgdx, I want to discard occluded sprites using a depth buffer. To do so I use the provided Decal and DecalBatch with an OrthographicCamera and I set the z position manually. Depending my sprite position on the x and y axes, the depth buffer…
QuentinR
  • 115
  • 1
  • 11
1
vote
1 answer

Updating DecalGeometry vertices, UVs,

I am currently playing with ThreeJS decals. I have been able to put a beautiful stain on my sphere. Here is the piece of code I use to "apply" the decal on my sphere. (I have some custom classes, but don't worry about this. // Create sphere var…
Hellium
  • 7,206
  • 2
  • 19
  • 49
1
vote
0 answers

ThreeJS: Rotate group of objects with decals around center using pivot object

I am trying to rotate a group of objects using a pivot object from the center of the group. Assuming my group of objects are a bunch of car parts like chasis, body, wheels, engine each of which is a 3-D mesh. Each mesh has a decal that I am adding…
mayank gupta
  • 201
  • 2
  • 10
1
vote
1 answer

libgdx decal not drawing into stencil buffer

I'm working on 3d app in libgdx engine. I just figured out that decalBatch isn't drawing into stencil buffer. I wanned to make stencil masks for 3d world, and it's not working at all. This is the code which works for sprite batch, but it's not…
Veljko
  • 1,893
  • 6
  • 28
  • 58
1
vote
1 answer

How to rotate Decal over more then one axis at moment

I'm working on Libdx app using Decals. Decals are 2d sprites in 3d world. I have problem that when I say: decal.setRotationX(angle) everything works fine, but when I say: decal.setRotationX(angle); decal.setRotationY(angle2); The decal rotates…
Veljko
  • 1,893
  • 6
  • 28
  • 58
1
vote
1 answer

libgdx get size of sprite in pixels on the screen

I'm working on Libgdx project. It's basically 2.5D aproach, so I use Decals, and DecalBatch. There is also PerspectiveCamera, which I can manipulate (zoom in/out), and the decals are static. I'm having problem finding out what is the real size of…
Veljko
  • 1,893
  • 6
  • 28
  • 58
1
vote
1 answer

THREE.js decal on model

I'm using THREE.js to load a collada model. The model represents a hilly terrain. Right now the model has a repeating texture (grass) to it. What I'm looking to do is to add decals (not sure if this is the right nomenclature) to the model. Basically…
spassvogel
  • 3,479
  • 2
  • 18
  • 23
1
vote
1 answer

How to make a decal (How can I project a texture to a complex geometry?)

I'm currently working on my FPS game and going to make bullet holes(decals) but google doesn't help me at all. I cannot find the shader or any source that explains how to. If anyone did something like this one please help. Thanks in advance.
Wallstrider
  • 856
  • 1
  • 7
  • 22
1
vote
1 answer

Three js decals

How can I add a decal to a 3d OBJ model in three js?? var loader = new THREE.OBJMTLLoader(); loader.addEventListener( 'load', function ( event ) { object = event.content; scene.add(object); …
Projx
  • 11
  • 1
0
votes
1 answer

Three.js: how to create decals to simple world

I'm a beginner at coding in general. I was trying to create a mini shooting game where you can shoot decals (some sort of colour stain) into any object in the world. To give an illusion of shooting paint into ojects. I have used SimonDev's tutorial…
Raheel
  • 1
0
votes
1 answer

Simplest way to "decal" in GLSL

This is all done in C++ with GLSL... I have mesh A. I project another (flat) mesh onto mesh A, and it takes the shape of the part of Mesh A it collides with. This is how I'm putting decals onto a model. Now, I used a seperate shader to render the…
KiraHoneybee
  • 495
  • 3
  • 12
0
votes
0 answers

Unity3d hdrp decal material and vertex painting as transparency

I saw decal pack on youtube recently, fantasy of Rome or something like that, and they use vertex painting on decal to make some parts of it transparent. I work in hdrp pipeline, so I can use planes as decals with hdrp decal material and decal…
Tertium
  • 6,049
  • 3
  • 30
  • 51
0
votes
0 answers

How to append decales to animated object in Unity3D?

Please help me to understand, how to append decales (marks of blows of the sword or marks of bullets) to animated objects. 1) I thought that it should be gameobject, which i appending to collision gameobject (in contact.point), but in this case…
0
votes
1 answer

Unity Legacy Shader how to change decal from script

This is what I am using but I can't find anything online regarding how to go about changing out a decal. Let's consider that I have multiple Textures ex.(Tex1, Tex2, .. etc). How could I access the _DecalTex in script so I can assign different…
user3277468
  • 141
  • 2
  • 11
0
votes
0 answers

Why is my decal projector spawned incorrectly when it hits the wall and floor at the same time?

Unity version: 2018.3.2f1 When I throw my ball against the wall, a decal projection spawned on the spot where the ball collides. This goes well until the ball touches the wall and the ground at the same time. The decal projector is then spawned…