iliveisl

 

multiple textures on one image

7 comments

i’ve been wanting to revisit an old post (april 10th, 2010) which is still as applicable today as it was then

when i run into an object that needs an imported texture, i tend to think of each texture as one image, but you can place several textures on one image if it makes sense from a file size perspective (both in actual pixel size of the image and kilobytes)

the original post talked about doing shipping containers and this post will reiterate that and also mention that these containers are on the new enerhax.com freebie site

shipping containers, books, coffee cups, toasters, pizza boxes, shoe boxes, and product boxes are good candidates for this approach. there are advantages for small items like books (or like a shipping container which can look beat up and use a lower quality texture) to use multiple textures on one image file – it saves on file size and on the number of files in your inventory

for example, a book has a front cover, back cover, spine, and closed pages and you could easily fit on one 256 pixel image and retain decent quality

for this post (and the old), i placed the textures of a shipping container on one file – the top & bottom, the two sides, the door, and the end. this one it is an odd size because at 256 it really broke down but it is smaller than a 512. the container textures are right around 50 kilobytes which is small considering each is really four textures

the old post talks about the base image in terms of percentage and the images below show the actual settings in the edit dialogue (plus making a container with an open door that you can enter – like the one in a rocket graveyard in Enclave Harbour to play hide and seek in) =)

it’s easy to do and something to keep in your bag of tricks as an efficient way to organize inventory items for those items where this approach makes sense

if you have a need for dimensionally accurate shipping containers, get them as freebies including the textures (the door sections are stretched out for sake of the tutorial)

containers_001

hiding spot behind 55 gallon drums inside the green container! (no peeking on the mini-map) =)

texturetut01

texturetut02

texturetut03

texturetut04

texturetut05

texturetut06

Twitter Tumblr Digg Reddit Stumbleupon Delicious Facebook Plusone Pinterest Linkedin Tumblr Posterous Snailmail

written by Ener Hax

July 10th, 2012 at 7:18 am

posted in freebies,OpenSim

tagged with

7 comments to 'multiple textures on one image'

subscribe to comments with RSS or trackBack to 'multiple textures on one image'.

  1. I remember using this technique for a custom laptop I built in-world. When you have a lot of odd shaped textures or ones that aren’t going to use up a full square (512, or 1024) then it makes sense to do this. Thanks for the post! It’s excellent information for builders :)

    Aeonix Aeon

    10 Jul 12 at 12:48 pm

  2. Excellent advice. We use this in mesh all the time, but as you pointed out, the technique works well in prims, too.

    Ferd Frederix

    10 Jul 12 at 4:03 pm

  3. Hey, just popping in to say thanks for that face animation script you posted awhile back. I was able to hack it so it works with my silly NPCs . I also built a loop into it so they can now make a crude talking animation.

    Araxie Longoar

    10 Jul 12 at 6:12 pm

  4. great object Aeonix! laptops, phones, and small items can use smaller textures and doing many textures on one file for your laptop is a brilliant and efficient thing =)

    thanks on the mesh insight Ferd, i have yet to do mesh in OpenSim and that’s good to know that it’s a nest practice for meshes =)

    omg, you actually found the face animation post! that was a long time back! for some reason, i lose the script from my face piercings (where i placed it). i have not retried with 0.7.3 and maybe that is now fixed. so you have some happy NPC faeries Araxie? =D

    http://iliveisl.com/smile-no-really-smile/

    AND

    http://iliveisl.com/face-it-you-need-facial-expressions/

    Ener Hax

    10 Jul 12 at 8:33 pm

  5. ELQ gave me a tip about “internal animations” (ones that are part of the system already) over at gridcache.net . Until then I didn’t know they existed, and thought the face morphs were all done with standard animations that I just couldn’t find. So I was googling for info on that when I found your face expressions script and post. My NPCs wear it as an attachment. OpenSim 7.4 empowered some of the things that make them work with it. Like NPC auto permissions for worn scripts, and the ability for NPCs to chat on other channels not just the public one. I hope to have a small something-silly ready to show off in 2 to 3 weeks (If I don’t get loaded with too much work stuff).

    Araxie Longoar

    11 Jul 12 at 8:28 am

  6. dang Araxie! that sounds so awesome! so your NPCs can smile and all that stuff? sheesh, i am in the stone age with any skillz like that!

    i can’t wairt to see your work! i think you will inspire many others and also move forward the possibilities that people will see about the power of OpenSim!

    good luck! =)

    Ener Hax

    11 Jul 12 at 8:52 pm

  7. […] written about this in the past (old post | post rebaked) but it’s a good thing to reinforce and handy for n00bs […]

leave a reply - add your thoughts

you can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>