Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Sprites, Spritesheets and Materials
Post Flair (click to view more posts with a particular flair)
Post Body

Hello. This is absolutely a noob question, but I can't seem to find a straightforward answer online!

I am playing around with 2.5D (3D world, 2D sprite objects), having previously released a commercial game using the 2D asset pipeline (e.g. SpriteRenderer).

In order to have my objects cast shadows, I cannot use a SpriteRenderer and instead I'm using a MeshRenderer. No problem. This also means I need create materials to apply to the renderer. Also not a problem.

My question is, do I need to import/create a separate sprite/texture for every image that I want to use, and then also a separate material for each? Is there a better way to do this?

I am used to working with spritesheets and slicing these into individual images, which I can then apply to the SpriteRenderer independently, but MeshRenderer requires a material and it seems like I cannot apply individual slices of a spritesheet to a material; I have to apply the whole sprite image.

I'm curious as to how others have tackled this, as creating my character and environment spritesheets as individual images is much harder than creating combined tilesets!

Also, I know that I can use the material Tiling and Offset values to apply only a slice of a texture to the material, but this seems to be universal and cannot be modified per instance for example. Am I going about this the wrong way?

Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,183
Link Karma
1,318
Comment Karma
722
Profile updated: 6 days ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago