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
Texture + HeightMap = transparant hippy floor!
Topic Started: Mar 24 2008, 05:26 AM (480 Views)
Scobbo
Member
[ *  * ]
G'day,
I followed the Help file, but I got weird results,
I used this Texture,
With this height map I mad using photoshop from the texture,
And
got this result.
What happened?
Here is my code for it,
Code:
 

LoadTexture("gfx/metal_tex.png",3)
LoadHeightMap(3,"gfx/metal_texh.png",16)

Cheers,
-Scobbo
My Deviant Art
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
Code:
 

LoadTexture("gfx/metal_tex.png",3)
LoadHeightMap(4,"gfx/metal_texh.png",16)


You're rewriting to texture index 3. They are different textures. It's hippy-like because U3d creates a normal map from the height map and then puts the height map into the alpha channel, giving you trippy colors, much alike to when you observe a discolored tennis ball come off a racket. The colors go everywhere.

Code:
 
ApplyParallaxAndBumpMapping(...)


Read up on that guy. It'll come to you eventually.
Blog|EHS
Offline Profile Quote Post Goto Top
 
Scobbo
Member
[ *  * ]
I'm up to that at the moment, I decided to skip ahead while I waited for someone to help my pathetic self, I also skipped environment mapping coz that didn't make a lick of sense, oh well, I'm sure I will figure it out!

:EDIT:
That worked thanks, I am trying the parallax mapping now, but it just looks normal, no nice looking 3d stuff, I made a better height map, which is black and white interpolating at the correct locations. grr I will get this if it kills me, which it probably won't but you know what I mean. Thanks again mate!

:EDIT:
Never mind I think I know what it is, I called it in the wrong object, I feel silly, Oh well. XD

:EDIT: Didn't help, am I suppose to put the "ApplyParallaxAndBumpMapping(...)" in the step or create event, or am I supposed to do something else?
I have this
Code:
 

ApplyParallaxAndBumpMapping(3,5,0.05,control.light1,control.light2)

3 is the floor texture and 5 is the height map loaded with LoadHeightMap function
My Deviant Art
Offline Profile Quote Post Goto Top
 
jfarras
Advanced Member
[ *  *  * ]
I have the same problem. How did you repair it?
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
jfarras
Mar 28 2009, 06:19 PM
I have the same problem. How did you repair it?
He read the manual much more closely on the functions he was using. Switch two numbers and you get an entirely different result.
Blog|EHS
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Scobbo
Mar 24 2008, 06:16 AM
I'm up to that at the moment, I decided to skip ahead while I waited for someone to help my pathetic self, I also skipped environment mapping coz that didn't make a lick of sense, oh well, I'm sure I will figure it out!

:EDIT:
That worked thanks, I am trying the parallax mapping now, but it just looks normal, no nice looking 3d stuff, I made a better height map, which is black and white interpolating at the correct locations. grr I will get this if it kills me, which it probably won't but you know what I mean. Thanks again mate!

:EDIT:
Never mind I think I know what it is, I called it in the wrong object, I feel silly, Oh well. XD

:EDIT: Didn't help, am I suppose to put the "ApplyParallaxAndBumpMapping(...)" in the step or create event, or am I supposed to do something else?
I have this
Code:
 

ApplyParallaxAndBumpMapping(3,5,0.05,control.light1,control.light2)

3 is the floor texture and 5 is the height map loaded with LoadHeightMap function
You are mixing up the arguments.
Code:
 

ApplyParallaxAndBumpMapping(MaterialIndex,HeightMapIndex,ParallaxFactor,LightSourceID1,LightSourceID2,LightSourceID3);

The first argument is the material index of the model, not the texture index of which you load a texture in U3D.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
(lol, Desp, this topic is from march 2008)
Blog|EHS
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
skarik
Mar 29 2009, 10:36 PM
(lol, Desp, this topic is from march 2008)
What? It says 2009 here.
EDIT: Oh, I was only viewing the date of the recent replies which are March 2009. I better close this then so no one else don't get confused as well.
Edited by Despellanion, Mar 30 2009, 02:37 PM.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply