| 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: |
| A Few Questions; Regarding Drawing | |
|---|---|
| Tweet Topic Started: Nov 24 2007, 02:41 AM (149 Views) | |
| n00b | Nov 24 2007, 02:41 AM Post #1 |
|
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. |
![]() |
|
| MysteriXYZ | Nov 24 2007, 02:09 PM Post #2 |
|
Master Matrix Masher
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hi and welcome to the Ultimate 3D community :)!
You can set the transparency in the texture file itself:
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.
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.
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. | |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)



9:38 PM Jul 11