Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
A Few Questions; Regarding Drawing
Topic Started: Nov 24 2007, 02:41 AM (149 Views)
n00b
Newbie
[ * ]
First, how would one set the transparency of a texture? With a normal gamemaker game, you simply check a box, but since the textures are stored externally, I am at a loss.

Second, how would you go about allow multiple resolutions? With the 'Run at full screen' box checked, it does run at full screen, but no scaling occurs - there is simply a black border. How would you overcome this?

Finally, how could you draw a model above everything else? For example, the weapon in a FPS.

Thank you, to anyone who might help me with these.
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
Hi and welcome to the Ultimate 3D community :)!

n00b
Nov 24 2007, 02:41 AM
First, how would one set the transparency of a texture? With a normal gamemaker game, you simply check a box, but since the textures are stored externally, I am at a loss.

You can set the transparency in the texture file itself:
help file
 
how to make textures transparent. There are two ways to do this. The best one is to use a file format that supports transparency such as tga or png. The Gimp (GNU Image Manipulation Program) supports these file formats. It's a great open source image editing program. If you prefer using other file formats you can get transparency anyway. Simply use the transparency color which is (r=0; g=128; b=64). All pixels that have exactly this color will be set to transparent by Ultimate 3D.

And you can additionally change the global transparency of the texture from within Ultimate 3D using SetMaterial(...) if it's for a primitive object or SetModelMaterial(...) if it's for a model object, and passing a value smaller than 255 for the Alpha/A parameter of those functions.

n00b
Nov 24 2007, 02:41 AM
Second, how would you go about allow multiple resolutions? With the 'Run at full screen' box checked, it does run at full screen, but no scaling occurs - there is simply a black border. How would you overcome this?

help file
 
you can not switch fullscreen mode while using Ultimate 3D. So if you want to use fullscreen mode you have to enable it in the Game Maker options

For multiple resolutions, you can change the v_width and v_height variables of the camera object, making sure they don't exceed the dimensions of the first Game Maker view, which U3D renders to.

n00b
Nov 24 2007, 02:41 AM
Finally, how could you draw a model above everything else? For example, the weapon in a FPS.

To achieve that, you can scale the model down enough so that you can place it very close to the camera, while still having it appear normal-sized. Make sure you set the "min_range" variable of the camera to a very small value to avoid the model being clipped.
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply