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
changing colours or changing texture of floor and walls.
Topic Started: Nov 24 2010, 06:47 PM (584 Views)
RonBurgundy
Member Avatar
Forum Borat
[ *  *  *  *  *  * ]
joihnsonlee
Nov 26 2010, 09:28 PM
how do i change the texture on the walls?


tried loadtexture("gfx/wall.jpg",3) in create event in control object but it doesn't do anything.

and i haven't deleted the createwall script

------------------------------------------------------------------------------------------------------

also how can i have one floor red and one floor blue?

------------------------------------------------------------------------------------------
do the same thing you would with the floor,

and if you wanted 2 different floor with 2 different textures then you would have to make another floor.
!!! DEFEND POP PUNK !!!
Offline Profile Quote Post Goto Top
 
joihnsonlee
Advanced Member
[ *  *  * ]
and that was?

i thought what u did was u put

loadtexture(gfx/floor.jpg",2)in create event in control object.

and u put back createfloor() in create event in floor object.

right?


----------------------------------------------------------------------------------

and how is the program meant to know which texture goes with which floor (or wall)?
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Code: Create event of wall object
 

texture=3;

You have obviously not read a single line of the manual.
Edited by Despellanion, Nov 26 2010, 10:26 PM.
Offline Profile Quote Post Goto Top
 
joihnsonlee
Advanced Member
[ *  *  * ]
then, can anyone help me ? because the manual doesn't help.
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
joihnsonlee
Nov 26 2010, 10:46 PM
then, can anyone help me ? because the manual doesn't help.
I helped you in my previous post. Just add the code to the create event of the wall object.
Offline Profile Quote Post Goto Top
 
joihnsonlee
Advanced Member
[ *  *  * ]
thanks.
Offline Profile Quote Post Goto Top
 
OverLord
Member Avatar
Member
[ *  * ]
joihnsonlee
Nov 26 2010, 10:46 PM
then, can anyone help me ? because the manual doesn't help.
Well, it seems you are not getting how this work, so I will try explain this to you.

If you need to apply a texture to a basic U3D model, the only thing you need to do is:

1- Load the texture in the create event of your controller with LoadTexture("Thisisthetexturename.XD", the tex. index [example.. 1, 2, 3...] )
2- Yo are not applying that texture. Do this with the wall, floor or cube object, by assigning a texture variable with the id of the texture you loaded before, you know...
I mean, if you know the way home(1), but you don't walk(2), you will not reach your home (see colour in floor :P )... Understand?

FOR EXAMPLE:
create even of control obj: LoadTexture("Gfx/floor.png", 1234567890)

create event of my wall obj: texture=1234567890

Is that so hard to do? If it is, pm me and I will ask Chuck Norris to go explaining that to you my friend!

Hope to be helpful, goodbye!
Do you believe in God? Cause I could never saw him!

F***! This spoiler rules!
Spoiler: click to toggle

Just believe in my reality and you conscience will remain pure.

Formerly known as BlackOps.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply