3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Sprite as mask question?  (Read 211 times)

« on: March 13, 2014, 03:09:25 PM »
Hey guys, I made this mask sprite for an astronaught helmet, looking through.
I could see through the inside non-glass part.
I want the sprite to only let the glass be see-through, how do I do that?
« Reply #1 on: March 13, 2014, 03:12:40 PM »
Use the alpha channel.

Simply edit the sprite in any image editor other that MS Paint (I'd recommend Pain.NET) and give the desired parts some opacity.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #2 on: March 13, 2014, 03:19:30 PM »
You could have two sprites - one with the glass scratches, rendered with burnout or somesuch, and another with just the helmet sprite, with a transparent region in the middle to represent the glass part.

Alternatively, you could take the astro helmet test v3.jpg add a degree of transperancy (use a greyscale-to-alpha plugin in some photoshop software to maintain the scratches) to the glass areas.

I hope that made sense!

Cheers,

George.
« Reply #3 on: March 13, 2014, 03:33:06 PM »
Use the alpha channel.

Simply edit the sprite in any image editor other that MS Paint (I'd recommend Pain.NET) and give the desired parts some opacity.
I have paint.net, Can I save in dds. file format?

Also, thanks georgio123 I had an idea similar to that.
« Reply #4 on: March 13, 2014, 05:58:29 PM »
You could have two sprites - one with the glass scratches, rendered with burnout or somesuch, and another with just the helmet sprite, with a transparent region in the middle to represent the glass part.

Alternatively, you could take the astro helmet test v3.jpg add a degree of transperancy (use a greyscale-to-alpha plugin in some photoshop software to maintain the scratches) to the glass areas.

I hope that made sense!

Cheers,

George.
or..or..or you could use a skinmesh that follows the camera thats what I do for my screen dust.
I be trippin!
« Reply #5 on: March 13, 2014, 06:31:07 PM »
Use the alpha channel.

Simply edit the sprite in any image editor other that MS Paint (I'd recommend Pain.NET) and give the desired parts some opacity.
I have paint.net, Can I save in dds. file format?

Also, thanks georgio123 I had an idea similar to that.

Yes, Paint.NET can save in DDS format.
You should just be able to delete the "glass" or use the transparency setting in Paint.NET and make it see through completely, or see-through-ish.
« Reply #6 on: March 13, 2014, 09:51:39 PM »
i use paint shop pro... create a mask layer and save as .png...

the transparent areas i paint black (0,0,0)...

--MIke
« Reply #7 on: March 13, 2014, 10:13:55 PM »
Thanks guys, check out the results!
Pages: [1]