Help with Bump Maps

Posted By: acecombat

Help with Bump Maps - 02/14/05 22:19

Hi, I noticed a few details around about the bump maps, but starting from scratch, say i just inserted a cube into wed on a6 pro, how do i apply a texture and then a bump map? I was expecting it to be easy like on poser where all you have to do is select it along with a texture but obviosly not! Thanks.
Posted By: ello

Re: Help with Bump Maps - 02/14/05 22:38

move your mouse some pixels up and youl find a search button;P
Posted By: BlindLeader

Re: Help with Bump Maps - 02/15/05 03:55

Not a clue but pro...perhaps interesting for the mods...
Posted By: acecombat

Re: Help with Bump Maps - 02/15/05 06:48

Quote:

move your mouse some pixels up and youl find a search button;P



I have done that...but all they say is about adding something to a shader? What is that and how do you do that? Just a guide on how to add the code from one of the shader scripts around would be handy. Oh...And what bit you have to change for each item. Thanks
Posted By: Salva

Re: Help with Bump Maps - 02/15/05 07:22

Then.

If you BUY the original release of 3dgs you see that then all the shader works!

Greetz.

Salva
Posted By: acecombat

Re: Help with Bump Maps - 02/15/05 07:42

Quote:

If you BUY the original release of 3dgs you see that then all the shader works!



I have but am not too smart with coding. Also what part of the scripts do you have to change. And if I have multiple objects that I want to use bump maps on, hwo do I do them so each has an individual map?
Posted By: Sebe

Re: Help with Bump Maps - 02/15/05 07:55

You just add the normal map (that is what you use for bumpmapping) as a 2nd skin to the model. Download a Bump Mapping Demo and have a look at how it works, that will help you
Posted By: acecombat

Re: Help with Bump Maps - 02/15/05 08:19

Is there any bump mapping demo that isnt in german though? I couldn't find one and Ich Spricht Neine Deutch. :P Thats about all i can speak...and i think i spelt it really bad :P
Posted By: Sebe

Re: Help with Bump Maps - 02/15/05 08:28

You only have to understand one language, and that's c-script, which is the same in german and english. Just have a look at how it's made - basically it's just defining a material, create an effect using a fx-file (use one of one of the demos) and assigning this material to your model with an action.

If you want to have bump mapping on level textures, you may have a look at the bump mapping demo which can be found at acknex unlimited. (and this one is in english )
Posted By: acecombat

Re: Help with Bump Maps - 02/15/05 10:12

Have done now! Thanks for the tip. It makes it easier for me to understand when I can see how it is done rather than looking at a script only!
Posted By: acecombat

Re: Help with Bump Maps - 02/15/05 10:27

Slight problem though. When running the BumpMap demo from acnex, it comes up with an error:
Quote:

Compiling DEMO.WDL - [Esc] to abort...
< d3d_automaterial=0>
DEMO.WDL 19:0 Error (63): Parameter unknown d3d_automaterial
Error in script



Whats wrong with it?
Posted By: Red Ocktober

Re: Help with Bump Maps - 02/16/05 00:37

there's a bumpmap demo... from acknex ?????

hey... where is it...

i always miss the good stuff...


--Mike
Posted By: PHeMoX

Re: Help with Bump Maps - 02/16/05 00:39

you should add " var d3d_automaterial = 0; " on top....
Posted By: acecombat

Re: Help with Bump Maps - 02/17/05 21:06

I tried that...if i take away the d3d_automaterial = 0 then it works...but with no bump maps
Posted By: Salva

Re: Help with Bump Maps - 02/17/05 23:27

Hi!

You not need to declare the variable var d3d_automaterial, seen that is the professional release of 3dgs, like also in the commercial release, the variable is already in the engine! must be written in the function main!: -->


The main() function is started at game start
function main()
{
// set some common flags and variables
// warn_level = 2; // announce bad texture sizes and bad wdl code
tex_share = on; // map entities share their textures
d3d_automaterial = on; // here is your variable d3d!!


Greetings

Salva
Posted By: acecombat

Re: Help with Bump Maps - 02/18/05 07:49

Still same thing though
Quote:

Compiling TEST.WDL - [Esc} to abort................................
<d3d_automaterial=on>
TEST.WDL 89:0 Error(63): Parameter unknown d3d_automaterial

Error in script

Engine shutdown



I tried the d3d = 1 and = on and it is still doing the same thing
Posted By: Matt_Aufderheide

Re: Help with Bump Maps - 02/18/05 07:55

at the begining of your code, outside of any function, just put this line:
var d3d_automaterial = 1;

if you set it to greater than 0 it's on, 0 means its off.
if this doesnt work, its because you are using the wrong version of gamestudio.
Posted By: acecombat

Re: Help with Bump Maps - 02/18/05 20:08

Sorry....im using 6.21. The d3d_auto is for 6.3/dx9 is it not? I thought 6 in general had dx9 support. Its ok, cause I wanted it for dx8 anyway...Is there anyway to use bumpmapping on 6.21 using dx8?
© 2024 lite-C Forums