[Tutorial] Adding reflections to objects

Post Reply
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

[Tutorial] Adding reflections to objects

Post by DJ99X »

OK, seems like a few people didn't realise you could have reflections on objects. Here's a tutorial on how to add it. This is not a tutorial on how to use blender.

So, you have your object, its dull, like this-

Image

In blender, hit F5 to get into shading options. Under 'Links and Pipeline', and 'Link to object', click on the arrows thing, and go 'ADD NEW'. In the box next to the arrows, rename it to something like 'Reflections'.

Now, go across to a menu that has 'Mirror Transp.'. There will be two blue buttons, one 'Ray Mirror' and the other 'Ray Transp'. Click on Ray Mirrror to enable it.

Slide up the RayMir bar a bit. (You can keep testing the object in game till you find a good setting.)
Thats all you have to do if you want the whole object to have reflections.

To have particular faces shiny and others not, you will need to add another material. Repeat the steps above, calling it something like Dull. Turn off Ray Mirror, and slide the slider to 0.

Image

Now switch back to 'Editing' in the Buttons Window, then go to 'Edit Mode' in 3D view. Under 'Links and Materials' , there should be the up and down arrows, with Dull next to it. In the 3d view, with face select on, select the faces you want shiny. Click on those up and down arrow things, and select Reflections. Then click assign. Done. Heres what it should be like-

Image


______________________________________________


Hey JLV, is there any other things you can do with models? I can remember getting something else to work once. I think it might have been subsurface scattering. I remember getting the model to go yellow, and also got the skin to look like it was 'within' the model, like it had a glass coating.
jlv
Site Admin
Posts: 14930
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: [Tutorial] Adding reflections to objects

Post by jlv »

You can also adjust the specular exponent (Blender calls it hardness) and color.
ddmx
Posts: 5374
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: [Tutorial] Adding reflections to objects

Post by ddmx »

will it read textures done in blender that aren't uvw texs? I think blender 4.8 has layered textures now.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: [Tutorial] Adding reflections to objects

Post by DJ99X »

I don't think the export script will export textures incorporated into the .jm file. If it did, that would be sweet for normal and specular mapping
ddmx
Posts: 5374
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: [Tutorial] Adding reflections to objects

Post by ddmx »

exactly what i was thinking. ha ha. maybe in the future.
Wilson
Posts: 987
Joined: Fri Dec 07, 2007 3:22 am
Team: Privateer
Location: Vegas

Re: [Tutorial] Adding reflections to objects

Post by Wilson »

DJ wrote: normal and specular mapping
jLV When can we expect to see something like this?
jlv
Site Admin
Posts: 14930
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: [Tutorial] Adding reflections to objects

Post by jlv »

Sometime after online multiplayer.
ddmx
Posts: 5374
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: [Tutorial] Adding reflections to objects

Post by ddmx »

Man, you deserve more than this you know. All this work...good stuff.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: [Tutorial] Adding reflections to objects

Post by DJ99X »

Wow, thats sweet that you will actually consider doing that.
yzmxer608
Posts: 15352
Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A

Re: [Tutorial] Adding reflections to objects

Post by yzmxer608 »

Is this obsolete now?
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: [Tutorial] Adding reflections to objects

Post by DJ99X »

Nah. My yzf used it
yzmxer608
Posts: 15352
Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A

Re: [Tutorial] Adding reflections to objects

Post by yzmxer608 »

Cool, this should be put in the tutorial sub forum :).
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: [Tutorial] Adding reflections to objects

Post by DJ99X »

Yeah I must of missed it when I moved the others to the subforum
jlv
Site Admin
Posts: 14930
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: [Tutorial] Adding reflections to objects

Post by jlv »

yzmxer608 wrote:Is this obsolete now?
They should look much better now that the reflections are calculated per pixel instead of per vertex (provided you have shaders enabled).

I've moved the topic.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Post Reply