DavidBene
|
  |
| Joined: 26 Nov 2014 |
| Total Posts: 163 |
|
|
| 27 Dec 2014 08:54 AM |
I want to display a section of a shirt image on a decal; lets say, for example, just the front torso part. Is there any way to do this?
The decal will be on a scaled down block mesh, so SurfaceGuis will not work. |
|
|
| Report Abuse |
|
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 27 Dec 2014 01:06 PM |
| You would need to get the Image from the shirt and copy/paste just the section you want into a program like Paint or Paint.net. Then just upload the section you selected as a Decal on your Develop page. |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 27 Dec 2014 01:13 PM |
| There really should be, but sadly no. You may be able to do some hackish stuff with ClipsDescendants to get only a part of the image showing, but that's too much effort for me. At that point I'd rather just upload several different images. |
|
|
| Report Abuse |
|
|
vividtrip
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 2890 |
|
|
| 27 Dec 2014 01:37 PM |
There is a way, but it's difficult.
Create a SurfaceGui on your part, and insert an ImageLabel into it. Be sure to set your SurfaceGui's Face property correctly.
Get your shirt. Minus one from the Id of the shirt to get the texture-wrap thing. For example, if I wanted to use this (http://www.roblox.com/--item?id=170240461) shirt I would do 170240461 - 1 = 170240460, and set that as the Image of your ImageLabel.
Now, you want to display the front face of the shirt. So go to your ImageLabel and set the ImageRectOffset to 231, 74 and the ImageRectSize to 128, 128. Viola, you have the front of your shirt. There are different values for each face of your shirt, so it's sort-of tricky. It's probably easier to just make a decal, though! |
|
|
| Report Abuse |
|
|
DavidBene
|
  |
| Joined: 26 Nov 2014 |
| Total Posts: 163 |
|
|
| 27 Dec 2014 03:38 PM |
@Vivid
Surface Guis don't scale with Meshes like decals do :\ |
|
|
| Report Abuse |
|
|
DavidBene
|
  |
| Joined: 26 Nov 2014 |
| Total Posts: 163 |
|
|
| 27 Dec 2014 03:45 PM |
The reason why I am asking is because I want to find a way of displaying shirts on character models that I've scaled down using meshes. There seems to be no way of doing this :\
(screenshot of what I'm talking about) http://www.roblox.com/Screenshot-item?id=197183277 |
|
|
| Report Abuse |
|
|
| |
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 28 Dec 2014 02:08 AM |
Or just do it the way I recommended. It would require 3 decals cut from the original shirt image for the front, back and top if you want, but the left, right and bottom won't be required due to the arms and legs covering them up. |
|
|
| Report Abuse |
|
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 28 Dec 2014 02:24 AM |
Or, since you're working with native scale parts, you could also just modelresize the NPC.
Eg: 5f6682e940c317f429cff69f867b1207 @ gyazo |
|
|
| Report Abuse |
|
|
DavidBene
|
  |
| Joined: 26 Nov 2014 |
| Total Posts: 163 |
|
|
| 28 Dec 2014 06:58 AM |
@powertool
That could work, except the smallest size a block can be is 0.2x0.2x0.2 (To my knowledge). That is still too large for what I need this for. |
|
|
| Report Abuse |
|
|
DavidBene
|
  |
| Joined: 26 Nov 2014 |
| Total Posts: 163 |
|
|
| 28 Dec 2014 07:10 AM |
@Scottifly
I am unable to upload any decals for this purposes. The shrunk down models are generated from a script that I made. The idea is to shrink down models to about 1%-2% their original size, so that I can place it in-front of the player's camera to make it look like that it's a part of a Gui. |
|
|
| Report Abuse |
|
|
vividtrip
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 2890 |
|
|
| 28 Dec 2014 07:19 AM |
I'm not too sure, but would this help at all? http://www.roblox.com/Roblox-3D-GUI-Module-item?id=159576724 |
|
|
| Report Abuse |
|
|
DavidBene
|
  |
| Joined: 26 Nov 2014 |
| Total Posts: 163 |
|
|
| 28 Dec 2014 07:57 AM |
@vivid
I looked into that script. All it deals with is keeping the object in-front of a specific Gui. I've made my own version this already: https://www.youtube.com/watch?v=-HMyWeNOXio
Their solution to the problem is not the one I'm looking for. They move the models away from the camera to make it appear smaller, but I don't want this since it will cause clipping issues.
My version shrinks the models so there is no problem with clipping. However my problem is that now I'm only limited to decals, since graphics like Shirts & Pants don't show up on meshes and SurfaceGui's don't scale with meshes for some reason. :\
|
|
|
| Report Abuse |
|
|