Reputation
496
Top tag
Next privilege 500 Rep.
Access review queues
Badges
5 18
Impact
~61k people reached

  • 0 posts edited
  • 0 helpful flags
  • 31 votes cast
1d
asked how do i drop a block into grid?
Apr
17
accepted reuse texture between quad objects
Apr
17
comment reuse texture between quad objects
This is the problem I am running into when I try to share meshes: gamedev.stackexchange.com/questions/119997/…
Apr
15
comment reuse texture between quad objects
if I share meshes between a alphabet and i move one of the object, will it not reflect in the position of all the other objects representing the same letter ?
Apr
15
comment reuse texture between quad objects
Thanks a ton for taking the time to answer with such great detail. It was good learning. While I was waiting for your response, I did something similar to choice 2. I create a quad Prefab + attach a material to it with the entire texture on it. When I call Instantiate(quadPrefab), I set the uv to correct values. Will this cause the material to be shared or duplicated across each (100) quads. How can I share a material between all these quads ?
Apr
12
comment reuse texture between quad objects
Yes, each Quad is a prefab and has a MeshRenderer. If I understand this correctly, you are suggesting to create a Texture that is shared by all the blocks. Once a block is instantiated, I somehow set the texture and its offsets into the big texture ? Also, I'm looking at it from minimizing draw calls/performance. If I have 100 objects, we will have 100 draw calls here ? Will they all share texture data or will unity make copies internally ?
Apr
12
comment reuse texture between quad objects
Let us continue this discussion in chat.
Apr
12
revised reuse texture between quad objects
added 302 characters in body
Apr
12
revised reuse texture between quad objects
added 15 characters in body
Apr
12
comment reuse texture between quad objects
Thanks @DMGregory. Although, if it's not too much to ask, I'd still like you to elaborate on the global mesh approach. I'd like to learn the technique
Apr
12
revised reuse texture between quad objects
added 74 characters in body
Apr
12
comment reuse texture between quad objects
@DMGregory : PS, these letters are not stationary and each are moving differently. Not sure if the universal quad mesh solution will still apply ?
Apr
12
comment reuse texture between quad objects
each letter is 256x256. 8 columns x 4 rows ( + extra unused space). 2048x2048 texture. i65.tinypic.com/2l95klg.png
Apr
12
comment reuse texture between quad objects
about a hundred, but then this will eventually run on a mobile, so may need to squeeze the code for as much performance as I can. Can you please elaborate on both methods @DMGregory ?
Apr
12
asked reuse texture between quad objects
Jul
9
awarded  Self-Learner
Jul
2
awarded  Curious
Sep
22
awarded  Popular Question
Aug
28
awarded  Notable Question
Jan
14
awarded  Yearling